};
macaddr_factory_e00c: macaddr@e00c {
+ compatible = "mac-base";
reg = <0xe00c 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_e00c>;
+ nvmem-cells = <&macaddr_factory_e00c 0>;
nvmem-cell-names = "mac-address";
};
label = "wan";
phy-handle = <ðphy4>;
- nvmem-cells = <&macaddr_factory_e00c>;
+ nvmem-cells = <&macaddr_factory_e00c 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
&mdio {
};
macaddr_factory_e000: macaddr@e000 {
+ compatible = "mac-base";
reg = <0xe000 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 0>;
nvmem-cell-names = "mac-address";
};
label = "wan";
phy-handle = <ðphy4>;
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
&mdio {
model = "AsiaRF AP7621-001";
};
-&gmac1 {
- status = "okay";
- label = "wan";
- phy-handle = <ðphy4>;
-
- nvmem-cells = <&macaddr_factory_e000>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
-};
-
-&mdio {
- ethphy4: ethernet-phy@4 {
- reg = <4>;
- };
-};
-
&switch0 {
ports {
port@0 {
model = "AsiaRF AP7621-NV1";
};
-&gmac1 {
- status = "okay";
- label = "wan";
- phy-handle = <ðphy0>;
-
- nvmem-cells = <&macaddr_factory_e000>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
-};
-
-&mdio {
- ethphy0: ethernet-phy@0 {
- reg = <0>;
- };
-};
-
&switch0 {
ports {
port@2 {
#size-cells = <1>;
macaddr_factory_e000: macaddr@e000 {
+ compatible = "mac-base";
reg = <0xe000 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
status = "okay";
};
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&gmac0 {
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 0>;
+ nvmem-cell-names = "mac-address";
+};
+
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_e000 1>;
nvmem-cell-names = "mac-address";
};
};
macaddr_factory_21000: macaddr@21000 {
+ compatible = "mac-base";
reg = <0x21000 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
reg = <0x0000 0 0 0 0>;
ieee80211-freq-limit = <5000000 6000000>;
- nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_21000>;
+ nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_21000 5>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <(5)>;
};
};
reg = <0x0000 0 0 0 0>;
ieee80211-freq-limit = <2400000 2500000>;
- nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_21000>;
+ nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_21000 4>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <(4)>;
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_21000>;
+ nvmem-cells = <&macaddr_factory_21000 0>;
nvmem-cell-names = "mac-address";
};
label = "wan";
phy-handle = <ðphy0>;
- nvmem-cells = <&macaddr_factory_21000>;
+ nvmem-cells = <&macaddr_factory_21000 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(1)>;
};
&mdio {
* 0x10000000-0xfc00000=0x400000
*/
};
+
+&pcie1 {
+ wlan_2g: wifi@0,0 {
+ compatible = "mediatek,mt76";
+ reg = <0x0000 0 0 0 0>;
+ ieee80211-freq-limit = <2400000 2500000>;
+
+ nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_1000 0>;
+ nvmem-cell-names = "eeprom", "mac-address";
+ };
+};
};
macaddr_factory_21000: macaddr@21000 {
+ compatible = "mac-base";
reg = <0x21000 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
reg = <0x0000 0 0 0 0>;
ieee80211-freq-limit = <5000000 6000000>;
- nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_21000>;
+ nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_21000 5>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <(5)>;
};
};
reg = <0x0000 0 0 0 0>;
ieee80211-freq-limit = <2400000 2500000>;
- nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_21000>;
+ nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_21000 4>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <(4)>;
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_21000>;
+ nvmem-cells = <&macaddr_factory_21000 0>;
nvmem-cell-names = "mac-address";
};
label = "wan";
phy-handle = <ðphy0>;
- nvmem-cells = <&macaddr_factory_21000>;
+ nvmem-cells = <&macaddr_factory_21000 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(1)>;
};
&mdio {
&pcie0 {
wifi@0,0 {
- nvmem-cells = <&macaddr_factory_21000>;
+ nvmem-cells = <&macaddr_factory_21000 5>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(5)>;
};
};
&pcie1 {
wifi@0,0 {
- nvmem-cells = <&macaddr_factory_21000>;
+ nvmem-cells = <&macaddr_factory_21000 4>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(4)>;
};
};
&gmac1 {
- nvmem-cells = <&macaddr_factory_21000>;
+ nvmem-cells = <&macaddr_factory_21000 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(1)>;
};
};
macaddr_factory_28: macaddr@28 {
+ compatible = "mac-base";
reg = <0x28 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cells = <&macaddr_factory_28 3>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <3>;
};
&switch0 {
wan: port@1 {
status = "okay";
label = "wan";
- nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cells = <&macaddr_factory_28 0>;
nvmem-cell-names = "mac-address";
};
};
macaddr_factory_4: macaddr@4 {
+ compatible = "mac-base";
reg = <0x4 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 (-1)>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(-1)>;
};
&gmac1 {
label = "wan";
phy-handle = <ðphy0>;
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 (-1)>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(-1)>;
};
&mdio {
#size-cells = <1>;
macaddr_factory_e000: macaddr@e000 {
+ compatible = "mac-base";
reg = <0xe000 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 0>;
nvmem-cell-names = "mac-address";
};
port@0 {
status = "okay";
label = "wan";
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
port@4 {
};
&gmac0 {
- nvmem-cells = <&macaddr_bdinfo_de00>;
+ nvmem-cells = <&macaddr_bdinfo_de00 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
&gmac1 {
label = "lan";
phy-handle = <ðphy4>;
- nvmem-cells = <&macaddr_bdinfo_de00>;
+ nvmem-cells = <&macaddr_bdinfo_de00 0>;
nvmem-cell-names = "mac-address";
};
#size-cells = <1>;
macaddr_bdinfo_de00: macaddr@de00 {
+ compatible = "mac-base";
reg = <0xde00 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
#size-cells = <1>;
macaddr_bdinfo_de00: macaddr@de00 {
+ compatible = "mac-base";
reg = <0xde00 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
wifi@0,0 {
compatible = "pci14c3,7603";
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&eeprom_factory_0>, <&macaddr_bdinfo_de00>;
+ nvmem-cells = <&eeprom_factory_0>, <&macaddr_bdinfo_de00 0>;
nvmem-cell-names = "eeprom", "mac-address";
ieee80211-freq-limit = <2400000 2500000>;
wifi@0,0 {
compatible = "pci14c3,7662";
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&eeprom_factory_8000>, <&macaddr_bdinfo_de00>;
+ nvmem-cells = <&eeprom_factory_8000>, <&macaddr_bdinfo_de00 2>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <2>;
ieee80211-freq-limit = <5000000 6000000>;
led {
};
&gmac0 {
- nvmem-cells = <&macaddr_bdinfo_de00>;
+ nvmem-cells = <&macaddr_bdinfo_de00 0>;
nvmem-cell-names = "mac-address";
};
label = "wan";
phy-handle = <ðphy4>;
- nvmem-cells = <&macaddr_bdinfo_de00>;
+ nvmem-cells = <&macaddr_bdinfo_de00 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
&mdio {
};
&gmac0 {
- nvmem-cells = <&macaddr_bdinfo_de00>;
+ nvmem-cells = <&macaddr_bdinfo_de00 0>;
nvmem-cell-names = "mac-address";
};
#size-cells = <1>;
macaddr_bdinfo_de00: macaddr@de00 {
+ compatible = "mac-base";
reg = <0xde00 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
label = "wan";
phy-handle = <ðphy4>;
- nvmem-cells = <&macaddr_bdinfo_de00>;
+ nvmem-cells = <&macaddr_bdinfo_de00 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
&mdio {
#size-cells = <1>;
macaddr_bdinfo_de00: macaddr@de00 {
+ compatible = "mac-base";
reg = <0xde00 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_bdinfo_de00>;
+ nvmem-cells = <&macaddr_bdinfo_de00 0>;
nvmem-cell-names = "mac-address";
};
&gmac1 {
- nvmem-cells = <&macaddr_bdinfo_de00>;
+ nvmem-cells = <&macaddr_bdinfo_de00 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
&wifi {
- nvmem-cells = <&macaddr_bdinfo_de00>;
+ nvmem-cells = <&macaddr_bdinfo_de00 0>;
nvmem-cell-names = "mac-address";
};
#size-cells = <1>;
macaddr_bdinfo_de00: macaddr@de00 {
+ compatible = "mac-base";
reg = <0xde00 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_bdinfo_de00>;
+ nvmem-cells = <&macaddr_bdinfo_de00 0>;
nvmem-cell-names = "mac-address";
};
&gmac1 {
- nvmem-cells = <&macaddr_bdinfo_de00>;
+ nvmem-cells = <&macaddr_bdinfo_de00 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
&wifi {
- nvmem-cells = <&macaddr_bdinfo_de00>;
+ nvmem-cells = <&macaddr_bdinfo_de00 0>;
nvmem-cell-names = "mac-address";
};
linux,default-trigger = "usbport";
};
};
-
-&wifi0 {
- nvmem-cells = <&macaddr_factory_e000>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
-};
-
-&wifi1 {
- nvmem-cells = <&macaddr_factory_e000>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <2>;
-};
linux,default-trigger = "usbport";
};
};
-
-&wifi0 {
- nvmem-cells = <&macaddr_factory_e000>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
-};
-
-&wifi1 {
- nvmem-cells = <&macaddr_factory_e000>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <2>;
-};
linux,default-trigger = "usbport";
};
};
-
-&wifi0 {
- nvmem-cells = <&macaddr_factory_e000>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
-};
-
-&wifi1 {
- nvmem-cells = <&macaddr_factory_e000>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <2>;
-};
};
macaddr_factory_e000: macaddr@e000 {
+ compatible = "mac-base";
reg = <0xe000 0x6>;
+ #nvmem-cell-cells = <1>;
};
macaddr_factory_e006: macaddr@e006 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
ieee80211-freq-limit = <2400000 6000000>;
- nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_e000>;
+ nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_e000 1>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <1>;
};
};
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
ieee80211-freq-limit = <5000000 6000000>;
- nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_e000>;
+ nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_e000 3>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <3>;
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 0>;
nvmem-cell-names = "mac-address";
};
/* 5 GHz (phy1) does not take the address from calibration data,
but setting it manually here works */
- nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_4>;
+ nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_4 0>;
nvmem-cell-names = "eeprom", "mac-address";
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 (-1)>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(-1)>;
};
&gmac1 {
label = "wan";
phy-handle = <ðphy4>;
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 (-2)>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(-2)>;
};
&mdio {
};
macaddr_factory_e000: macaddr@e000 {
+ compatible = "mac-base";
reg = <0xe000 0x6>;
+ #nvmem-cell-cells = <1>;
};
macaddr_factory_e006: macaddr@e006 {
wifi0: wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cells = <&macaddr_factory_e000 1>;
nvmem-cell-names = "eeprom";
ieee80211-freq-limit = <2400000 2500000>;
wifi1: wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&eeprom_factory_8000>;
+ nvmem-cells = <&macaddr_factory_e000 2>;
nvmem-cell-names = "eeprom";
ieee80211-freq-limit = <5000000 6000000>;
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 0>;
nvmem-cell-names = "mac-address";
};
};
macaddr_factory_4: macaddr@4 {
+ compatible = "mac-base";
reg = <0x4 0x6>;
+ #nvmem-cell-cells = <1>;
};
macaddr_factory_e000: macaddr@e000 {
#size-cells = <1>;
macaddr_factory_e000: macaddr@e000 {
+ compatible = "mac-base";
reg = <0xe000 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
status = "okay";
label = "wan";
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 0>;
nvmem-cell-names = "mac-address";
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 0>;
nvmem-cell-names = "mac-address";
};
};
macaddr_factory_e000: macaddr@e000 {
+ compatible = "mac-base";
reg = <0xe000 0x6>;
+ #nvmem-cell-cells = <1>;
};
macaddr_factory_e006: macaddr@e006 {
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_e000>;
+ nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_e000 1>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <1>;
};
};
};
macaddr_factory_21000: macaddr@21000 {
+ compatible = "mac-base";
reg = <0x21000 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
reg = <0x0000 0 0 0 0>;
ieee80211-freq-limit = <5000000 6000000>;
- nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_21000>;
+ nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_21000 3>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <(3)>;
};
};
reg = <0x0000 0 0 0 0>;
ieee80211-freq-limit = <2400000 2500000>;
- nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_21000>;
+ nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_21000 2>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <(2)>;
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_21000>;
+ nvmem-cells = <&macaddr_factory_21000 0>;
nvmem-cell-names = "mac-address";
};
label = "wan";
phy-handle = <ðphy0>;
- nvmem-cells = <&macaddr_factory_21000>;
+ nvmem-cells = <&macaddr_factory_21000 11>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(11)>;
};
&mdio {
};
macaddr_factory_e000: macaddr@e000 {
+ compatible = "mac-base";
reg = <0xe000 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 0>;
nvmem-cell-names = "mac-address";
};
port@4 {
status = "okay";
label = "wan";
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
};
};
};
macaddr_factory_e000: macaddr@e000 {
+ compatible = "mac-base";
reg = <0xe000 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 0>;
nvmem-cell-names = "mac-address";
};
label = "wan";
phy-handle = <ðphy4>;
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
&mdio {
};
macaddr_factory_4000: macaddr@4000 {
+ compatible = "mac-base";
reg = <0x4000 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_4000>;
+ nvmem-cells = <&macaddr_factory_4000 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
&gmac1 {
label = "wan";
phy-handle = <ðphy4>;
- nvmem-cells = <&macaddr_factory_4000>;
+ nvmem-cells = <&macaddr_factory_4000 0>;
nvmem-cell-names = "mac-address";
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_8004>;
+ nvmem-cells = <&macaddr_factory_8004 0>;
nvmem-cell-names = "mac-address";
};
label = "wan";
phy-handle = <ðphy4>;
- nvmem-cells = <&macaddr_factory_8004>;
+ nvmem-cells = <&macaddr_factory_8004 (-3)>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(-3)>;
};
&mdio {
};
macaddr_factory_8004: macaddr@8004 {
+ compatible = "mac-base";
reg = <0x8004 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
macaddr_factory_4: macaddr@4 {
+ compatible = "mac-base";
reg = <0x4 0x6>;
+ #nvmem-cell-cells = <1>;
};
macaddr_factory_8004: macaddr@8004 {
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 0>;
nvmem-cell-names = "mac-address";
};
port@0 {
status = "okay";
label = "wan";
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
port@1 {
};
macaddr_factory_4: macaddr@4 {
+ compatible = "mac-base";
reg = <0x4 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
label = "wan";
phy-handle = <ðphy0>;
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
&mdio {
};
macaddr_factory_4: macaddr@4 {
+ compatible = "mac-base";
reg = <0x4 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 0>;
nvmem-cell-names = "mac-address";
};
label = "wan";
phy-handle = <ðphy0>;
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
&mdio {
#size-cells = <1>;
macaddr_uboot_1fc40: macaddr@1fc40 {
+ compatible = "mac-base";
reg = <0x1fc40 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_uboot_1fc40>;
+ nvmem-cells = <&macaddr_uboot_1fc40 2>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(2)>;
};
&gmac1 {
label = "wan";
phy-handle = <ðphy0>;
- nvmem-cells = <&macaddr_uboot_1fc40>;
+ nvmem-cells = <&macaddr_uboot_1fc40 0>;
nvmem-cell-names = "mac-address";
};
};
macaddr_factory_4: macaddr@4 {
+ compatible = "mac-base";
reg = <0x4 0x6>;
+ #nvmem-cell-cells = <1>;
};
macaddr_factory_8004: macaddr@8004 {
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 3>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(3)>;
};
&gmac1 {
label = "wan";
phy-handle = <ðphy0>;
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(1)>;
};
&mdio {
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
+ compatible = "mac-base";
reg = <0x4 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 3>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <3>;
};
&gmac1 {
label = "wan";
phy-handle = <ðphy0>;
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
&mdio {
#size-cells = <1>;
macaddr_factory_5: macaddr@5 {
+ compatible = "mac-base";
reg = <0x5 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_5>;
+ nvmem-cells = <&macaddr_factory_5 0>;
nvmem-cell-names = "mac-address";
};
label = "wan";
phy-handle = <ðphy4>;
- nvmem-cells = <&macaddr_factory_5>;
+ nvmem-cells = <&macaddr_factory_5 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
&mdio {
#size-cells = <1>;
macaddr_config_8: macaddr@8 {
+ compatible = "mac-base";
reg = <0x8 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x0>;
- nvmem-cells = <&macaddr_config_8>;
+ nvmem-cells = <&macaddr_config_8 0>;
nvmem-cell-names = "mac-address";
mediatek,disable-radar-background;
};
};
&gmac0 {
- nvmem-cells = <&macaddr_config_8>;
+ nvmem-cells = <&macaddr_config_8 0>;
nvmem-cell-names = "mac-address";
};
label = "wan";
phy-handle = <ðphy0>;
- nvmem-cells = <&macaddr_config_8>;
+ nvmem-cells = <&macaddr_config_8 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
&mdio {
};
macaddr_factory_e000: macaddr@e000 {
+ compatible = "mac-base";
reg = <0xe000 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
ieee80211-freq-limit = <5000000 6000000>;
- nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_e000>;
+ nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_e000 0>;
nvmem-cell-names = "eeprom", "mac-address";
};
};
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
ieee80211-freq-limit = <2400000 2500000>;
- nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_e000>;
+ nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_e000 0>;
nvmem-cell-names = "eeprom", "mac-address";
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 0>;
nvmem-cell-names = "mac-address";
};
phy-mode = "rgmii-rxid";
phy-handle = <ðphy5>;
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
&mdio {
status = "okay";
label = "wan1";
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
};
};
};
macaddr_factory_4: macaddr@4 {
+ compatible = "mac-base";
reg = <0x4 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 0>;
nvmem-cell-names = "mac-address";
};
port@4 {
status = "okay";
label = "wan";
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 0>;
nvmem-cell-names = "mac-address";
};
label = "wan";
phy-handle = <ðphy4>;
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 2>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <2>;
};
&mdio {
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
+ compatible = "mac-base";
reg = <0x4 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 0>;
nvmem-cell-names = "mac-address";
};
label = "wan";
phy-handle = <ðphy4>;
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 2>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <2>;
};
&mdio {
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
+ compatible = "mac-base";
reg = <0x4 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
#size-cells = <1>;
macaddr_bdinfo_9: macaddr@9 {
+ compatible = "mac-base";
reg = <0x9 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_bdinfo_9>;
+ nvmem-cells = <&macaddr_bdinfo_9 0>;
nvmem-cell-names = "mac-address";
};
label = "wan";
phy-handle = <ðphy4>;
- nvmem-cells = <&macaddr_bdinfo_9>;
+ nvmem-cells = <&macaddr_bdinfo_9 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
&mdio {
};
macaddr_factory_4: macaddr@4 {
+ compatible = "mac-base";
reg = <0x4 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
compatible = "mediatek,mt76";
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 1>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <1>;
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 (-2)>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(-2)>;
};
&gmac1 {
label = "wan";
phy-handle = <ðphy4>;
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 (-1)>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(-1)>;
};
&mdio {
&pcie0 {
wifi@0,0 {
- nvmem-cells = <&macaddr_factory_21000>;
+ nvmem-cells = <&macaddr_factory_21000 3>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(3)>;
};
};
&pcie1 {
wifi@0,0 {
- nvmem-cells = <&macaddr_factory_21000>;
+ nvmem-cells = <&macaddr_factory_21000 2>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(2)>;
};
};
&gmac1 {
- nvmem-cells = <&macaddr_factory_21000>;
+ nvmem-cells = <&macaddr_factory_21000 11>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(11)>;
};
};
macaddr_factory_21000: macaddr@21000 {
+ compatible = "mac-base";
reg = <0x21000 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 0>;
nvmem-cell-names = "mac-address";
};
};
macaddr_factory_e000: macaddr@e000 {
+ compatible = "mac-base";
reg = <0xe000 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_e000>;
+ nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_e000 1>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <1>;
ieee80211-freq-limit = <5000000 6000000>;
};
};
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0 0 0 0 0>;
- nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_e000>;
+ nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_e000 2>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <2>;
ieee80211-freq-limit = <2400000 2500000>;
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 0>;
nvmem-cell-names = "mac-address";
};
};
macaddr_factory_e000: macaddr@e000 {
+ compatible = "mac-base";
reg = <0xe000 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_e000>;
+ nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_e000 1>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <1>;
ieee80211-freq-limit = <5000000 6000000>;
};
};
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0 0 0 0 0>;
- nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_e000>;
+ nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_e000 2>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <2>;
ieee80211-freq-limit = <2400000 2500000>;
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_1000>;
+ nvmem-cells = <&macaddr_factory_1000 0>;
nvmem-cell-names = "mac-address";
};
};
macaddr_factory_1000: macaddr@1000 {
+ compatible = "mac-base";
reg = <0x1000 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
reg = <0x0000 0 0 0 0>;
ieee80211-freq-limit = <5000000 6000000>;
- nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_1000>;
- nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <2>;
- };
-};
-
-&pcie1 {
- wlan_2g: wifi@0,0 {
- compatible = "mediatek,mt76";
- reg = <0x0000 0 0 0 0>;
- ieee80211-freq-limit = <2400000 2500000>;
-
- nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_1000>;
+ nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_1000 2>;
nvmem-cell-names = "eeprom", "mac-address";
};
};
status = "okay";
label = "wan";
- nvmem-cells = <&macaddr_factory_1000>;
+ nvmem-cells = <&macaddr_factory_1000 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
};
};
};
macaddr_factory_e006: macaddr@e006 {
+ compatible = "mac-base";
reg = <0xe006 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cells = <&macaddr_factory_e006 0>;
nvmem-cell-names = "mac-address";
};
label = "wan";
phy-handle = <ðphy4>;
- nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cells = <&macaddr_factory_e006 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
&mdio {
};
macaddr_factory_e006: macaddr@e006 {
+ compatible = "mac-base";
reg = <0xe006 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cells = <&macaddr_factory_e006 0>;
nvmem-cell-names = "mac-address";
};
port@4 {
status = "okay";
label = "wan";
- nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cells = <&macaddr_factory_e006 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 0>;
nvmem-cell-names = "mac-address";
};
label = "wan";
phy-handle = <ðphy0>;
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 (-2)>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(-2)>;
};
&mdio {
};
macaddr_factory_4: macaddr@4 {
+ compatible = "mac-base";
reg = <0x4 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
macaddr_factory_e000: macaddr@e000 {
+ compatible = "mac-base";
reg = <0xe000 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 0>;
nvmem-cell-names = "mac-address";
};
label = "wan";
phy-handle = <ðphy4>;
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
&mdio {
#size-cells = <1>;
macaddr_config_8: macaddr@8 {
+ compatible = "mac-base";
reg = <0x8 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x0>;
- nvmem-cells = <&macaddr_config_8>;
+ nvmem-cells = <&macaddr_config_8 0>;
nvmem-cell-names = "mac-address";
mediatek,disable-radar-background;
};
};
&gmac0 {
- nvmem-cells = <&macaddr_config_8>;
+ nvmem-cells = <&macaddr_config_8 0>;
nvmem-cell-names = "mac-address";
};
label = "wan";
phy-handle = <ðphy4>;
- nvmem-cells = <&macaddr_config_8>;
+ nvmem-cells = <&macaddr_config_8 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
&mdio {
#size-cells = <1>;
macaddr_config_8: macaddr@8 {
+ compatible = "mac-base";
reg = <0x8 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
mt76@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_8>;
+ nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_8 0>;
nvmem-cell-names = "eeprom", "mac-address";
ieee80211-freq-limit = <2400000 2500000>;
};
mt76@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_8>;
+ nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_8 (-1)>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <(-1)>;
ieee80211-freq-limit = <5000000 6000000>;
};
};
&gmac0 {
- nvmem-cells = <&macaddr_config_8>;
+ nvmem-cells = <&macaddr_config_8 0>;
nvmem-cell-names = "mac-address";
};
label = "wan";
phy-handle = <ðphy0>;
- nvmem-cells = <&macaddr_config_8>;
+ nvmem-cells = <&macaddr_config_8 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
&mdio {
#size-cells = <1>;
macaddr_config_8: macaddr@8 {
+ compatible = "mac-base";
reg = <0x8 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_8>;
+ nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_8 1>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <1>;
ieee80211-freq-limit = <2400000 2500000>;
};
};
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_8>;
+ nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_8 2>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <2>;
ieee80211-freq-limit = <5000000 6000000>;
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_config_8>;
+ nvmem-cells = <&macaddr_config_8 0>;
nvmem-cell-names = "mac-address";
};
#size-cells = <1>;
macaddr_info_8: macaddr@8 {
+ compatible = "mac-base";
reg = <0x8 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
&pcie0 {
wifi@0,0 {
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&eeprom_radio_0>, <&macaddr_info_8>;
+ nvmem-cells = <&eeprom_radio_0>, <&macaddr_info_8 0>;
nvmem-cell-names = "eeprom", "mac-address";
};
};
wifi@0,0 {
reg = <0x0000 0 0 0 0>;
ieee80211-freq-limit = <5000000 6000000>;
- nvmem-cells = <&eeprom_radio_8000>, <&macaddr_info_8>;
+ nvmem-cells = <&eeprom_radio_8000>, <&macaddr_info_8 1>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <1>;
};
};
&gmac0 {
- nvmem-cells = <&macaddr_info_8>;
+ nvmem-cells = <&macaddr_info_8 0>;
nvmem-cell-names = "mac-address";
};
label = "lan0";
phy-handle = <ðphy0>;
- nvmem-cells = <&macaddr_info_8>;
+ nvmem-cells = <&macaddr_info_8 0>;
nvmem-cell-names = "mac-address";
};
#size-cells = <1>;
macaddr_romfile_f100: romfile@f100 {
+ compatible = "mac-base";
reg = <0xf100 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
mt76@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&eeprom_radio_0>, <&macaddr_romfile_f100>;
+ nvmem-cells = <&eeprom_radio_0>, <&macaddr_romfile_f100 0>;
nvmem-cell-names = "eeprom", "mac-address";
ieee80211-freq-limit = <2400000 2500000>;
};
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
ieee80211-freq-limit = <5000000 6000000>;
- nvmem-cells = <&eeprom_radio_8000>, <&macaddr_romfile_f100>;
+ nvmem-cells = <&eeprom_radio_8000>, <&macaddr_romfile_f100 (-1)>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <(-1)>;
};
};
&gmac0 {
- nvmem-cells = <&macaddr_romfile_f100>;
+ nvmem-cells = <&macaddr_romfile_f100 0>;
nvmem-cell-names = "mac-address";
};
label = "wan";
phy-handle = <ðphy4>;
- nvmem-cells = <&macaddr_romfile_f100>;
+ nvmem-cells = <&macaddr_romfile_f100 0>;
nvmem-cell-names = "mac-address";
};
#size-cells = <1>;
macaddr_config_10008: macaddr@10008 {
+ compatible = "mac-base";
reg = <0x10008 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
&pcie0 {
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_10008>;
+ nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_10008 1>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <1>;
};
};
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
ieee80211-freq-limit = <5000000 6000000>;
- nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_10008>;
+ nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_10008 2>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <2>;
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_config_10008>;
+ nvmem-cells = <&macaddr_config_10008 0>;
nvmem-cell-names = "mac-address";
};
#size-cells = <1>;
macaddr_config_10008: macaddr@10008 {
+ compatible = "mac-base";
reg = <0x10008 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_10008>;
+ nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_10008 1>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <1>;
ieee80211-freq-limit = <2400000 2500000>;
};
};
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_10008>;
+ nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_10008 2>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <2>;
ieee80211-freq-limit = <5000000 6000000>;
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_config_10008>;
+ nvmem-cells = <&macaddr_config_10008 0>;
nvmem-cell-names = "mac-address";
};
#size-cells = <1>;
macaddr_config_10008: macaddr@10008 {
+ compatible = "mac-base";
reg = <0x10008 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_10008>;
+ nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_10008 1>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <1>;
ieee80211-freq-limit = <2400000 2500000>;
};
};
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_10008>;
+ nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_10008 2>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <2>;
ieee80211-freq-limit = <5000000 6000000>;
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_config_10008>;
+ nvmem-cells = <&macaddr_config_10008 0>;
nvmem-cell-names = "mac-address";
};
#size-cells = <1>;
macaddr_config_2008: macaddr@2008 {
+ compatible = "mac-base";
reg = <0x2008 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_2008>;
+ nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_2008 0>;
nvmem-cell-names = "eeprom", "mac-address";
ieee80211-freq-limit = <2400000 2500000>;
};
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_2008>;
+ nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_2008 1>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <1>;
ieee80211-freq-limit = <5000000 6000000>;
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_config_2008>;
+ nvmem-cells = <&macaddr_config_2008 0>;
nvmem-cell-names = "mac-address";
};
};
macaddr_eeprom_6: macaddr@6 {
+ compatible = "mac-base";
reg = <0x6 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
mediatek,mtd-eeprom = <&factory 0x20000>;
- nvmem-cells = <&macaddr_eeprom_6>;
- nvmem-cell-names = "mac-address";
-
/* This is a workaround.
*
* Ubiquiti uses a +2 offset in the first octet relative
* mac80211 increases the first octet by two for each VAP, leading
* to conflicting MAC addresses for subsequent interfaces.
*/
- mac-address-increment = <1>;
+ nvmem-cells = <&macaddr_eeprom_6 1>;
+ nvmem-cell-names = "mac-address";
ieee80211-freq-limit = <5000000 6000000>;
#size-cells = <1>;
macaddr_eeprom_0: macaddr@0 {
+ compatible = "mac-base";
reg = <0x0 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_eeprom_0>;
+ nvmem-cells = <&macaddr_eeprom_0 0>;
nvmem-cell-names = "mac-address";
};
mediatek,mtd-eeprom = <&factory 0x0>;
// On newer devices there is a MediaTek MAC in the above
// device EEPROM, so override it with a calculated one.
- nvmem-cells = <&macaddr_eeprom_0>;
+ nvmem-cells = <&macaddr_eeprom_0 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
};
mediatek,mtd-eeprom = <&factory 0x8000>;
// On newer devices there is a MediaTek MAC in the above
// device EEPROM, so override it with a calculated one.
- nvmem-cells = <&macaddr_eeprom_0>;
+ nvmem-cells = <&macaddr_eeprom_0 2>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <2>;
};
};
*/
};
-&wlan_2g {
- mac-address-increment = <1>;
+&pcie1 {
+ wlan_2g: wifi@0,0 {
+ compatible = "mediatek,mt76";
+ reg = <0x0000 0 0 0 0>;
+ ieee80211-freq-limit = <2400000 2500000>;
+
+ nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_1000 1>;
+ nvmem-cell-names = "eeprom", "mac-address";
+ };
};
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
+ compatible = "mac-base";
reg = <0x4 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 0>;
nvmem-cell-names = "mac-address";
};
label = "wan";
phy-handle = <ðphy4>;
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
&mdio {
};
macaddr_factory_e000: macaddr@e000 {
+ compatible = "mac-base";
reg = <0xe000 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 0>;
nvmem-cell-names = "mac-address";
};
port@4 {
status = "okay";
label = "wan";
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
};
};
#size-cells = <1>;
macaddr_factory_e000: macaddr@e000 {
+ compatible = "mac-base";
reg = <0xe000 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 0>;
nvmem-cell-names = "mac-address";
};
label = "wan";
phy-handle = <ðphy0>;
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
&mdio {
};
macaddr_factory_e000: macaddr@e000 {
+ compatible = "mac-base";
reg = <0xe000 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 0>;
nvmem-cell-names = "mac-address";
};
port@4 {
status = "okay";
label = "wan";
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
};
};
};
macaddr_factory_e000: macaddr@e000 {
+ compatible = "mac-base";
reg = <0xe000 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 0>;
nvmem-cell-names = "mac-address";
};
port@4 {
status = "okay";
label = "wan";
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
};
};
};
macaddr_factory_fe6e: macaddr@fe6e {
+ compatible = "mac-base";
reg = <0xfe6e 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_fe6e>;
+ nvmem-cells = <&macaddr_factory_fe6e 0>;
nvmem-cell-names = "mac-address";
};
compatible = "pci14c3,7615";
reg = <0x0000 0 0 0 0>;
mediatek,firmware-eeprom = "mt7615e_eeprom.bin";
- nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_fe6e>;
+ nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_fe6e 1>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <(1)>;
};
};