ARM: dts: keystone: add AEMIF/NAND device entry
authorIvan Khoronzhuk <ivan.khoronzhuk@ti.com>
Sat, 1 Mar 2014 02:05:24 +0000 (21:05 -0500)
committerSantosh Shilimkar <santosh.shilimkar@ti.com>
Sat, 1 Mar 2014 02:05:24 +0000 (21:05 -0500)
Add AEMIF/NAND device entry.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
arch/arm/boot/dts/k2hk-evm.dts
arch/arm/boot/dts/keystone.dtsi

index d8cc99af51e8569814c15bd2e9cf5c47bb752759..1a1335b4a0b1d25fc0e2cbfcacaca3a7b3c9c330 100644 (file)
 &usb {
        status = "okay";
 };
+
+&aemif {
+       cs0 {
+               #address-cells = <2>;
+               #size-cells = <1>;
+               clock-ranges;
+               ranges;
+
+               ti,cs-chipselect = <0>;
+               /* all timings in nanoseconds */
+               ti,cs-min-turnaround-ns = <12>;
+               ti,cs-read-hold-ns = <6>;
+               ti,cs-read-strobe-ns = <23>;
+               ti,cs-read-setup-ns = <9>;
+               ti,cs-write-hold-ns = <8>;
+               ti,cs-write-strobe-ns = <23>;
+               ti,cs-write-setup-ns = <8>;
+
+               nand@0,0 {
+                       compatible = "ti,keystone-nand","ti,davinci-nand";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+                       reg = <0 0 0x4000000
+                              1 0 0x0000100>;
+
+                       ti,davinci-chipselect = <0>;
+                       ti,davinci-mask-ale = <0x2000>;
+                       ti,davinci-mask-cle = <0x4000>;
+                       ti,davinci-mask-chipsel = <0>;
+                       nand-ecc-mode = "hw";
+                       ti,davinci-ecc-bits = <4>;
+                       nand-on-flash-bbt;
+
+                       partition@0 {
+                               label = "u-boot";
+                               reg = <0x0 0x100000>;
+                               read-only;
+                       };
+
+                       partition@100000 {
+                               label = "params";
+                               reg = <0x100000 0x80000>;
+                               read-only;
+                       };
+
+                       partition@180000 {
+                               label = "ubifs";
+                               reg = <0x180000 0x7E80000>;
+                       };
+               };
+       };
+};
index 1992351e09fa54b02c669a2c1fc0b9f5fdf34c42..90823eb90c1b820544ca390026305f050c74fee7 100644 (file)
                        ti,ngpio = <32>;
                        ti,davinci-gpio-unbanked = <32>;
                };
+
+               aemif: aemif@21000A00 {
+                       compatible = "ti,keystone-aemif", "ti,davinci-aemif";
+                       #address-cells = <2>;
+                       #size-cells = <1>;
+                       clocks = <&clkaemif>;
+                       clock-names = "aemif";
+                       clock-ranges;
+
+                       reg = <0x21000A00 0x00000100>;
+                       ranges = <0 0 0x30000000 0x10000000
+                                 1 0 0x21000A00 0x00000100>;
+               };
        };
 };