Skip to contentSkip to conversation

ARM64: dts: marvell: add NAND support on the CP110

PATCH Superseded Gregory CLEMENT 1 participant 2 messages Aug 4, 2017 – Aug 14, 2017

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

PATCH v2 1/1 ARM64: dts: marvell: add NAND support on the CP110

The NAND controller used in A7K/A8K is present on the CP110. It is compatible with the pxa-nand driver.

However, due to the limiation of the pins available this controller is only usable on the CPM for A7K and on the CPS for A8K.

---
 arch/arm64/boot/dts/marvell/armada-cp110-master.dtsi | 15 +++++++++++++++
 arch/arm64/boot/dts/marvell/armada-cp110-slave.dtsi  | 15 +++++++++++++++
 2 files changed, 30 insertions(+)
arch/arm64/boot/dts/marvell/armada-cp110-master.dtsi +15 -0
index 5586a732e1be..8b019a9f4f59 100644
@@ -249,6 +249,21 @@
 				status = "disabled";
 			};
 
+			cpm_nand: nand at 720000 {
+				/*
+				 * Due to the limiation of the pin available
+				 * this controller is only usable on the CPM
+				 * for A7K and on the CPS for A8K.
+				 */
+				compatible = "marvell,armada370-nand";
+				reg = <0x720000 0x54>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				interrupts = <ICU_GRP_NSR 115 IRQ_TYPE_LEVEL_HIGH>;
+				clocks = <&cpm_clk 1 2>;
+				status = "disabled";
+			};
+
 			cpm_trng: trng at 760000 {
 				compatible = "marvell,armada-8k-rng", "inside-secure,safexcel-eip76";
 				reg = <0x760000 0x7d>;
arch/arm64/boot/dts/marvell/armada-cp110-slave.dtsi +15 -0
index 4be43f1f5aa2..7c1100133731 100644
@@ -250,6 +250,21 @@
 				status = "disabled";
 			};
 
+			cps_nand: nand at 720000 {
+				/*
+				 * Due to the limiation of the pin available
+				 * this controller is only usable on the CPM
+				 * for A7K and on the CPS for A8K.
+				 */
+				compatible = "marvell,armada370-nand";
+				reg = <0x720000 0x54>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				interrupts = <ICU_GRP_NSR 115 IRQ_TYPE_LEVEL_HIGH>;
+				clocks = <&cps_clk 1 2>;
+				status = "disabled";
+			};
+
 			cps_trng: trng at 760000 {
 				compatible = "marvell,armada-8k-rng", "inside-secure,safexcel-eip76";
 				reg = <0x760000 0x7d>;
Signature · 1 line
2.13.2
#1 lore raw

PATCH v2 1/1 ARM64: dts: marvell: add NAND support on the CP110

Hi,

Quoted 7 lines · Gregory CLEMENT

The NAND controller used in A7K/A8K is present on the CP110. It is compatible with the pxa-nand driver.

However, due to the limiation of the pins available this controller is only usable on the CPM for A7K and on the CPS for A8K.

Applied on mvebu/dt64

Gregory

Quoted 60 lines
---
 arch/arm64/boot/dts/marvell/armada-cp110-master.dtsi | 15 +++++++++++++++
 arch/arm64/boot/dts/marvell/armada-cp110-slave.dtsi  | 15 +++++++++++++++
 2 files changed, 30 insertions(+)
arch/arm64/boot/dts/marvell/armada-cp110-master.dtsi +15 -0
index 5586a732e1be..8b019a9f4f59 100644
@@ -249,6 +249,21 @@
 				status = "disabled";
 			};
 
+			cpm_nand: nand at 720000 {
+				/*
+				 * Due to the limiation of the pin available
+				 * this controller is only usable on the CPM
+				 * for A7K and on the CPS for A8K.
+				 */
+				compatible = "marvell,armada370-nand";
+				reg = <0x720000 0x54>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				interrupts = <ICU_GRP_NSR 115 IRQ_TYPE_LEVEL_HIGH>;
+				clocks = <&cpm_clk 1 2>;
+				status = "disabled";
+			};
+
 			cpm_trng: trng at 760000 {
 				compatible = "marvell,armada-8k-rng", "inside-secure,safexcel-eip76";
 				reg = <0x760000 0x7d>;
arch/arm64/boot/dts/marvell/armada-cp110-slave.dtsi +15 -0
index 4be43f1f5aa2..7c1100133731 100644
@@ -250,6 +250,21 @@
 				status = "disabled";
 			};
 
+			cps_nand: nand at 720000 {
+				/*
+				 * Due to the limiation of the pin available
+				 * this controller is only usable on the CPM
+				 * for A7K and on the CPS for A8K.
+				 */
+				compatible = "marvell,armada370-nand";
+				reg = <0x720000 0x54>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				interrupts = <ICU_GRP_NSR 115 IRQ_TYPE_LEVEL_HIGH>;
+				clocks = <&cps_clk 1 2>;
+				status = "disabled";
+			};
+
 			cps_trng: trng at 760000 {
 				compatible = "marvell,armada-8k-rng", "inside-secure,safexcel-eip76";
 				reg = <0x760000 0x7d>;
Signature · 1 line
2.13.2
Signature · 4 lines
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com