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