ath79: qcn: convert to nvmem-layout
authorRosen Penev <rosenp@gmail.com>
Sun, 26 Nov 2023 01:25:18 +0000 (17:25 -0800)
committerRosen Penev <rosenp@gmail.com>
Sun, 26 Nov 2023 03:43:32 +0000 (19:43 -0800)
Allows getting rid of deprecated mac-address-increment.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
target/linux/ath79/dts/qca9563_dlink_covr-p2500-a1.dts
target/linux/ath79/dts/qcn5502_asus.dtsi
target/linux/ath79/dts/qcn5502_netgear_ex7300-v2.dts
target/linux/ath79/dts/qcn5502_tplink_archer-a9-v6.dts

index 43113ea7b565d71e06fbd264f0a35df75ade52df..3047c6f4794544ee93b4147740a5f165296e421d 100644 (file)
                                reg = <0xff0000 0x10000>;
                                read-only;
 
-                               compatible = "nvmem-cells";
-
                                nvmem-layout {
                                        compatible = "fixed-layout";
                                        #address-cells = <1>;
index a2b4a76e92eb2e920d27a2bc865b4f44a4250582..ee3ef18d20b6e74488437bc03e2bcdc19208e485 100644 (file)
                                reg = <0x050000 0x010000>;
                                read-only;
 
-                               compatible = "nvmem-cells";
-                               #address-cells = <1>;
-                               #size-cells = <1>;
-
-                               cal_factory_1000: cal@1000 {
-                                       reg = <0x1000 0x440>;
-                               };
-
-                               macaddr_factory_1002: macaddr@1002 {
-                                       reg = <0x1002 0x6>;
-                               };
-
-                               precal_factory_5000: precal@5000 {
-                                       reg = <0x5000 0x2f20>;
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       cal_factory_1000: cal@1000 {
+                                               reg = <0x1000 0x440>;
+                                       };
+
+                                       macaddr_factory_1002: macaddr@1002 {
+                                               reg = <0x1002 0x6>;
+                                       };
+
+                                       precal_factory_5000: precal@5000 {
+                                               reg = <0x5000 0x2f20>;
+                                       };
                                };
                        };
                };
index 4ebbdcc1054d24c0367e15a42b4fd0f4ac87d3dd..32b97a4601371ad7cd2d7553c240c2ddce2a5e38 100644 (file)
                                label = "artmtd";
                                reg = <0xfe0000 0x10000>;
 
-                               compatible = "nvmem-cells";
-                               #address-cells = <1>;
-                               #size-cells = <1>;
-
-                               macaddr_artmtd_0: macaddr@0 {
-                                       reg = <0x0 0x6>;
-                               };
-
-                               macaddr_artmtd_6: macaddr@6 {
-                                       reg = <0x6 0x6>;
-                               };
-
-                               macaddr_artmtd_c: macaddr@c {
-                                       reg = <0xc 0x6>;
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_artmtd_0: macaddr@0 {
+                                               reg = <0x0 0x6>;
+                                       };
+
+                                       macaddr_artmtd_6: macaddr@6 {
+                                               reg = <0x6 0x6>;
+                                       };
+
+                                       macaddr_artmtd_c: macaddr@c {
+                                               reg = <0xc 0x6>;
+                                       };
                                };
                        };
 
                                reg = <0xff0000 0x10000>;
                                read-only;
 
-                               compatible = "nvmem-cells";
-                               #address-cells = <1>;
-                               #size-cells = <1>;
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
 
-                               cal_art_1000: cal@1000 {
-                                       reg = <0x1000 0x440>;
-                               };
+                                       cal_art_1000: cal@1000 {
+                                               reg = <0x1000 0x440>;
+                                       };
 
-                               precal_art_5000: precal@5000 {
-                                       reg = <0x5000 0x2f20>;
+                                       precal_art_5000: precal@5000 {
+                                               reg = <0x5000 0x2f20>;
+                                       };
                                };
                        };
                };
index ef0ea321e07ed4fc97ddc4f5973396a0f363d362..6266f5561be39ccbc7d20f1a146af02315e70e46 100644 (file)
@@ -88,7 +88,7 @@
        phy-mode = "sgmii";
        phy-handle = <&phy0>;
 
-       nvmem-cells = <&macaddr_info_8>;
+       nvmem-cells = <&macaddr_info_8 0>;
        nvmem-cell-names = "mac-address";
 };
 
                compatible = "pci168c,0046";
                reg = <0 0 0 0 0>;
 
-               nvmem-cells = <&macaddr_info_8>, <&precal_art_5000>;
+               nvmem-cells = <&macaddr_info_8 (-1)>, <&precal_art_5000>;
                nvmem-cell-names = "mac-address", "pre-calibration";
-
-               mac-address-increment = <(-1)>;
        };
 };
 
                                reg = <0x050000 0x010000>;
                                read-only;
 
-                               compatible = "nvmem-cells";
-                               #address-cells = <1>;
-                               #size-cells = <1>;
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
 
-                               cal_art_1000: cal@1000 {
-                                       reg = <0x1000 0x440>;
-                               };
+                                       cal_art_1000: cal@1000 {
+                                               reg = <0x1000 0x440>;
+                                       };
 
-                               precal_art_5000: precal@5000 {
-                                       reg = <0x5000 0x2f20>;
+                                       precal_art_5000: precal@5000 {
+                                               reg = <0x5000 0x2f20>;
+                                       };
                                };
                        };
 
                                reg = <0x060000 0x020000>;
                                read-only;
 
-                               compatible = "nvmem-cells";
-                               #address-cells = <1>;
-                               #size-cells = <1>;
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
 
-                               macaddr_info_8: macaddr@8 {
-                                       reg = <0x8 0x6>;
+                                       macaddr_info_8: macaddr@8 {
+                                               compatible = "mac-base";
+                                               reg = <0x8 0x6>;
+                                               #nvmem-cell-cells = <1>;
+                                       };
                                };
                        };
 
        /* TODO: missing support in ath9k */
        status = "disabled";
 
-       nvmem-cells = <&cal_art_1000>, <&macaddr_info_8>;
+       nvmem-cells = <&cal_art_1000>, <&macaddr_info_8 0>;
        nvmem-cell-names = "calibration", "mac-address";
 };