oxnas: backport upstream NAND driver
[openwrt/openwrt.git] / target / linux / oxnas / files / arch / arm / boot / dts / ox820-pogoplug-v3.dts
index 802913273bd0e266220224b0f1bc331accc7d31a..be0f6c90775ce0e0043980922590d44c2be3a84c 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>;
+               };
+       };
+};