ath79: AP105: use fixed layout cell "mac-base"
authorChristian Lamparter <chunkeey@gmail.com>
Fri, 21 Jul 2023 14:44:11 +0000 (16:44 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Fri, 20 Oct 2023 16:13:37 +0000 (18:13 +0200)
This drops a use of the deprecated "mac-address-increment".

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
target/linux/ath79/dts/ar7161_aruba_ap-105.dts

index 949d70ec07a10f2ff75c39ecfc489ae33bf3709e..32d403fe6cd06dbac79afcd6e95795dfd64b3c0f 100644 (file)
@@ -96,9 +96,8 @@
 
        ath9k0: wifi@0,11 { /* 2.4 GHz */
                compatible = "pci168c,0029";
-               nvmem-cells = <&macaddr_hwinfo_1c>;
+               nvmem-cells = <&macaddr_hwinfo_1c 1>;
                nvmem-cell-names = "mac-address";
-               mac-address-increment = <1>;
                reg = <0x8800 0 0 0 0>;
                #gpio-cells = <2>;
                gpio-controller;
 
        ath9k1: wifi@0,12 { /* 5 GHz */
                compatible = "pci168c,0029";
-               nvmem-cells = <&macaddr_hwinfo_1c>;
+               nvmem-cells = <&macaddr_hwinfo_1c 2>;
                nvmem-cell-names = "mac-address";
-               mac-address-increment = <2>;
                reg = <0x9000 0 0 0 0>;
                #gpio-cells = <2>;
                gpio-controller;
 
 &eth0 {
        status = "okay";
-       nvmem-cells = <&macaddr_hwinfo_1c>;
+       nvmem-cells = <&macaddr_hwinfo_1c 0>;
        nvmem-cell-names = "mac-address";
 
        pll-data = <0x00110000 0x00001099 0x00991099>;
                        };
 
                        hwinfo: partition@fe0000 {
-                               label = "hwinfo";
                                reg = <0xfe0000 0x10000>;
+                               compatible = "nvmem-cells";
+                               label = "hwinfo";
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_hwinfo_1c: mac-address@1c {
+                                               compatible = "mac-base";
+                                               reg = <0x1c 0x6>;
+                                               #nvmem-cell-cells = <1>;
+                                       };
+                               };
                        };
 
                        partition@ff0000 {
                };
        };
 };
-
-&hwinfo {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_hwinfo_1c: macaddr@1c {
-               reg = <0x1c 0x6>;
-       };
-};