ath79: improve support for Dongwon T&I DW02-412H
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9557_dongwon_dw02-412h.dtsi
index fd56983432df80a6a1f206f984f9044bf7d7a4f1..498499c14660651caed2b1dfac0f3a4144c5c5a1 100644 (file)
                                read-only;
                        };
 
-                       art: partition@1f0000 {
+                       partition@1f0000 {
                                label = "art";
                                reg = <0x1f0000 0x010000>;
                                read-only;
+
+                               compatible = "nvmem-cells";
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+
+                               macaddr_art_0: macaddr@0 {
+                                       reg = <0x0 0x6>;
+                               };
+
+                               cal_art_1000: cal@1000 {
+                                       reg = <0x1000 0x440>;
+                               };
+
+                               cal_art_5000: cal@5000 {
+                                       reg = <0x5000 0x844>;
+                               };
                        };
                };
        };
 };
 
+&nand {
+       status = "okay";
+
+       partitions {
+               compatible = "fixed-partitions";
+               #address-cells = <1>;
+               #size-cells = <1>;
+
+               partition@0 {
+                       label = "current";
+                       reg = <0x0 0x1000000>;
+                       read-only;
+               };
+
+               partition@1000000 {
+                       label = "kernel";
+                       reg = <0x1000000 0x800000>;
+               };
+
+               ubi: partition@1800000 {
+                       label = "ubi";
+               };
+       };
+};
+
 &pcie0 {
        status = "okay";
 
        wifi@0,0 {
                compatible = "qcom,ath10k";
                reg = <0 0 0 0 0>;
+
+               nvmem-cells = <&macaddr_art_0>, <&cal_art_5000>;
+               nvmem-cell-names = "mac-address", "calibration";
+               mac-address-increment = <4>;
        };
 };
 
 &wmac {
        status = "okay";
 
-       mtd-cal-data = <&art 0x1000>;
-       nvmem-cells = <&macaddr_art_0>;
-       nvmem-cell-names = "mac-address";
+       nvmem-cells = <&macaddr_art_0>, <&cal_art_1000>;
+       nvmem-cell-names = "mac-address", "calibration";
        mac-address-increment = <3>;
 };
 
                        0x54 0x00000000 /* LED Control Register 1 */
                        0x58 0x00000000 /* LED Control Register 2 */
                        0x5c 0x0030c300 /* LED Control Register 3 */
-                       0x7c 0x0000007e /* PORT0_STATUS */
-                       >;
+                       0x7c 0x0000007e /* PORT0_STATUS */
+               >;
        };
 };
 
                rgmii-enabled = <1>;
        };
 };
-
-&art {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_art_0: macaddr@0 {
-               reg = <0x0 0x6>;
-       };
-};