Skip to contentSkip to conversation

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

PATCH RESEND New Miquel Raynal 2 participants 2 messages Sep 22, 2017 – Sep 25, 2017

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

PATCH RESEND v2 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.

---

Hello,

Made a mistake resending the v1 prefixed by v2.
This is the real v2.

It fixes the third partition address from 0xd00000 to 0xf00000.

Thanks,
Miqu?l

 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..85c72f835184 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 f00000 {
+				label = "Boot_2nd";
+				reg = <0xf00000 0x100000>;
+			};
+		};
+	};
+};
+
 /* CON4 on CP1 expansion */
 &cps_sata0 {
 	status = "okay";
Signature · 1 line
2.11.0
#1 lore raw

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

Hi Miquel,

Quoted 9 lines · Miquel Raynal

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.

Applied on mvebu/dt64

Thanks,

Gregory

Quoted 60 lines

---

Hello,

Made a mistake resending the v1 prefixed by v2.
This is the real v2.

It fixes the third partition address from 0xd00000 to 0xf00000.

Thanks,
Miqu?l

 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..85c72f835184 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 f00000 {
+				label = "Boot_2nd";
+				reg = <0xf00000 0x100000>;
+			};
+		};
+	};
+};
+
 /* CON4 on CP1 expansion */
 &cps_sata0 {
 	status = "okay";
Signature · 1 line
2.11.0
Signature · 4 lines
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com