oxnas: backport upstream NAND driver
[openwrt/openwrt.git] / target / linux / oxnas / files / arch / arm / boot / dts / ox820-pogoplug-pro.dts
index f3730c32a60c30a24a1c694e9cede6aa0fa7c6a4..5b087e93fae0cdfa99938f283a3a29180e1d2cf8 100644 (file)
                status = "okay";
        };
 
-       nand@41000000 {
-               status = "okay";
-
-               partition@0 {
-                       label = "boot";
-                       reg = <0x00000000 0x00e00000>;
-                       /*read-only;*/
-               };
-
-               partition@e00000 {
-                       label = "ubi";
-                       reg = <0x00e00000 0x07200000>;
-               };
-       };
-
        ethernet@40400000 {
                status = "okay";
        };
                };
        };
 };
+
+&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 0x00e00000>;
+                       /*read-only;*/
+               };
+
+               partition@e00000 {
+                       label = "ubi";
+                       reg = <0x00e00000 0x07200000>;
+               };
+       };
+};