ramips: mt7620a: use mac-base
authorRosen Penev <rosenp@gmail.com>
Sat, 25 Nov 2023 21:35:04 +0000 (13:35 -0800)
committerChristian Marangi <ansuelsmth@gmail.com>
Sat, 25 Nov 2023 23:15:58 +0000 (00:15 +0100)
mac-address-increment is deprecated.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
16 files changed:
target/linux/ramips/dts/mt7620a_cameo_810.dtsi
target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts
target/linux/ramips/dts/mt7620a_dlink_dir-806a-b1.dts
target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts
target/linux/ramips/dts/mt7620a_dlink_dwr-118-a2.dts
target/linux/ramips/dts/mt7620a_dlink_dwr-960.dts
target/linux/ramips/dts/mt7620a_dlink_dwr-961-a1.dts
target/linux/ramips/dts/mt7620a_dlink_dwr-96x.dtsi
target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi
target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts
target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts
target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts
target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts
target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts
target/linux/ramips/dts/mt7620a_tplink_archer.dtsi
target/linux/ramips/dts/mt7620a_tplink_re2x0-v1.dtsi

index 80eba827d75617b6bd4bcad4300eb767ae43ff4a..d09f4d292ebdf0b3781c7dc416e48fb3554059af 100644 (file)
@@ -99,7 +99,9 @@
                                        };
 
                                        macaddr_factory_28: macaddr@28 {
+                                               compatible = "mac-base";
                                                reg = <0x28 0x6>;
+                                               #nvmem-cell-cells = <1>;
                                        };
                                };
                        };
 };
 
 &ethernet {
-       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cells = <&macaddr_factory_28 0>;
        nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "llllw";
        pinctrl-names = "default", "pa_gpio";
        pinctrl-0 = <&pa_pins>;
        pinctrl-1 = <&pa_gpio_pins>;
-       nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_28>;
+       nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_28 0>;
        nvmem-cell-names = "eeprom", "mac-address";
 };
 
        wifi@0,0 {
                reg = <0x0000 0 0 0 0>;
                ieee80211-freq-limit = <5000000 6000000>;
-               nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_28>;
+               nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_28 2>;
                nvmem-cell-names = "eeprom", "mac-address";
-               mac-address-increment = <2>;
        };
 };
index 7b9145a74153c593ccc943d6eae7770dbf86fc74..febfd2e32eda9639c9ad193949d941c7061e637f 100644 (file)
                                        };
 
                                        macaddr_config_e490: macaddr@e490 {
+                                               compatible = "mac-base";
                                                reg = <0xe490 0x6>;
+                                               #nvmem-cell-cells = <1>;
                                        };
                                };
                        };
 &pcie0 {
        mt76x0e@0,0 {
                reg = <0x0000 0 0 0 0>;
-               nvmem-cells = <&eeprom_config_e05d>, <&macaddr_config_e490>;
+               nvmem-cells = <&eeprom_config_e05d>, <&macaddr_config_e490 2>;
                nvmem-cell-names = "eeprom", "mac-address";
-               mac-address-increment = <(2)>;
        };
 };
 
index e2aeb86420c1645374486e8fabf0b32f91e2c846..52739f511461f90e4e771374bfe401061b0b91e7 100644 (file)
                                        };
 
                                        macaddr_factory_4: macaddr@4 {
+                                               compatible = "mac-base";
                                                reg = <0x4 0x6>;
+                                               #nvmem-cell-cells = <1>;
                                        };
 
                                        macaddr_factory_8004: macaddr@8004 {
+                                               compatible = "mac-base";
                                                reg = <0x8004 0x6>;
+                                               #nvmem-cell-cells = <1>;
                                        };
                                };
                        };
 };
 
 &ethernet {
-       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cells = <&macaddr_factory_4 (-2)>;
        nvmem-cell-names = "mac-address";
-       mac-address-increment = <(-2)>;
 };
 
 &wmac {
        pinctrl-0 = <&pa_pins>;
        pinctrl-1 = <&pa_gpio_pins>;
 
-       nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_4>;
+       nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_4 (-1)>;
        nvmem-cell-names = "eeprom", "mac-address";
-       mac-address-increment = <(-1)>;
 };
 
 &pcie {
        wifi@0,0 {
                reg = <0x0000 0 0 0 0>;
                ieee80211-freq-limit = <5000000 6000000>;
-               nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_8004>;
+               nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_8004 (-3)>;
                nvmem-cell-names = "eeprom", "mac-address";
-               mac-address-increment = <(-3)>;
 
                led {
                        led-active-low;
index 19acb0bb3a5cf35f6565cccc2b64adb50102acd3..97fc4f0935c45ba3093b0133cfa0623a40e69b30 100644 (file)
                                        };
 
                                        macaddr_config_e496: macaddr@e496 {
+                                               compatible = "mac-base";
                                                reg = <0xe496 0x6>;
+                                               #nvmem-cell-cells = <1>;
                                        };
                                };
                        };
 &pcie0 {
        wifi@0,0 {
                reg = <0x0000 0 0 0 0>;
-               nvmem-cells = <&eeprom_config_e083>, <&macaddr_config_e496>;
+               nvmem-cells = <&eeprom_config_e083>, <&macaddr_config_e496 2>;
                nvmem-cell-names = "eeprom", "mac-address";
-               mac-address-increment = <(2)>;
 
                led {
                        led-sources = <0>;
index 990fa298f284a867e8d0d78c7494aa87f1157903..5f11b73ad9e40d739fdb0758c37f059bd8e5e02f 100644 (file)
                                        #size-cells = <1>;
 
                                        macaddr_config_e4a8: macaddr@e4a8 {
+                                               compatible = "mac-base";
                                                reg = <0xe4a8 0x6>;
+                                               #nvmem-cell-cells = <1>;
                                        };
                                };
                        };
        wifi@0,0 {
                reg = <0x0000 0 0 0 0>;
                ieee80211-freq-limit = <5000000 6000000>;
-               nvmem-cells = <&macaddr_config_e4a8>;
+               nvmem-cells = <&macaddr_config_e4a8 2>;
                nvmem-cell-names = "mac-address";
-               mac-address-increment = <(2)>;
 
                led {
                        led-sources = <2>;
index a3e65c6468972af90161680aaf1937c7db19db9d..c1fff81452154d53018b4b73531e3b28cba58bd0 100644 (file)
@@ -30,7 +30,6 @@
 };
 
 &wifi {
-       nvmem-cells = <&eeprom_config_e08e>, <&macaddr_config_e50e>;
+       nvmem-cells = <&eeprom_config_e08e>, <&macaddr_config_e50e 2>;
        nvmem-cell-names = "eeprom", "mac-address";
-       mac-address-increment = <2>;
 };
index f80aa716819024d62a8894d2e95335859fbe963b..c4220592e8496f2d21cdbec262f9917626705848 100644 (file)
@@ -58,7 +58,6 @@
 };
 
 &wifi {
-       nvmem-cells = <&eeprom_config_e29e>, <&macaddr_config_e50e>;
+       nvmem-cells = <&eeprom_config_e29e>, <&macaddr_config_e50e 2>;
        nvmem-cell-names = "eeprom", "mac-address";
-       mac-address-increment = <2>;
 };
index 241e71cbcf0dcd073aaa11ac3bf9ef255b04a74d..11cd15922cc161bba9281b07e44697b7feec1eba 100644 (file)
                                        };
 
                                        macaddr_config_e50e: macaddr@e50e {
+                                               compatible = "mac-base";
                                                reg = <0xe50e 0x6>;
+                                               #nvmem-cell-cells = <1>;
                                        };
                                };
                        };
index 0be86e5e97e916c3f297296e7cf88974f31ce058..eb21ff7d6f9676e2cc404c32519b89fb3342fbce 100644 (file)
@@ -98,7 +98,9 @@
                                        };
 
                                        macaddr_factory_4: macaddr@4 {
+                                               compatible = "mac-base";
                                                reg = <0x4 0x6>;
+                                               #nvmem-cell-cells = <1>;
                                        };
                                };
                        };
        pinctrl-names = "default";
        pinctrl-0 = <&rgmii1_pins &mdio_pins &phy_reset_pins>;
 
-       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cells = <&macaddr_factory_4 0>;
        nvmem-cell-names = "mac-address";
 
        phy-reset-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
 };
 
 &wmac {
-       nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_4>;
+       nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_4 0>;
        nvmem-cell-names = "eeprom", "mac-address";
 };
 
        wifi@0,0 {
                reg = <0x0000 0 0 0 0>;
                ieee80211-freq-limit = <5000000 6000000>;
-               nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_4>;
+               nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_4 2>;
                nvmem-cell-names = "eeprom", "mac-address";
-               mac-address-increment = <2>;
        };
 };
index d8870999061e13e911f5af793af1e47c4c0d15b7..f43aa2d3bca643cfa344861a2abda9037192d01e 100644 (file)
                                        };
 
                                        macaddr_config_e07e: macaddr@e07e {
+                                               compatible = "mac-base";
                                                reg = <0xe07e 0x6>;
+                                               #nvmem-cell-cells = <1>;
                                        };
                                };
                        };
 &pcie0 {
        mt76x0e@0,0 {
                reg = <0x0000 0 0 0 0>;
-               nvmem-cells = <&eeprom_config_e08a>, <&macaddr_config_e07e>;
+               nvmem-cells = <&eeprom_config_e08a>, <&macaddr_config_e07e 2>;
                nvmem-cell-names = "eeprom", "mac-address";
-               mac-address-increment = <2>;
        };
 };
 
index 7c1d7b483dcc19be61cf0fbf8ad6659a4fa03d05..88d241601019ab404f18c9236cb7138c36dd561b 100644 (file)
                                        #size-cells = <1>;
 
                                        macaddr_rom_f100: macaddr@f100 {
+                                               compatible = "mac-base";
                                                reg = <0xf100 0x6>;
+                                               #nvmem-cell-cells = <1>;
                                        };
                                };
                        };
        pinctrl-names = "default";
        pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
 
-       nvmem-cells = <&macaddr_rom_f100>;
+       nvmem-cells = <&macaddr_rom_f100 0>;
        nvmem-cell-names = "mac-address";
 
        port@5 {
 };
 
 &wmac {
-       nvmem-cells = <&eeprom_radio_0>, <&macaddr_rom_f100>;
+       nvmem-cells = <&eeprom_radio_0>, <&macaddr_rom_f100 0>;
        nvmem-cell-names = "eeprom", "mac-address";
 };
 
 &pcie0 {
        mt76@0,0 {
                reg = <0x0000 0 0 0 0>;
-               nvmem-cells = <&eeprom_radio_8000>, <&macaddr_rom_f100>;
+               nvmem-cells = <&eeprom_radio_8000>, <&macaddr_rom_f100 (-1)>;
                nvmem-cell-names = "eeprom", "mac-address";
-               mac-address-increment = <(-1)>;
        };
 };
index 8fe5b9c3a2c779a09233e943fdef5b6bad410117..e631f6f4e48fcc428cc2fd0e8adac8cd799df937 100644 (file)
        pinctrl-0 = <&pa_pins>;
        pinctrl-1 = <&pa_gpio_pins>;
 
-       nvmem-cells = <&macaddr_rom_f100>;
+       nvmem-cells = <&macaddr_rom_f100 (-2)>;
        nvmem-cell-names = "mac-address";
-       mac-address-increment = <(-2)>;
 };
 
 &wifi {
-       nvmem-cells = <&macaddr_rom_f100>;
+       nvmem-cells = <&macaddr_rom_f100 (-1)>;
        nvmem-cell-names = "mac-address";
-       mac-address-increment = <(-1)>;
 };
index 88165c02be2acf83ccf610412d8b09322aed0f06..d00d2195eeb5f200cd8c513821790685e781d3e9 100644 (file)
 };
 
 &wmac {
-       nvmem-cells = <&macaddr_rom_f100>;
+       nvmem-cells = <&macaddr_rom_f100 0>;
        nvmem-cell-names = "mac-address";
 };
 
 &wifi {
-       nvmem-cells = <&macaddr_rom_f100>;
+       nvmem-cells = <&macaddr_rom_f100 (-1)>;
        nvmem-cell-names = "mac-address";
-       mac-address-increment = <(-1)>;
 };
index 4dbd1b2a98670e859c66a3264bc11af8890fe6cc..439bc36dc3a21d4a372f750e7d65631d85153b35 100644 (file)
        pinctrl-0 = <&pa_pins>;
        pinctrl-1 = <&pa_gpio_pins>;
 
-       nvmem-cells = <&macaddr_rom_f100>;
+       nvmem-cells = <&macaddr_rom_f100 (-2)>;
        nvmem-cell-names = "mac-address";
-       mac-address-increment = <(-2)>;
 };
 
 &wifi {
-       nvmem-cells = <&macaddr_rom_f100>;
+       nvmem-cells = <&macaddr_rom_f100 (-1)>;
        nvmem-cell-names = "mac-address";
-       mac-address-increment = <(-1)>;
 };
index e860d3ed13d518d8fd0b98491533d0d44e2ccfa8..50a91be8ec5fcdea298017cd6cbc2ebbe92d526f 100644 (file)
@@ -79,7 +79,9 @@
                                        #size-cells = <1>;
 
                                        macaddr_rom_f100: macaddr@f100 {
+                                               compatible = "mac-base";
                                                reg = <0xf100 0x6>;
+                                               #nvmem-cell-cells = <1>;
                                        };
                                };
                        };
index c9d0ab87ee105b79036644072790a74563be5c19..02f03afc487e60b5b314cac6a27a476f1a3d1314 100644 (file)
@@ -55,7 +55,9 @@
                                        #size-cells = <1>;
 
                                        macaddr_uboot_1fc00: macaddr@1fc00 {
+                                               compatible = "mac-base";
                                                reg = <0x1fc00 0x6>;
+                                               #nvmem-cell-cells = <1>;
                                        };
                                };
                        };
 };
 
 &ethernet {
-       nvmem-cells = <&macaddr_uboot_1fc00>;
+       nvmem-cells = <&macaddr_uboot_1fc00 0>;
        nvmem-cell-names = "mac-address";
 };
 
 &wmac {
-       nvmem-cells = <&eeprom_radio_0>, <&macaddr_uboot_1fc00>;
+       nvmem-cells = <&eeprom_radio_0>, <&macaddr_uboot_1fc00 0>;
        nvmem-cell-names = "eeprom", "mac-address";
 };
 
        mt76@0,0 {
                reg = <0x0000 0 0 0 0>;
                ieee80211-freq-limit = <5000000 6000000>;
-               nvmem-cells = <&eeprom_radio_8000>, <&macaddr_uboot_1fc00>;
+               nvmem-cells = <&eeprom_radio_8000>, <&macaddr_uboot_1fc00 2>;
                nvmem-cell-names = "eeprom", "mac-address";
-               mac-address-increment = <2>;
        };
 };