ramips: use fixed layout cell "mac-base" for Netgear R6220
authorRafał Miłecki <rafal@milecki.pl>
Fri, 14 Jul 2023 08:27:54 +0000 (10:27 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Fri, 14 Jul 2023 09:38:12 +0000 (11:38 +0200)
This drops a use of downstream "mac-address-increment".

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
target/linux/ramips/dts/mt7621_netgear_r6220.dts

index 7bb49c15b459cbb832367e5218cf87b40364a66f..146b7ee752ac9dd763f55a5f67ba512412ee8651 100644 (file)
                        reg = <0x2e00000 0x100000>;
                        read-only;
 
-                       #address-cells = <1>;
-                       #size-cells = <1>;
+                       nvmem-layout {
+                               compatible = "fixed-layout";
+                               #address-cells = <1>;
+                               #size-cells = <1>;
 
-                       macaddr_factory_4: macaddr@4 {
-                               reg = <0x4 0x6>;
+                               macaddr_factory_4: macaddr@4 {
+                                       compatible = "mac-base";
+                                       reg = <0x4 0x6>;
+                                       #nvmem-cell-cells = <1>;
+                               };
                        };
                };
 
 };
 
 &gmac0 {
-       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cells = <&macaddr_factory_4 0>;
        nvmem-cell-names = "mac-address";
 };
 
 &gmac1 {
-       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cells = <&macaddr_factory_4 1>;
        nvmem-cell-names = "mac-address";
-       mac-address-increment = <1>;
 };