mac-address-increment is deprecated.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
};
macaddr_factory_28: macaddr@28 {
+ compatible = "mac-base";
reg = <0x28 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
ðernet {
- 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>;
};
};
};
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)>;
};
};
};
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>;
};
};
};
};
ðernet {
- 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;
};
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>;
#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>;
};
&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>;
};
};
&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>;
};
};
macaddr_config_e50e: macaddr@e50e {
+ compatible = "mac-base";
reg = <0xe50e 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
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>;
};
};
};
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>;
};
};
#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)>;
};
};
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)>;
};
};
&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)>;
};
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)>;
};
#size-cells = <1>;
macaddr_rom_f100: macaddr@f100 {
+ compatible = "mac-base";
reg = <0xf100 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
#size-cells = <1>;
macaddr_uboot_1fc00: macaddr@1fc00 {
+ compatible = "mac-base";
reg = <0x1fc00 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
ðernet {
- 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>;
};
};