mvebu: remove mac-address-increment
authorRosen Penev <rosenp@gmail.com>
Sat, 11 Nov 2023 02:52:20 +0000 (18:52 -0800)
committerChristian Marangi <ansuelsmth@gmail.com>
Wed, 22 Nov 2023 18:58:22 +0000 (19:58 +0100)
It's deprecated.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
target/linux/mvebu/files/arch/arm/boot/dts/armada-380-iij-sa-w2.dts
target/linux/mvebu/files/arch/arm/boot/dts/armada-385-fortinet-fg-30e.dts
target/linux/mvebu/files/arch/arm/boot/dts/armada-385-fortinet-fg-50e.dts
target/linux/mvebu/files/arch/arm/boot/dts/armada-385-fortinet-fg-x0e.dtsi
target/linux/mvebu/files/arch/arm/boot/dts/armada-385-nas1dual.dts
target/linux/mvebu/files/arch/arm64/boot/dts/marvell/armada-3720-gl-mv1000.dts

index d2483611ae61234edfe4ec4ff397b65f85aa95a0..09604e20176f90dd80e1cd712d958b8cbd05da3c 100644 (file)
                        };
 
                        partition@110000 {
-                               compatible = "nvmem-cells";
                                reg = <0x110000 0xf0000>;
                                label = "board_info";
                                read-only;
index da6db4755a95b7e25ef4876e7d28a26a6ecb2bea..8788f022f23fea2cc3771222da2942dbab217d70 100644 (file)
                        port@0 {
                                reg = <0>;
                                label = "wan";
-                               nvmem-cells = <&macaddr_bdinfo_d880>;
+                               nvmem-cells = <&macaddr_bdinfo_d880 1>;
                                nvmem-cell-names = "mac-address";
-                               mac-address-increment = <1>;
                        };
 
                        port@1 {
                                reg = <1>;
                                label = "lan4";
-                               nvmem-cells = <&macaddr_bdinfo_d880>;
+                               nvmem-cells = <&macaddr_bdinfo_d880 5>;
                                nvmem-cell-names = "mac-address";
-                               mac-address-increment = <5>;
                        };
 
                        port@2 {
                                reg = <2>;
                                label = "lan3";
-                               nvmem-cells = <&macaddr_bdinfo_d880>;
+                               nvmem-cells = <&macaddr_bdinfo_d880 4>;
                                nvmem-cell-names = "mac-address";
-                               mac-address-increment = <4>;
                        };
 
                        port@3 {
                                reg = <3>;
                                label = "lan2";
-                               nvmem-cells = <&macaddr_bdinfo_d880>;
+                               nvmem-cells = <&macaddr_bdinfo_d880 3>;
                                nvmem-cell-names = "mac-address";
-                               mac-address-increment = <3>;
                        };
 
                        port@4 {
                                reg = <4>;
                                label = "lan1";
-                               nvmem-cells = <&macaddr_bdinfo_d880>;
+                               nvmem-cells = <&macaddr_bdinfo_d880 2>;
                                nvmem-cell-names = "mac-address";
-                               mac-address-increment = <2>;
                        };
 
                        port@6 {
index 6030f4dabec294922b3fbaf9e9370daa27224c37..4deca093c2dda999d2ed76545fbd62564c7d13b3 100644 (file)
@@ -56,9 +56,8 @@
        phy-connection-type = "sgmii";
        buffer-manager = <&bm>;
        bm,pool-long = <2>;
-       nvmem-cells = <&macaddr_bdinfo_d880>;
+       nvmem-cells = <&macaddr_bdinfo_d880 1>;
        nvmem-cell-names = "mac-address";
-       mac-address-increment = <1>;
 };
 
 &eth2 {
@@ -68,9 +67,8 @@
        phy-connection-type = "sgmii";
        buffer-manager = <&bm>;
        bm,pool-long = <3>;
-       nvmem-cells = <&macaddr_bdinfo_d880>;
+       nvmem-cells = <&macaddr_bdinfo_d880 2>;
        nvmem-cell-names = "mac-address";
-       mac-address-increment = <2>;
 };
 
 &mdio {
                        port@0 {
                                reg = <0>;
                                label = "lan5";
-                               nvmem-cells = <&macaddr_bdinfo_d880>;
+                               nvmem-cells = <&macaddr_bdinfo_d880 7>;
                                nvmem-cell-names = "mac-address";
-                               mac-address-increment = <7>;
                        };
 
                        port@1 {
                                reg = <1>;
                                label = "lan4";
-                               nvmem-cells = <&macaddr_bdinfo_d880>;
+                               nvmem-cells = <&macaddr_bdinfo_d880 6>;
                                nvmem-cell-names = "mac-address";
-                               mac-address-increment = <6>;
                        };
 
                        port@2 {
                                reg = <2>;
                                label = "lan3";
-                               nvmem-cells = <&macaddr_bdinfo_d880>;
+                               nvmem-cells = <&macaddr_bdinfo_d880 5>;
                                nvmem-cell-names = "mac-address";
-                               mac-address-increment = <5>;
                        };
 
                        port@3 {
                                reg = <3>;
                                label = "lan2";
-                               nvmem-cells = <&macaddr_bdinfo_d880>;
+                               nvmem-cells = <&macaddr_bdinfo_d880 4>;
                                nvmem-cell-names = "mac-address";
-                               mac-address-increment = <4>;
                        };
 
                        port@4 {
                                reg = <4>;
                                label = "lan1";
-                               nvmem-cells = <&macaddr_bdinfo_d880>;
+                               nvmem-cells = <&macaddr_bdinfo_d880 3>;
                                nvmem-cell-names = "mac-address";
-                               mac-address-increment = <3>;
                        };
 
                        port@6 {
index 9b3b1f08fce82de72bad457b2984fbbb12fa6b07..91458299a209ec1b460f4c877aa0a4ab7b9532de 100644 (file)
        buffer-manager = <&bm>;
        bm,pool-long = <0>;
        bm,pool-short = <1>;
-       nvmem-cells = <&macaddr_bdinfo_d880>;
+       nvmem-cells = <&macaddr_bdinfo_d880 0>;
        nvmem-cell-names = "mac-address";
 
        fixed-link {
                                label = "board-info";
                                read-only;
 
-                               compatible = "nvmem-cells";
-                               #address-cells = <1>;
-                               #size-cells = <1>;
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
 
-                               macaddr_bdinfo_d880: macaddr@d880 {
-                                       reg = <0xd880 0x6>;
+                                       macaddr_bdinfo_d880: macaddr@d880 {
+                                               compatible = "mac-base";
+                                               reg = <0xd880 0x6>;
+                                               #nvmem-cell-cells = <1>;
+                                       };
                                };
                        };
 
index d14ea8b94e391abb7088b70dab772eca46017e2d..494487a8b410b2410b54b52e53234adb4ad74a40 100644 (file)
                                label = "u-boot";
                                read-only;
 
-                               compatible = "nvmem-cells";
-                               #address-cells = <1>;
-                               #size-cells = <1>;
-
-                               macaddr_uboot_fffa8: macaddr@fffa8 {
-                                       reg = <0xfffa8 0x6>;
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_uboot_fffa8: macaddr@fffa8 {
+                                               reg = <0xfffa8 0x6>;
+                                       };
                                };
                        };
 
index 8d163059a007e1eccdd12395cac02c925fc05f87..22dcbfac35fe0401c9a12e967b0bfe7c866f8974 100644 (file)
                                label = "factory";
                                reg = <0xf8000 0x8000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_factory_0: macaddr@0 {
+                                               reg = <0x0 0x6>;
+                                       };
+
+                                       macaddr_factory_6: macaddr@6 {
+                                               reg = <0x6 0x6>;
+                                       };
+                               };
                        };
 
                        partition@100000 {
                full-duplex;
        };
 };
-
-&factory {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_factory_0: macaddr@0 {
-               reg = <0x0 0x6>;
-       };
-
-       macaddr_factory_6: macaddr@6 {
-               reg = <0x6 0x6>;
-       };
-};