Patchwork [19/21] ARM: mvebu: Add support for NAND controller in Armada 370/XP

login
register
mail settings
Submitter Ezequiel Garcia
Date Sept. 19, 2013, 4:01 p.m.
Message ID <1379606505-2529-20-git-send-email-ezequiel.garcia@free-electrons.com>
Download mbox | patch
Permalink /patch/275996/
State New
Headers show

Comments

Ezequiel Garcia - Sept. 19, 2013, 4:01 p.m.
The Armada 370 and Armada XP SoC have a NAND controller (aka NFCv2).
This commit adds support for it in Armada 370 and Armada XP SoC
common devicetree.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
---
 arch/arm/boot/dts/armada-370-xp.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)

Patch

diff --git a/arch/arm/boot/dts/armada-370-xp.dtsi b/arch/arm/boot/dts/armada-370-xp.dtsi
index 2e00da4..5d3bce8 100644
--- a/arch/arm/boot/dts/armada-370-xp.dtsi
+++ b/arch/arm/boot/dts/armada-370-xp.dtsi
@@ -248,6 +248,16 @@ 
 				clocks = <&coreclk 0>;
 				status = "disabled";
 			};
+
+			nand@d0000 {
+				compatible = "marvell,armada370-nand";
+				reg = <0xd0000 0x54>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				interrupts = <113>;
+				clocks = <&nandclk>;
+				status = "disabled";
+			};
 		};
 	};
  };