mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 13:48:06 +00:00
ramips: mt7621: nix mac-address-increment
nvmem-layout allows removal Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
f4c33d098f
commit
3395184825
@ -82,7 +82,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_e00c: macaddr@e00c {
|
||||
compatible = "mac-base";
|
||||
reg = <0xe00c 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -121,7 +123,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_e00c>;
|
||||
nvmem-cells = <&macaddr_factory_e00c 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -130,9 +132,8 @@
|
||||
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 {
|
||||
|
@ -89,7 +89,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_e000: macaddr@e000 {
|
||||
compatible = "mac-base";
|
||||
reg = <0xe000 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -138,7 +140,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_e000>;
|
||||
nvmem-cells = <&macaddr_factory_e000 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -147,9 +149,8 @@
|
||||
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 {
|
||||
|
@ -7,22 +7,6 @@
|
||||
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 {
|
||||
|
@ -7,22 +7,6 @@
|
||||
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 {
|
||||
|
@ -85,7 +85,9 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_factory_e000: macaddr@e000 {
|
||||
compatible = "mac-base";
|
||||
reg = <0xe000 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -109,8 +111,23 @@
|
||||
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";
|
||||
};
|
||||
|
||||
|
@ -113,7 +113,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_21000: macaddr@21000 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x21000 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -187,9 +189,8 @@
|
||||
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)>;
|
||||
};
|
||||
};
|
||||
|
||||
@ -199,14 +200,13 @@
|
||||
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";
|
||||
};
|
||||
|
||||
@ -215,9 +215,8 @@
|
||||
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 {
|
||||
|
@ -116,3 +116,14 @@
|
||||
* 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";
|
||||
};
|
||||
};
|
||||
|
@ -119,7 +119,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_21000: macaddr@21000 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x21000 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -180,9 +182,8 @@
|
||||
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)>;
|
||||
};
|
||||
};
|
||||
|
||||
@ -192,14 +193,13 @@
|
||||
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";
|
||||
};
|
||||
|
||||
@ -208,9 +208,8 @@
|
||||
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 {
|
||||
|
@ -9,22 +9,19 @@
|
||||
|
||||
&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)>;
|
||||
};
|
||||
|
@ -118,7 +118,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_28: macaddr@28 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x28 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -157,9 +159,8 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_28>;
|
||||
nvmem-cells = <&macaddr_factory_28 3>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
mac-address-increment = <3>;
|
||||
};
|
||||
|
||||
&switch0 {
|
||||
@ -172,7 +173,7 @@
|
||||
wan: port@1 {
|
||||
status = "okay";
|
||||
label = "wan";
|
||||
nvmem-cells = <&macaddr_factory_28>;
|
||||
nvmem-cells = <&macaddr_factory_28 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
|
@ -149,7 +149,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_4: macaddr@4 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x4 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -182,9 +184,8 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_4>;
|
||||
nvmem-cells = <&macaddr_factory_4 (-1)>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
mac-address-increment = <(-1)>;
|
||||
};
|
||||
|
||||
&gmac1 {
|
||||
@ -192,9 +193,8 @@
|
||||
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 {
|
||||
|
@ -97,7 +97,9 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_factory_e000: macaddr@e000 {
|
||||
compatible = "mac-base";
|
||||
reg = <0xe000 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -112,7 +114,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_e000>;
|
||||
nvmem-cells = <&macaddr_factory_e000 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -121,9 +123,8 @@
|
||||
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 {
|
||||
|
@ -53,9 +53,8 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_bdinfo_de00>;
|
||||
nvmem-cells = <&macaddr_bdinfo_de00 1>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
mac-address-increment = <1>;
|
||||
};
|
||||
|
||||
&gmac1 {
|
||||
@ -63,7 +62,7 @@
|
||||
label = "lan";
|
||||
phy-handle = <ðphy4>;
|
||||
|
||||
nvmem-cells = <&macaddr_bdinfo_de00>;
|
||||
nvmem-cells = <&macaddr_bdinfo_de00 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -154,7 +153,9 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_bdinfo_de00: macaddr@de00 {
|
||||
compatible = "mac-base";
|
||||
reg = <0xde00 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -133,7 +133,9 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_bdinfo_de00: macaddr@de00 {
|
||||
compatible = "mac-base";
|
||||
reg = <0xde00 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -149,7 +151,7 @@
|
||||
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>;
|
||||
|
||||
@ -163,9 +165,8 @@
|
||||
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 {
|
||||
@ -176,7 +177,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_bdinfo_de00>;
|
||||
nvmem-cells = <&macaddr_bdinfo_de00 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -185,9 +186,8 @@
|
||||
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 {
|
||||
|
@ -78,7 +78,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_bdinfo_de00>;
|
||||
nvmem-cells = <&macaddr_bdinfo_de00 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -180,7 +180,9 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_bdinfo_de00: macaddr@de00 {
|
||||
compatible = "mac-base";
|
||||
reg = <0xde00 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -200,9 +202,8 @@
|
||||
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 {
|
||||
|
@ -37,24 +37,25 @@
|
||||
#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";
|
||||
};
|
||||
|
@ -37,24 +37,25 @@
|
||||
#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";
|
||||
};
|
||||
|
@ -15,15 +15,3 @@
|
||||
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>;
|
||||
};
|
||||
|
@ -22,15 +22,3 @@
|
||||
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>;
|
||||
};
|
||||
|
@ -22,15 +22,3 @@
|
||||
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>;
|
||||
};
|
||||
|
@ -129,7 +129,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_e000: macaddr@e000 {
|
||||
compatible = "mac-base";
|
||||
reg = <0xe000 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
|
||||
macaddr_factory_e006: macaddr@e006 {
|
||||
@ -186,9 +188,8 @@
|
||||
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>;
|
||||
};
|
||||
};
|
||||
|
||||
@ -197,14 +198,13 @@
|
||||
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";
|
||||
};
|
||||
|
||||
|
@ -97,15 +97,14 @@
|
||||
|
||||
/* 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 {
|
||||
@ -113,9 +112,8 @@
|
||||
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 {
|
||||
|
@ -94,7 +94,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_e000: macaddr@e000 {
|
||||
compatible = "mac-base";
|
||||
reg = <0xe000 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
|
||||
macaddr_factory_e006: macaddr@e006 {
|
||||
@ -149,7 +151,7 @@
|
||||
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>;
|
||||
|
||||
@ -163,7 +165,7 @@
|
||||
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>;
|
||||
|
||||
@ -174,7 +176,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_e000>;
|
||||
nvmem-cells = <&macaddr_factory_e000 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
|
@ -44,7 +44,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_4: macaddr@4 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x4 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
|
||||
macaddr_factory_e000: macaddr@e000 {
|
||||
|
@ -128,7 +128,9 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_factory_e000: macaddr@e000 {
|
||||
compatible = "mac-base";
|
||||
reg = <0xe000 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -176,9 +178,8 @@
|
||||
status = "okay";
|
||||
label = "wan";
|
||||
|
||||
nvmem-cells = <&macaddr_factory_e000>;
|
||||
nvmem-cells = <&macaddr_factory_e000 1>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
mac-address-increment = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -188,7 +189,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_e000>;
|
||||
nvmem-cells = <&macaddr_factory_e000 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
|
@ -67,7 +67,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_e000>;
|
||||
nvmem-cells = <&macaddr_factory_e000 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -150,7 +150,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_e000: macaddr@e000 {
|
||||
compatible = "mac-base";
|
||||
reg = <0xe000 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
|
||||
macaddr_factory_e006: macaddr@e006 {
|
||||
@ -195,9 +197,8 @@
|
||||
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>;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -119,7 +119,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_21000: macaddr@21000 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x21000 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -180,9 +182,8 @@
|
||||
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)>;
|
||||
};
|
||||
};
|
||||
|
||||
@ -192,14 +193,13 @@
|
||||
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";
|
||||
};
|
||||
|
||||
@ -208,9 +208,8 @@
|
||||
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 {
|
||||
|
@ -88,7 +88,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_e000: macaddr@e000 {
|
||||
compatible = "mac-base";
|
||||
reg = <0xe000 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -129,7 +131,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_e000>;
|
||||
nvmem-cells = <&macaddr_factory_e000 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -158,9 +160,8 @@
|
||||
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>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -86,7 +86,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_e000: macaddr@e000 {
|
||||
compatible = "mac-base";
|
||||
reg = <0xe000 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -127,7 +129,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_e000>;
|
||||
nvmem-cells = <&macaddr_factory_e000 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -136,9 +138,8 @@
|
||||
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 {
|
||||
|
@ -102,7 +102,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_4000: macaddr@4000 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x4000 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -130,9 +132,8 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_4000>;
|
||||
nvmem-cells = <&macaddr_factory_4000 1>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
mac-address-increment = <1>;
|
||||
};
|
||||
|
||||
&gmac1 {
|
||||
@ -140,7 +141,7 @@
|
||||
label = "wan";
|
||||
phy-handle = <ðphy4>;
|
||||
|
||||
nvmem-cells = <&macaddr_factory_4000>;
|
||||
nvmem-cells = <&macaddr_factory_4000 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
|
@ -63,7 +63,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_8004>;
|
||||
nvmem-cells = <&macaddr_factory_8004 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -72,9 +72,8 @@
|
||||
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 {
|
||||
@ -117,7 +116,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_8004: macaddr@8004 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x8004 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -93,7 +93,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_4: macaddr@4 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x4 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
|
||||
macaddr_factory_8004: macaddr@8004 {
|
||||
@ -164,7 +166,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_4>;
|
||||
nvmem-cells = <&macaddr_factory_4 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -173,9 +175,8 @@
|
||||
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 {
|
||||
|
@ -103,7 +103,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_4: macaddr@4 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x4 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -165,9 +167,8 @@
|
||||
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 {
|
||||
|
@ -103,7 +103,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_4: macaddr@4 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x4 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -142,7 +144,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_4>;
|
||||
nvmem-cells = <&macaddr_factory_4 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -151,9 +153,8 @@
|
||||
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 {
|
||||
|
@ -79,7 +79,9 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_uboot_1fc40: macaddr@1fc40 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x1fc40 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -116,9 +118,8 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_uboot_1fc40>;
|
||||
nvmem-cells = <&macaddr_uboot_1fc40 2>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
mac-address-increment = <(2)>;
|
||||
};
|
||||
|
||||
&gmac1 {
|
||||
@ -126,7 +127,7 @@
|
||||
label = "wan";
|
||||
phy-handle = <ðphy0>;
|
||||
|
||||
nvmem-cells = <&macaddr_uboot_1fc40>;
|
||||
nvmem-cells = <&macaddr_uboot_1fc40 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
|
@ -90,7 +90,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_4: macaddr@4 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x4 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
|
||||
macaddr_factory_8004: macaddr@8004 {
|
||||
@ -121,9 +123,8 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_4>;
|
||||
nvmem-cells = <&macaddr_factory_4 3>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
mac-address-increment = <(3)>;
|
||||
};
|
||||
|
||||
&gmac1 {
|
||||
@ -131,9 +132,8 @@
|
||||
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 {
|
||||
|
@ -83,7 +83,9 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_factory_4: macaddr@4 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x4 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -117,9 +119,8 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_4>;
|
||||
nvmem-cells = <&macaddr_factory_4 3>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
mac-address-increment = <3>;
|
||||
};
|
||||
|
||||
&gmac1 {
|
||||
@ -127,9 +128,8 @@
|
||||
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 {
|
||||
|
@ -104,7 +104,9 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_factory_5: macaddr@5 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x5 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -123,7 +125,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_5>;
|
||||
nvmem-cells = <&macaddr_factory_5 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -132,9 +134,8 @@
|
||||
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 {
|
||||
|
@ -82,7 +82,9 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_config_8: macaddr@8 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x8 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -111,14 +113,14 @@
|
||||
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";
|
||||
};
|
||||
|
||||
@ -127,9 +129,8 @@
|
||||
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 {
|
||||
|
@ -75,7 +75,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_e000: macaddr@e000 {
|
||||
compatible = "mac-base";
|
||||
reg = <0xe000 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -97,7 +99,7 @@
|
||||
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";
|
||||
};
|
||||
};
|
||||
@ -106,13 +108,13 @@
|
||||
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";
|
||||
};
|
||||
|
||||
@ -122,9 +124,8 @@
|
||||
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 {
|
||||
@ -159,9 +160,8 @@
|
||||
status = "okay";
|
||||
label = "wan1";
|
||||
|
||||
nvmem-cells = <&macaddr_factory_e000>;
|
||||
nvmem-cells = <&macaddr_factory_e000 1>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
mac-address-increment = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -96,7 +96,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_4: macaddr@4 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x4 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -121,7 +123,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_4>;
|
||||
nvmem-cells = <&macaddr_factory_4 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -150,9 +152,8 @@
|
||||
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>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -162,7 +162,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_4>;
|
||||
nvmem-cells = <&macaddr_factory_4 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -171,9 +171,8 @@
|
||||
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 {
|
||||
@ -350,7 +349,9 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_factory_4: macaddr@4 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x4 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -96,7 +96,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_4>;
|
||||
nvmem-cells = <&macaddr_factory_4 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -105,9 +105,8 @@
|
||||
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 {
|
||||
@ -277,7 +276,9 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_factory_4: macaddr@4 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x4 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -109,7 +109,9 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_bdinfo_9: macaddr@9 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x9 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -137,7 +139,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_bdinfo_9>;
|
||||
nvmem-cells = <&macaddr_bdinfo_9 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -146,9 +148,8 @@
|
||||
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 {
|
||||
|
@ -86,7 +86,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_4: macaddr@4 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x4 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -119,16 +121,14 @@
|
||||
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 {
|
||||
@ -136,9 +136,8 @@
|
||||
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 {
|
||||
|
@ -9,22 +9,19 @@
|
||||
|
||||
&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)>;
|
||||
};
|
||||
|
@ -117,7 +117,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_21000: macaddr@21000 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x21000 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -100,7 +100,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_e000>;
|
||||
nvmem-cells = <&macaddr_factory_e000 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -142,7 +142,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_e000: macaddr@e000 {
|
||||
compatible = "mac-base";
|
||||
reg = <0xe000 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -192,9 +194,8 @@
|
||||
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>;
|
||||
};
|
||||
};
|
||||
@ -203,9 +204,8 @@
|
||||
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>;
|
||||
};
|
||||
};
|
||||
|
@ -204,7 +204,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_e000>;
|
||||
nvmem-cells = <&macaddr_factory_e000 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -246,7 +246,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_e000: macaddr@e000 {
|
||||
compatible = "mac-base";
|
||||
reg = <0xe000 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -296,9 +298,8 @@
|
||||
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>;
|
||||
};
|
||||
};
|
||||
@ -307,9 +308,8 @@
|
||||
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>;
|
||||
};
|
||||
};
|
||||
|
@ -158,7 +158,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_1000>;
|
||||
nvmem-cells = <&macaddr_factory_1000 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -195,7 +195,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_1000: macaddr@1000 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x1000 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -231,19 +233,7 @@
|
||||
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";
|
||||
};
|
||||
};
|
||||
@ -281,9 +271,8 @@
|
||||
status = "okay";
|
||||
label = "wan";
|
||||
|
||||
nvmem-cells = <&macaddr_factory_1000>;
|
||||
nvmem-cells = <&macaddr_factory_1000 1>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
mac-address-increment = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -85,7 +85,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_e006: macaddr@e006 {
|
||||
compatible = "mac-base";
|
||||
reg = <0xe006 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -122,7 +124,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_e006>;
|
||||
nvmem-cells = <&macaddr_factory_e006 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -131,9 +133,8 @@
|
||||
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 {
|
||||
|
@ -124,7 +124,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_e006: macaddr@e006 {
|
||||
compatible = "mac-base";
|
||||
reg = <0xe006 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -143,7 +145,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_e006>;
|
||||
nvmem-cells = <&macaddr_factory_e006 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -172,9 +174,8 @@
|
||||
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>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -112,7 +112,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_4>;
|
||||
nvmem-cells = <&macaddr_factory_4 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -121,9 +121,8 @@
|
||||
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 {
|
||||
@ -209,7 +208,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_4: macaddr@4 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x4 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -81,7 +81,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_e000: macaddr@e000 {
|
||||
compatible = "mac-base";
|
||||
reg = <0xe000 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -120,7 +122,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_e000>;
|
||||
nvmem-cells = <&macaddr_factory_e000 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -129,9 +131,8 @@
|
||||
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 {
|
||||
|
@ -115,7 +115,9 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_config_8: macaddr@8 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x8 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -144,14 +146,14 @@
|
||||
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";
|
||||
};
|
||||
|
||||
@ -160,9 +162,8 @@
|
||||
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 {
|
||||
|
@ -126,7 +126,9 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_config_8: macaddr@8 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x8 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -168,7 +170,7 @@
|
||||
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>;
|
||||
};
|
||||
@ -178,15 +180,14 @@
|
||||
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";
|
||||
};
|
||||
|
||||
@ -195,9 +196,8 @@
|
||||
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 {
|
||||
|
@ -119,7 +119,9 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_config_8: macaddr@8 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x8 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -162,9 +164,8 @@
|
||||
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>;
|
||||
};
|
||||
};
|
||||
@ -173,9 +174,8 @@
|
||||
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>;
|
||||
};
|
||||
};
|
||||
@ -185,7 +185,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_config_8>;
|
||||
nvmem-cells = <&macaddr_config_8 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
|
@ -92,7 +92,9 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_info_8: macaddr@8 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x8 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -160,7 +162,7 @@
|
||||
&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";
|
||||
};
|
||||
};
|
||||
@ -169,14 +171,13 @@
|
||||
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";
|
||||
};
|
||||
|
||||
@ -185,7 +186,7 @@
|
||||
label = "lan0";
|
||||
phy-handle = <ðphy0>;
|
||||
|
||||
nvmem-cells = <&macaddr_info_8>;
|
||||
nvmem-cells = <&macaddr_info_8 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
|
@ -119,7 +119,9 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_romfile_f100: romfile@f100 {
|
||||
compatible = "mac-base";
|
||||
reg = <0xf100 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -162,7 +164,7 @@
|
||||
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>;
|
||||
};
|
||||
@ -173,14 +175,13 @@
|
||||
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";
|
||||
};
|
||||
|
||||
@ -189,7 +190,7 @@
|
||||
label = "wan";
|
||||
phy-handle = <ðphy4>;
|
||||
|
||||
nvmem-cells = <&macaddr_romfile_f100>;
|
||||
nvmem-cells = <&macaddr_romfile_f100 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
|
@ -118,7 +118,9 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_config_10008: macaddr@10008 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x10008 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -153,9 +155,8 @@
|
||||
&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>;
|
||||
};
|
||||
};
|
||||
|
||||
@ -163,9 +164,8 @@
|
||||
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>;
|
||||
};
|
||||
};
|
||||
|
||||
@ -174,7 +174,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_config_10008>;
|
||||
nvmem-cells = <&macaddr_config_10008 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
|
@ -127,7 +127,9 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_config_10008: macaddr@10008 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x10008 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -170,9 +172,8 @@
|
||||
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>;
|
||||
};
|
||||
};
|
||||
@ -181,9 +182,8 @@
|
||||
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>;
|
||||
};
|
||||
};
|
||||
@ -193,7 +193,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_config_10008>;
|
||||
nvmem-cells = <&macaddr_config_10008 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
|
@ -124,7 +124,9 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_config_10008: macaddr@10008 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x10008 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -171,9 +173,8 @@
|
||||
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>;
|
||||
};
|
||||
};
|
||||
@ -182,9 +183,8 @@
|
||||
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>;
|
||||
};
|
||||
};
|
||||
@ -194,7 +194,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_config_10008>;
|
||||
nvmem-cells = <&macaddr_config_10008 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
|
@ -122,7 +122,9 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_config_2008: macaddr@2008 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x2008 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -165,7 +167,7 @@
|
||||
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>;
|
||||
};
|
||||
@ -175,9 +177,8 @@
|
||||
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>;
|
||||
};
|
||||
};
|
||||
@ -187,7 +188,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_config_2008>;
|
||||
nvmem-cells = <&macaddr_config_2008 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
|
@ -67,7 +67,9 @@
|
||||
};
|
||||
|
||||
macaddr_eeprom_6: macaddr@6 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x6 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -112,9 +114,6 @@
|
||||
|
||||
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
|
||||
@ -127,7 +126,8 @@
|
||||
* 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>;
|
||||
|
||||
|
@ -74,7 +74,9 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_eeprom_0: macaddr@0 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x0 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -106,7 +108,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_eeprom_0>;
|
||||
nvmem-cells = <&macaddr_eeprom_0 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -129,9 +131,8 @@
|
||||
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>;
|
||||
};
|
||||
};
|
||||
|
||||
@ -141,9 +142,8 @@
|
||||
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>;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -76,6 +76,13 @@
|
||||
*/
|
||||
};
|
||||
|
||||
&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";
|
||||
};
|
||||
};
|
||||
|
@ -77,7 +77,9 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_factory_4: macaddr@4 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x4 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -96,7 +98,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_4>;
|
||||
nvmem-cells = <&macaddr_factory_4 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -105,9 +107,8 @@
|
||||
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 {
|
||||
|
@ -131,7 +131,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_e000: macaddr@e000 {
|
||||
compatible = "mac-base";
|
||||
reg = <0xe000 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -177,7 +179,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_e000>;
|
||||
nvmem-cells = <&macaddr_factory_e000 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -206,9 +208,8 @@
|
||||
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>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -122,7 +122,9 @@
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_factory_e000: macaddr@e000 {
|
||||
compatible = "mac-base";
|
||||
reg = <0xe000 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -150,7 +152,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_e000>;
|
||||
nvmem-cells = <&macaddr_factory_e000 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -159,9 +161,8 @@
|
||||
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 {
|
||||
|
@ -90,7 +90,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_e000: macaddr@e000 {
|
||||
compatible = "mac-base";
|
||||
reg = <0xe000 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -134,7 +136,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_e000>;
|
||||
nvmem-cells = <&macaddr_factory_e000 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -163,9 +165,8 @@
|
||||
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>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -90,7 +90,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_e000: macaddr@e000 {
|
||||
compatible = "mac-base";
|
||||
reg = <0xe000 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -135,7 +137,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_e000>;
|
||||
nvmem-cells = <&macaddr_factory_e000 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -164,9 +166,8 @@
|
||||
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>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -139,7 +139,9 @@
|
||||
};
|
||||
|
||||
macaddr_factory_fe6e: macaddr@fe6e {
|
||||
compatible = "mac-base";
|
||||
reg = <0xfe6e 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -175,7 +177,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_fe6e>;
|
||||
nvmem-cells = <&macaddr_factory_fe6e 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
@ -211,9 +213,8 @@
|
||||
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)>;
|
||||
};
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user