ARM: dts: omap3: Fix NAND device nodes
authorRoger Quadros <rogerq@ti.com>
Tue, 23 Feb 2016 16:37:25 +0000 (18:37 +0200)
committerTony Lindgren <tony@atomide.com>
Fri, 26 Feb 2016 18:32:14 +0000 (10:32 -0800)
Add compatible id, GPMC register resource and interrupt
resource to NAND controller nodes.

The GPMC node will provide an interrupt controller for the
NAND IRQs.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 files changed:
arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts
arch/arm/boot/dts/logicpd-torpedo-som.dtsi
arch/arm/boot/dts/omap3-beagle.dts
arch/arm/boot/dts/omap3-cm-t3x.dtsi
arch/arm/boot/dts/omap3-devkit8000-common.dtsi
arch/arm/boot/dts/omap3-evm-37xx.dts
arch/arm/boot/dts/omap3-gta04.dtsi
arch/arm/boot/dts/omap3-igep.dtsi
arch/arm/boot/dts/omap3-igep0020-common.dtsi
arch/arm/boot/dts/omap3-igep0030-common.dtsi
arch/arm/boot/dts/omap3-ldp.dts
arch/arm/boot/dts/omap3-lilly-a83x.dtsi
arch/arm/boot/dts/omap3-overo-base.dtsi
arch/arm/boot/dts/omap3-pandora-common.dtsi
arch/arm/boot/dts/omap3-tao3530.dtsi
arch/arm/boot/dts/omap3.dtsi
arch/arm/boot/dts/omap3430-sdp.dts

index fb13f18c08cc36f4292d3c3bbe19fa74199acd85..d0211fc9b8b45756acca878e35de223cbe2afd39 100644 (file)
@@ -93,7 +93,8 @@
 };
 
 &gpmc {
-       ranges = <1 0 0x08000000 0x1000000>;    /* CS1: 16MB for LAN9221 */
+       ranges = <0 0 0x30000000 0x1000000      /* CS0: 16MB for NAND */
+                 1 0 0x2c000000 0x1000000>;    /* CS1: 16MB for LAN9221 */
 
        ethernet@gpmc {
                pinctrl-names = "default";
index 7fed0bd4f3deea46281881ead81b2ebd29c5fa4b..b46789a57e2076774bb7a5f3b4aed83fde3e8a95 100644 (file)
 };
 
 &gpmc {
-       ranges = <0 0 0x00000000 0x1000000>;    /* CS0: 16MB for NAND */
+       ranges = <0 0 0x30000000 0x1000000>;    /* CS0: 16MB for NAND */
 
        nand@0,0 {
-               linux,mtd-name = "micron,mt29f4g16abbda3w";
+               compatible = "ti,omap2-nand";
                reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
+               interrupt-parent = <&gpmc>;
+               interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
+                            <1 IRQ_TYPE_NONE>; /* termcount */
+               linux,mtd-name = "micron,mt29f4g16abbda3w";
                nand-bus-width = <16>;
                ti,nand-ecc-opt = "bch8";
                gpmc,sync-clk-ps = <0>;
index 8ba465d57635fb90c1e7872000ae9b93064e29a1..4602866792be3bcfbb8d9a076439276f87217af2 100644 (file)
 
        /* Chip select 0 */
        nand@0,0 {
+               compatible = "ti,omap2-nand";
                reg = <0 0 4>;          /* NAND I/O window, 4 bytes */
-               interrupts = <20>;
+               interrupt-parent = <&gpmc>;
+               interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
+                            <1 IRQ_TYPE_NONE>; /* termcount */
                ti,nand-ecc-opt = "ham1";
                nand-bus-width = <16>;
                #address-cells = <1>;
index e5f7f5c92c1a9ea23068a2f2ba370780fa1d6cbd..a8127bc31fd92dbc3d91ccc9bb0f8d33d79b9677 100644 (file)
 };
 
 &gpmc {
-       ranges = <0 0 0x00000000 0x01000000>;
+       ranges = <0 0 0x30000000 0x01000000>;   /* CS0: 16MB for NAND */
 
        nand@0,0 {
+               compatible = "ti,omap2-nand";
                reg = <0 0 4>;  /* CS0, offset 0, IO size 4 */
+               interrupt-parent = <&gpmc>;
+               interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
+                            <1 IRQ_TYPE_NONE>; /* termcount */
                nand-bus-width = <8>;
                gpmc,device-width = <1>;
                ti,nand-ecc-opt = "sw";
index 86850bb311ebbe491ccf523c60686928882b2374..b1b8ebf90c1cc688acebe241ae68769e743a5ccc 100644 (file)
        ranges = <0 0 0x30000000 0x1000000>;       /* CS0: 16MB for NAND */
 
        nand@0,0 {
+               compatible = "ti,omap2-nand";
                reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
+               interrupt-parent = <&gpmc>;
+               interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
+                            <1 IRQ_TYPE_NONE>; /* termcount */
                nand-bus-width = <16>;
                gpmc,device-width = <2>;
                ti,nand-ecc-opt = "sw";
index ac188657a95d150ee1ba61274d6d989d80e02079..76056ba92cedc038933a4367a55ba68af9786d4b 100644 (file)
 };
 
 &gpmc {
-       ranges = <0 0 0x00000000 0x1000000>,    /* CS0: 16MB for NAND */
+       ranges = <0 0 0x30000000 0x1000000>,    /* CS0: 16MB for NAND */
                 <5 0 0x2c000000 0x01000000>;
 
        nand@0,0 {
+               compatible = "ti,omap2-nand";
+               reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
+               interrupt-parent = <&gpmc>;
+               interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
+                            <1 IRQ_TYPE_NONE>; /* termcount */
                linux,mtd-name= "hynix,h8kds0un0mer-4em";
-               reg = <0 0 4>;  /* CS0, offset 0, IO size 4 */
                nand-bus-width = <16>;
                gpmc,device-width = <2>;
                ti,nand-ecc-opt = "bch8";
index 5e2d6433d9394b8464b25df9d7fa189ced97e708..ab9fb8f49ff387ea4d19707e089994a5752228d0 100644 (file)
        ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */
 
        nand@0,0 {
+               compatible = "ti,omap2-nand";
                reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
+               interrupt-parent = <&gpmc>;
+               interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
+                            <1 IRQ_TYPE_NONE>; /* termcount */
                nand-bus-width = <16>;
                ti,nand-ecc-opt = "bch8";
 
index 3caf062f882c69fd3d62edcf14b85c32359b8726..81aec9926d7696afac9921c4d8e1a09336cce8bf 100644 (file)
 
 &gpmc {
        nand@0,0 {
+               compatible = "ti,omap2-nand";
+               reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
+               interrupt-parent = <&gpmc>;
+               interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
+                            <1 IRQ_TYPE_NONE>; /* termcount */
                linux,mtd-name= "micron,mt29c4g96maz";
-               reg = <0 0 4>;  /* CS0, offset 0, IO size 4 */
                nand-bus-width = <16>;
                gpmc,device-width = <2>;
                ti,nand-ecc-opt = "bch8";
index d90f12c39307a14ba5a346ebe3b535bee9a455c7..d6f839cab6499acc72cd5b93733aa967defe9d09 100644 (file)
 };
 
 &gpmc {
-       ranges = <0 0 0x00000000 0x20000000>,
-                <5 0 0x2c000000 0x01000000>;
+       ranges = <0 0 0x30000000 0x01000000>,   /* CS0: 16MB for NAND */
+                <5 0 0x2c000000 0x01000000>;   /* CS5: 16MB for ethernet */
 
        ethernet@gpmc {
                pinctrl-names = "default";
index 640f0660396697997a877358c725b46e098116dc..cd91ef0b81b94564919f37fb8cb673cd3cc45799 100644 (file)
@@ -58,3 +58,7 @@
        pinctrl-names = "default";
        pinctrl-0 = <&uart2_pins>;
 };
+
+&gpmc {
+       ranges = <0 0 0x30000000 0x01000000>;   /* CS0: 16MB for NAND */
+};
index 540163025dd3ede47afa448e83c67f81b427dae8..2f353dadfa4004ccbc0c0b4bde351f86bf9c97fe 100644 (file)
 };
 
 &gpmc {
-       ranges = <0 0 0x00000000 0x01000000>,
-                <1 0 0x08000000 0x01000000>;
+       ranges = <0 0 0x30000000 0x1000000>,    /* CS0 space, 16MB */
+                <1 0 0x08000000 0x1000000>;    /* CS1 space, 16MB */
 
        nand@0,0 {
+               compatible = "ti,omap2-nand";
+               reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
+               interrupt-parent = <&gpmc>;
+               interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
+                            <1 IRQ_TYPE_NONE>; /* termcount */
                linux,mtd-name= "micron,nand";
-               reg = <0 0 4>;  /* CS0, offset 0, IO size 4 */
                nand-bus-width = <16>;
                gpmc,device-width = <2>;
                ti,nand-ecc-opt = "bch8";
index 93f8dfe20f1321c97a69e2b971275c682f631ae1..eff816e0bc0a4a8151855936072720fb7db93c9f 100644 (file)
                <7 0 0x15000000 0x01000000>;
 
        nand@0,0 {
-               reg = <0 0 4>;  /* CS0, offset 0, IO size 4 */
+               compatible = "ti,omap2-nand";
+               reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
+               interrupt-parent = <&gpmc>;
+               interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
+                            <1 IRQ_TYPE_NONE>; /* termcount */
                nand-bus-width = <16>;
                ti,nand-ecc-opt = "bch8";
                /* no elm on omap3 */
index a29ad16cc9bbddec399cef41a00106bc636a14a0..de256fa8da4870bb5325e21603b24a4b3a5583ea 100644 (file)
        ranges = <0 0 0x00000000 0x20000000>;
 
        nand@0,0 {
+               compatible = "ti,omap2-nand";
                linux,mtd-name= "micron,mt29c4g96maz";
-               reg = <0 0 0>;
+               reg = <0 0 4>;  /* CS0, offset 0, IO size 4 */
+               interrupt-parent = <&gpmc>;
+               interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
+                            <1 IRQ_TYPE_NONE>; /* termcount */
                nand-bus-width = <16>;
                gpmc,device-width = <2>;
                ti,nand-ecc-opt = "bch8";
index 13e9d1f987afea7ecfca699bd7bf40cf701a9327..bcf39d606b65a2c616c3db07217783b4b7977120 100644 (file)
        ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */
 
        nand@0,0 {
+               compatible = "ti,omap2-nand";
                reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
+               interrupt-parent = <&gpmc>;
+               interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
+                            <1 IRQ_TYPE_NONE>; /* termcount */
                nand-bus-width = <16>;
                ti,nand-ecc-opt = "sw";
 
index ae5dbbd9d569269c0e9b3344b77797aee408c144..644d3c8ea66abdce6e7a18b92442e8189b81d426 100644 (file)
 };
 
 &gpmc {
-       ranges = <0 0 0x00000000 0x01000000>;
+       ranges = <0 0 0x30000000 0x01000000>;   /* CS0: 16MB for NAND */
 
        nand@0,0 {
+               compatible = "ti,omap2-nand";
                reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
+               interrupt-parent = <&gpmc>;
+               interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
+                            <1 IRQ_TYPE_NONE>; /* termcount */
                nand-bus-width = <16>;
                gpmc,device-width = <2>;        /* GPMC_DEVWIDTH_16BIT */
                ti,nand-ecc-opt = "sw";
index d1ffabb7c74fc7dee2de91665ac92aca5c898eeb..b41d07e8e765e22131d616ed2b09d8e6cda7a341 100644 (file)
                        gpmc,num-waitpins = <4>;
                        #address-cells = <2>;
                        #size-cells = <1>;
+                       interrupt-controller;
+                       #interrupt-cells = <2>;
                };
 
                usb_otg_hs: usb_otg_hs@480ab000 {
index 16b0cdfbee9cbb0368a2bdf8ddd59534ff16771e..a0dc8d854142d9415f45d8d04b601a8a35ef9de0 100644 (file)
        };
 
        nand@1,0 {
+               compatible = "ti,omap2-nand";
+               reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
+               interrupt-parent = <&gpmc>;
+               interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
+                            <1 IRQ_TYPE_NONE>; /* termcount */
                linux,mtd-name= "micron,mt29f1g08abb";
                #address-cells = <1>;
                #size-cells = <1>;
-               reg = <1 0 4>;  /* CS1, offset 0, IO size 4 */
                ti,nand-ecc-opt = "sw";
                nand-bus-width = <8>;
                gpmc,cs-on-ns = <0>;