oxnas: backport upstream NAND driver
[openwrt/staging/chunkeey.git] / target / linux / oxnas / files / arch / arm / boot / dts / ox820-akitio.dts
index 712c03e4256d018b3ee00cfd9b0c01e8f321419f..5f7c2a1e9463c653aef58500b4352133ccec036b 100644 (file)
        nand@41000000 {
                status = "okay";
 
-               partition@0 {
-                       label = "boot";
-                       reg = <0x0 0x26c0000>;
-               };
-
-               partition@26c0000 {
-                       label = "ubi";
-                       reg = <0x26c0000 0xd940000>;
-               };
        };
 
        ethernet@40400000 {
                };
        };
 };
+
+&nandc {
+       status = "okay";
+
+       nand@0 {
+               reg = <0>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+               nand-ecc-mode = "soft";
+               nand-ecc-algo = "hamming";
+
+               partition@0 {
+                       label = "boot";
+                       reg = <0x00000000 0x026c0000>;
+               };
+
+               partition@26c0000 {
+                       label = "ubi";
+                       reg = <0x026c0000 0x0d940000>;
+               };
+};