Skip to contentSkip to conversation

arm64: dts: marvell: Enable Armada-8040-DB CPS SPI1

PATCH New Miquel Raynal 2 participants 3 messages Sep 21, 2017 – Sep 22, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: marvell: Enable Armada-8040-DB CPS SPI1

From: Christine Gharzuzi <[email protected]>

Add the DT node enabling Armada-8040-DB CPS SPI controller driver.

Add the SPI NAND flash device connected on the bus. Fill the MTD partitions layout.

---
 arch/arm64/boot/dts/marvell/armada-8040-db.dts | 31 ++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
arch/arm64/boot/dts/marvell/armada-8040-db.dts +31 -0
index 0d7b2ae46610..f5be6ffe0106 100644
@@ -216,6 +216,37 @@
 	clock-frequency = <100000>;
 };
 
+&cps_spi1 {
+	status = "okay";
+
+	spi-flash at 0 {
+		#address-cells = <0x1>;
+		#size-cells = <0x1>;
+		compatible = "jedec,spi-nor";
+		reg = <0x0>;
+		spi-max-frequency = <20000000>;
+
+		partitions {
+			compatible = "fixed-partitions";
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			partition at 0 {
+				label = "Boot";
+				reg = <0x0 0x200000>;
+			};
+			partition at 200000 {
+				label = "Filesystem";
+				reg = <0x200000 0xd00000>;
+			};
+			partition at d00000 {
+				label = "Boot_2nd";
+				reg = <0xf00000 0x100000>;
+			};
+		};
+	};
+};
+
 /* CON4 on CP1 expansion */
 &cps_sata0 {
 	status = "okay";
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 arm64: dts: marvell: Enable Armada-8040-DB CPS SPI1

Hi Miquel,

Quoted 15 lines · Miquel Raynal

From: Christine Gharzuzi <[email protected]>
+&cps_spi1 {

arch/arm64/boot/dts/marvell/armada-8040-db.dts +13 -0
+	status = "okay";
+
+	spi-flash at 0 {
+		#address-cells = <0x1>;
+		#size-cells = <0x1>;
+		compatible = "jedec,spi-nor";
+		reg = <0x0>;
+		spi-max-frequency = <20000000>;
+
+		partitions {
+			compatible = "fixed-partitions";
+			#address-cells = <1>;
+			#size-cells = <1>;

arch/arm64/boot/dts/marvell/armada-8040-db.dts line 242

Quoted 10 lines
arch/arm64/boot/dts/marvell/armada-8040-db.dts +10 -0
+
+			partition at 0 {
+				label = "Boot";
+				reg = <0x0 0x200000>;
+			};
+			partition at 200000 {
+				label = "Filesystem";
+				reg = <0x200000 0xd00000>;
+			};
+			partition at d00000 {

The node should be 'partition at f00000'.

arch/arm64/boot/dts/marvell/armada-8040-db.dts line 248

Quoted 6 lines
arch/arm64/boot/dts/marvell/armada-8040-db.dts +6 -0
+				label = "Boot_2nd";
+				reg = <0xf00000 0x100000>;
+			};
+		};
+	};
+};

Thanks,
Antoine

Signature · 10 lines
Antoine T?nart, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170921/34acc3e4/attachment.sig>
#2 lore raw

PATCH 1/1 arm64: dts: marvell: Enable Armada-8040-DB CPS SPI1

Hello Antoine,

Quoted 22 lines · On Thu, 21 Sep 2017 09:52:39 +0200 Antoine Tenart…

Hi Miquel,

Quoted 19 lines · Miquel Raynal

From: Christine Gharzuzi <[email protected]>
+&cps_spi1 {

arch/arm64/boot/dts/marvell/armada-8040-db.dts +17 -0
+	status = "okay";
+
+	spi-flash at 0 {
+		#address-cells = <0x1>;
+		#size-cells = <0x1>;
+		compatible = "jedec,spi-nor";
+		reg = <0x0>;
+		spi-max-frequency = <20000000>;
+
+		partitions {
+			compatible = "fixed-partitions";
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			partition at 0 {
+				label = "Boot";
+				reg = <0x0 0x200000>;
Quoted 8 lines

arch/arm64/boot/dts/marvell/armada-8040-db.dts line 242

Quoted 6 lines
arch/arm64/boot/dts/marvell/armada-8040-db.dts +6 -0
+			};
+			partition at 200000 {
+				label = "Filesystem";
+				reg = <0x200000 0xd00000>;
+			};
+			partition at d00000 {  

The node should be 'partition at f00000'.

Absolutely, thanks for poiting it!

Regards,
Miqu?l

Quoted 11 lines

arch/arm64/boot/dts/marvell/armada-8040-db.dts line 248

Quoted 7 lines
arch/arm64/boot/dts/marvell/armada-8040-db.dts +6 -0
+				label = "Boot_2nd";
+				reg = <0xf00000 0x100000>;
+			};
+		};
+	};
+};  

Thanks,
Antoine

Signature · 3 lines
Miquel Raynal, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com