mac-address-increment is deprecated.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
+ compatible = "mac-base";
reg = <0x4 0x6>;
+ #nvmem-cell-cells = <1>;
};
macaddr_factory_7fff4: macaddr@7fff4 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x5000>;
ieee80211-freq-limit = <5000000 6000000>;
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
};
phy-connection-type = "2500base-x";
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 (-1)>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(-1)>;
fixed-link {
speed = <2500>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
+ compatible = "mac-base";
reg = <0x4 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
compatible = "mediatek,eth-mac";
reg = <0>;
phy-mode = "2500base-x";
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 3>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <3>;
fixed-link {
speed = <2500>;
reg = <1>;
phy-mode = "gmii";
phy-handle = <&phy0>;
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
mdio: mdio-bus {
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
+ compatible = "mac-base";
reg = <0x4 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
phy-mode = "2500base-x";
nvmem-cell-names = "mac-address";
- nvmem-cells = <&macaddr_bdinfo_de00>;
+ nvmem-cells = <&macaddr_bdinfo_de00 0>;
fixed-link {
speed = <2500>;
#size-cells = <1>;
macaddr_bdinfo_de00: macaddr@de00 {
+ compatible = "mac-base";
reg = <0xde00 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
label = "wan";
nvmem-cell-names = "mac-address";
- nvmem-cells = <&macaddr_bdinfo_de00>;
- mac-address-increment = <1>;
+ nvmem-cells = <&macaddr_bdinfo_de00 1>;
};
lan1: port@1 {
label = "lan1";
nvmem-cell-names = "mac-address";
- nvmem-cells = <&macaddr_bdinfo_de00>;
+ nvmem-cells = <&macaddr_bdinfo_de00 0>;
};
port@2 {
label = "lan2";
nvmem-cell-names = "mac-address";
- nvmem-cells = <&macaddr_bdinfo_de00>;
+ nvmem-cells = <&macaddr_bdinfo_de00 0>;
};
port@3 {
label = "lan3";
nvmem-cell-names = "mac-address";
- nvmem-cells = <&macaddr_bdinfo_de00>;
+ nvmem-cells = <&macaddr_bdinfo_de00 0>;
};
port@6 {
reg = <0>;
phy-mode = "2500base-x";
phy-handle = <&phy0>;
- nvmem-cells = <&macaddr>;
+ nvmem-cells = <&macaddr 0>;
nvmem-cell-names = "mac-address";
};
reg = <1>;
phy-mode = "gmii";
phy-handle = <&int_gbe_phy>;
- nvmem-cells = <&macaddr>;
+ nvmem-cells = <&macaddr 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
};
#size-cells = <1>;
macaddr: macaddr@a {
+ compatible = "mac-base";
reg = <0xa 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
reg = <0>;
phy-mode = "2500base-x";
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 (-1)>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(-1)>;
fixed-link {
speed = <2500>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
+ compatible = "mac-base";
reg = <0x4 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
reg = <0>;
phy-mode = "2500base-x";
- nvmem-cells = <&macaddr_config_1c>;
+ nvmem-cells = <&macaddr_config_1c 0>;
nvmem-cell-names = "mac-address";
fixed-link {
phy-handle = <&phy7>;
phy-mode = "2500base-x";
- nvmem-cells = <&macaddr_config_1c>;
+ nvmem-cells = <&macaddr_config_1c 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
mdio: mdio-bus {
#size-cells = <1>;
macaddr_config_1c: macaddr@1c {
+ compatible = "mac-base";
reg = <0x1c 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
&wifi {
mediatek,mtd-eeprom = <&factory 0x0>;
- nvmem-cells = <&macaddr_config_1c>;
+ nvmem-cells = <&macaddr_config_1c 2>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <2>;
status = "okay";
};
reg = <0>;
phy-mode = "2500base-x";
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 (-1)>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(-1)>;
fixed-link {
speed = <2500>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
+ compatible = "mac-base";
reg = <0x4 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};