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

Signed-off-by: Rosen Penev <rosenp@gmail.com>
target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn7130_ubnt_edgerouter-4.dts
target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn7130_ubnt_edgerouter-6p.dts
target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn7130_ubnt_edgerouter-e300.dtsi

index f8d511b599012d4895831678e52479f6d7c6e4fb..401aafe1674dd737bb37250609ad89703566e4e1 100644 (file)
@@ -14,7 +14,7 @@
                        status = "okay";
                        phy-mode = "sgmii";
                        phy-handle = <&phy4>;
-                       nvmem-cells = <&macaddr_eeprom_0>;
+                       nvmem-cells = <&macaddr_eeprom_0 0>;
                        nvmem-cell-names = "mac-address";
                };
        };
index f354d08199a866839cf283fd5ed2789087c5e613..270e2a32648c15f30ff317c95a411a0c1fd13bb1 100644 (file)
@@ -32,7 +32,7 @@
                        status = "okay";
                        phy-mode = "sgmii";
                        phy-handle = <&phy4>;
-                       nvmem-cells = <&macaddr_eeprom_0>;
+                       nvmem-cells = <&macaddr_eeprom_0 0>;
                        nvmem-cell-names = "mac-address";
                };
        };
@@ -45,9 +45,8 @@
                        status = "okay";
                        phy-mode = "sgmii";
                        phy-handle = <&phy8>;
-                       nvmem-cells = <&macaddr_eeprom_0>;
+                       nvmem-cells = <&macaddr_eeprom_0 4>;
                        nvmem-cell-names = "mac-address";
-                       mac-address-increment = <(4)>;
                };
 
                ethernet@1 {
@@ -55,9 +54,8 @@
                        status = "okay";
                        phy-mode = "sgmii";
                        phy-handle = <&phy9>;
-                       nvmem-cells = <&macaddr_eeprom_0>;
+                       nvmem-cells = <&macaddr_eeprom_0 5>;
                        nvmem-cell-names = "mac-address";
-                       mac-address-increment = <(5)>;
                };
        };
 };
index 9be52f917592f37fbf598108bd6ba6dba0b4fbff..ad73a08a1e2454d4a3e4caa8e08473c69f23af2d 100644 (file)
                        };
 
                        partition@400000 {
-                               compatible = "nvmem-cells";
-                               reg = <0x400000 0x10000>;
                                label = "eeprom";
                                read-only;
+                               reg = <0x400000 0x10000>;
 
-                               #address-cells = <1>;
-                               #size-cells = <1>;
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
 
-                               macaddr_eeprom_0: macaddr@0 {
-                                       reg = <0x0 0x6>;
+                                       macaddr_eeprom_0: macaddr@0 {
+                                               compatible = "mac-base";
+                                               reg = <0x0 0x6>;
+                                               #nvmem-cell-cells = <1>;
+                                       };
                                };
                        };
                };
                        status = "okay";
                        phy-mode = "sgmii";
                        phy-handle = <&phy5>;
-                       nvmem-cells = <&macaddr_eeprom_0>;
+                       nvmem-cells = <&macaddr_eeprom_0 1>;
                        nvmem-cell-names = "mac-address";
-                       mac-address-increment = <(1)>;
                };
 
                ethernet@2 {
                        status = "okay";
                        phy-mode = "sgmii";
                        phy-handle = <&phy6>;
-                       nvmem-cells = <&macaddr_eeprom_0>;
+                       nvmem-cells = <&macaddr_eeprom_0 2>;
                        nvmem-cell-names = "mac-address";
-                       mac-address-increment = <(2)>;
                };
 
                ethernet@3 {
                        status = "okay";
                        phy-mode = "sgmii";
                        phy-handle = <&phy7>;
-                       nvmem-cells = <&macaddr_eeprom_0>;
+                       nvmem-cells = <&macaddr_eeprom_0 3>;
                        nvmem-cell-names = "mac-address";
-                       mac-address-increment = <(3)>;
                };
        };
 };
-