Patchwork [v2,4/6] ARM: mvebu: Add support for NAND controller in Armada 38x SoC

login
register
mail settings
Submitter Ezequiel García
Date March 13, 2014, 7:39 p.m.
Message ID <1394739542-30017-5-git-send-email-ezequiel@vanguardiasur.com.ar>
Download mbox | patch
Permalink /patch/330090/
State New
Headers show

Comments

Ezequiel García - March 13, 2014, 7:39 p.m.
From: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>

The Armada 38x SoC family has a NAND controller, compatible
with the controller in Armada 370/375/XP SoCs. Add support for
it in the devicetree file.

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

Patch

diff --git a/arch/arm/boot/dts/armada-38x.dtsi b/arch/arm/boot/dts/armada-38x.dtsi
index 76cc27e..54ba6603 100644
--- a/arch/arm/boot/dts/armada-38x.dtsi
+++ b/arch/arm/boot/dts/armada-38x.dtsi
@@ -345,6 +345,16 @@ 
 				clocks = <&mainpll>;
 				clock-output-names = "nand";
 			};
+
+			flash@d0000 {
+				compatible = "marvell,armada370-nand";
+				reg = <0xd0000 0x54>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
+				clocks = <&coredivclk 0>;
+				status = "disabled";
+			};
 		};
 	};