ipq806x: fix NAND support for linux 4.9
[openwrt/openwrt.git] / target / linux / ipq806x / files-4.9 / arch / arm / boot / dts / qcom-ipq8065-r7800.dts
index bf2fb9619fc0a5a96aada0e0f39898020d404d19..403054cc97fe4be1909f600fe94c785e2c98bd1b 100644 (file)
                        pinctrl-0 = <&nand_pins>;
                        pinctrl-names = "default";
 
-                       nand-ecc-strength = <4>;
-                       nand-ecc-step-size = <512>;
-                       nand-bus-width = <8>;
-
-                       #address-cells = <1>;
-                       #size-cells = <1>;
-
-                       qcadata@0 {
-                               label = "qcadata";
-                               reg = <0x0000000 0x0c80000>;
-                               read-only;
-                       };
-
-                       APPSBL@c80000 {
-                               label = "APPSBL";
-                               reg = <0x0c80000 0x0500000>;
-                               read-only;
-                       };
-
-                       APPSBLENV@1180000 {
-                               label = "APPSBLENV";
-                               reg = <0x1180000 0x0080000>;
-                               read-only;
-                       };
-
-                       art: art@1200000 {
-                               label = "art";
-                               reg = <0x1200000 0x0140000>;
-                               read-only;
-                       };
-
-                       artbak: art@1340000 {
-                               label = "artbak";
-                               reg = <0x1340000 0x0140000>;
-                               read-only;
-                       };
-
-                       kernel@1480000 {
-                               label = "kernel";
-                               reg = <0x1480000 0x0200000>;
-                       };
+                       cs0 {
+                               reg = <0>;
+                               compatible = "qcom,nandcs";
 
-                       ubi@1680000 {
-                               label = "ubi";
-                               reg = <0x1680000 0x1E00000>;
-                       };
+                               nand-ecc-strength = <4>;
+                               nand-bus-width = <8>;
+                               nand-ecc-step-size = <512>;
 
-                       netgear@3480000 {
-                               label = "netgear";
-                               reg = <0x3480000 0x4480000>;
-                               read-only;
-                       };
-
-                       reserve@7900000 {
-                               label = "reserve";
-                               reg = <0x7900000 0x0700000>;
-                               read-only;
-                       };
+                               partitions {
+                                       compatible = "fixed-partitions";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
 
-                       firmware@1480000 {
-                               label = "firmware";
-                               reg = <0x1480000 0x2000000>;
+                                       qcadata@0 {
+                                               label = "qcadata";
+                                               reg = <0x0000000 0x0c80000>;
+                                               read-only;
+                                       };
+
+                                       APPSBL@c80000 {
+                                               label = "APPSBL";
+                                               reg = <0x0c80000 0x0500000>;
+                                               read-only;
+                                       };
+
+                                       APPSBLENV@1180000 {
+                                               label = "APPSBLENV";
+                                               reg = <0x1180000 0x0080000>;
+                                               read-only;
+                                       };
+
+                                       art: art@1200000 {
+                                               label = "art";
+                                               reg = <0x1200000 0x0140000>;
+                                               read-only;
+                                       };
+
+                                       artbak: art@1340000 {
+                                               label = "artbak";
+                                               reg = <0x1340000 0x0140000>;
+                                               read-only;
+                                       };
+
+                                       kernel@1480000 {
+                                               label = "kernel";
+                                               reg = <0x1480000 0x0200000>;
+                                       };
+
+                                       ubi@1680000 {
+                                               label = "ubi";
+                                               reg = <0x1680000 0x1E00000>;
+                                       };
+
+                                       netgear@3480000 {
+                                               label = "netgear";
+                                               reg = <0x3480000 0x4480000>;
+                                               read-only;
+                                       };
+
+                                       reserve@7900000 {
+                                               label = "reserve";
+                                               reg = <0x7900000 0x0700000>;
+                                               read-only;
+                                       };
+
+                                       firmware@1480000 {
+                                               label = "firmware";
+                                               reg = <0x1480000 0x2000000>;
+                                       };
+                               };
                        };
                };