mpc85xx: remove mac-address-increment
authorRosen Penev <rosenp@gmail.com>
Sat, 11 Nov 2023 02:57:43 +0000 (18:57 -0800)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 21 Nov 2023 22:10:17 +0000 (23:10 +0100)
It's deprecated

Signed-off-by: Rosen Penev <rosenp@gmail.com>
target/linux/mpc85xx/files/arch/powerpc/boot/dts/br200-wp.dts
target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts
target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts

index d5b283658f37b61c71e22ea7f1dcbd2f69c530c8..f7d7b4cf08c12150ae700d63b4db2ba4167f8247 100644 (file)
                                        label = "hw-info";
                                        read-only;
 
-                                       compatible = "nvmem-cells";
-                                       #address-cells = <1>;
-                                       #size-cells = <1>;
-
-                                       macaddr_hwinfo_0: macaddr@0 {
-                                               reg = <0x0 0x6>;
+                                       nvmem-layout {
+                                               compatible = "fixed-layout";
+                                               #address-cells = <1>;
+                                               #size-cells = <1>;
+
+                                               macaddr_hwinfo_0: macaddr@0 {
+                                                       compatible = "mac-base";
+                                                       reg = <0x0 0x6>;
+                                                       #nvmem-cell-cells = <1>;
+                                               };
                                        };
                                };
 
                                                reg = <1>;
                                                label = "lan1";
                                                phy-handle = <&phy_port1>;
-                                               nvmem-cells = <&macaddr_hwinfo_0>;
+                                               nvmem-cells = <&macaddr_hwinfo_0 2>;
                                                nvmem-cell-names = "mac-address";
-                                               mac-address-increment = <2>;
                                        };
 
                                        port@2 {
                                                reg = <2>;
                                                label = "lan2";
                                                phy-handle = <&phy_port2>;
-                                               nvmem-cells = <&macaddr_hwinfo_0>;
+                                               nvmem-cells = <&macaddr_hwinfo_0 3>;
                                                nvmem-cell-names = "mac-address";
-                                               mac-address-increment = <3>;
                                        };
 
                                        port@3 {
                                                reg = <3>;
                                                label = "lan3";
                                                phy-handle = <&phy_port3>;
-                                               nvmem-cells = <&macaddr_hwinfo_0>;
+                                               nvmem-cells = <&macaddr_hwinfo_0 4>;
                                                nvmem-cell-names = "mac-address";
-                                               mac-address-increment = <4>;
                                        };
 
                                        port@4 {
                                                reg = <4>;
                                                label = "lan4";
                                                phy-handle = <&phy_port4>;
-                                               nvmem-cells = <&macaddr_hwinfo_0>;
+                                               nvmem-cells = <&macaddr_hwinfo_0 5>;
                                                nvmem-cell-names = "mac-address";
-                                               mac-address-increment = <5>;
                                        };
 
                                        port@5 {
                                                reg = <5>;
                                                label = "wan";
                                                phy-handle = <&phy_port5>;
-                                               nvmem-cells = <&macaddr_hwinfo_0>;
+                                               nvmem-cells = <&macaddr_hwinfo_0 0>;
                                                nvmem-cell-names = "mac-address";
                                        };
 
                enet0: ethernet@b0000 {
                        status = "okay";
                        phy-connection-type = "rgmii-id";
-                       nvmem-cells = <&macaddr_hwinfo_0>;
+                       nvmem-cells = <&macaddr_hwinfo_0 0>;
                        nvmem-cell-names = "mac-address";
 
                        fixed-link {
                                reg = <0x0000 0 0 0 0>;
                                #gpio-cells = <2>;
                                gpio-controller;
-                               nvmem-cells = <&macaddr_hwinfo_0>;
+                               nvmem-cells = <&macaddr_hwinfo_0 16>;
                                nvmem-cell-names = "mac-address";
-                               mac-address-increment = <16>;
                        };
                };
        };
index a807403a07a43f5f26b2b47b886788d137680303..f74aca58c0d17fbba5d846dfb8eb7a3a9bbeee66 100644 (file)
                                        label = "hw-info";
                                        read-only;
 
-                                       compatible = "nvmem-cells";
-                                       #address-cells = <1>;
-                                       #size-cells = <1>;
-
-                                       macaddr_hwinfo_0: macaddr@0 {
-                                               reg = <0x0 0x6>;
+                                       nvmem-layout {
+                                               compatible = "fixed-layout";
+                                               #address-cells = <1>;
+                                               #size-cells = <1>;
+
+                                               macaddr_hwinfo_0: macaddr@0 {
+                                                       compatible = "mac-base";
+                                                       reg = <0x0 0x6>;
+                                                       #nvmem-cell-cells = <1>;
+                                               };
                                        };
                                };
 
                        status = "okay";
                        phy-handle = <&phy0>;
                        phy-connection-type = "rgmii-id";
-                       nvmem-cells = <&macaddr_hwinfo_0>;
+                       nvmem-cells = <&macaddr_hwinfo_0 0>;
                        nvmem-cell-names = "mac-address";
                };
 
                        status = "okay";
                        phy-handle = <&phy1>;
                        phy-connection-type = "rgmii-id";
-                       nvmem-cells = <&macaddr_hwinfo_0>;
+                       nvmem-cells = <&macaddr_hwinfo_0 1>;
                        nvmem-cell-names = "mac-address";
-                       mac-address-increment = <1>;
                };
 
                gpio0: gpio-controller@fc00 {
index c54cb53f9452ea2c03a3c251e6b6e303ee7effb9..ef46d8f14affee81688cddbf703c1fe9a4f4606b 100644 (file)
                                                label = "u-boot";
                                                read-only;
 
-                                               compatible = "nvmem-cells";
-                                               #address-cells = <1>;
-                                               #size-cells = <1>;
-
-                                               macaddr_uboot_4fc00: macaddr@4fc00 {
-                                                       reg = <0x4fc00 0x6>;
+                                               nvmem-layout {
+                                                       compatible = "fixed-layout";
+                                                       #address-cells = <1>;
+                                                       #size-cells = <1>;
+
+                                                       macaddr_uboot_4fc00: macaddr@4fc00 {
+                                                               reg = <0x4fc00 0x6>;
+                                                       };
                                                };
                                        };