1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-18 05:03:56 +02:00

ramips: convert mtd-mac-address to nvmem implementation

Define nvmem-cells and convert mtd-mac-address to nvmem implementation.
The conversion is done with an automated script.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
This commit is contained in:
Ansuel Smith 2021-04-02 23:50:02 +02:00 committed by Petr Štetiar
parent abc17bf306
commit 06bb4a5018
319 changed files with 4213 additions and 434 deletions

View File

@ -103,7 +103,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
}; };
@ -111,3 +112,13 @@
&wmac { &wmac {
ralink,mtd-eeprom = <&factory 0x0>; ralink,mtd-eeprom = <&factory 0x0>;
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -55,7 +55,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>; pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x28>; nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
}; };
@ -148,3 +149,13 @@
&wmac { &wmac {
ralink,mtd-eeprom = <&factory 0x0>; ralink,mtd-eeprom = <&factory 0x0>;
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};

View File

@ -126,7 +126,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x28>; nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
}; };
&gpio1 { &gpio1 {
@ -209,3 +210,13 @@
&wmac { &wmac {
ralink,mtd-eeprom = <&factory 0x0>; ralink,mtd-eeprom = <&factory 0x0>;
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};

View File

@ -103,7 +103,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x28>; nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
}; };
&gpio1 { &gpio1 {
@ -178,3 +179,13 @@
&wmac { &wmac {
status = "disabled"; status = "disabled";
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};

View File

@ -122,7 +122,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x28>; nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll"; mediatek,portmap = "wllll";
}; };
@ -134,3 +135,13 @@
&pcie { &pcie {
status = "okay"; status = "okay";
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};

View File

@ -117,7 +117,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll"; mediatek,portmap = "wllll";
}; };
@ -144,3 +145,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -139,7 +139,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &mdio_pins>; pinctrl-0 = <&rgmii1_pins &mdio_pins>;
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
port@5 { port@5 {
status = "okay"; status = "okay";
@ -173,3 +174,13 @@
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -139,7 +139,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>; pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
}; };
@ -149,3 +150,13 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pa_pins>; pinctrl-0 = <&pa_pins>;
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -139,7 +139,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>; pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
}; };
@ -159,3 +160,13 @@
ralink,mtd-eeprom = <&factory 0x8000>; ralink,mtd-eeprom = <&factory 0x8000>;
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -127,7 +127,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x28>; nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
}; };
@ -141,7 +142,8 @@
pinctrl-0 = <&pa_pins>; pinctrl-0 = <&pa_pins>;
ralink,mtd-eeprom = <&factory 0x0>; ralink,mtd-eeprom = <&factory 0x0>;
mtd-mac-address = <&factory 0x28>; nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
}; };
&pcie { &pcie {
@ -153,7 +155,18 @@
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
mtd-mac-address = <&factory 0x28>; nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
mac-address-increment = <2>; mac-address-increment = <2>;
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};

View File

@ -168,7 +168,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
}; };
&wmac { &wmac {
@ -176,3 +177,13 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pa_pins>; pinctrl-0 = <&pa_pins>;
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -114,7 +114,8 @@
&pcie0 { &pcie0 {
mt76x0e@0,0 { mt76x0e@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mtd-mac-address = <&config 0xe490>; nvmem-cells = <&macaddr_config_e490>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(2)>; mac-address-increment = <(2)>;
mediatek,mtd-eeprom = <&config 0xe05d>; mediatek,mtd-eeprom = <&config 0xe05d>;
}; };
@ -126,3 +127,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&config {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_config_e490: macaddr@e490 {
reg = <0xe490 0x6>;
};
};

View File

@ -142,7 +142,8 @@
&pcie0 { &pcie0 {
wifi@0,0 { wifi@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mtd-mac-address = <&config 0xe496>; nvmem-cells = <&macaddr_config_e496>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(2)>; mac-address-increment = <(2)>;
mediatek,mtd-eeprom = <&config 0xe083>; mediatek,mtd-eeprom = <&config 0xe083>;
@ -188,3 +189,13 @@
mediatek,port4-gmac; mediatek,port4-gmac;
mediatek,ephy-base = /bits/ 8 <8>; mediatek,ephy-base = /bits/ 8 <8>;
}; };
&config {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_config_e496: macaddr@e496 {
reg = <0xe496 0x6>;
};
};

View File

@ -140,7 +140,8 @@
wifi@0,0 { wifi@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
mtd-mac-address = <&config 0xe4a8>; nvmem-cells = <&macaddr_config_e4a8>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(2)>; mac-address-increment = <(2)>;
led { led {
@ -176,3 +177,13 @@
mediatek,port4-gmac; mediatek,port4-gmac;
mediatek,ephy-base = /bits/ 8 <2>; mediatek,ephy-base = /bits/ 8 <2>;
}; };
&config {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_config_e4a8: macaddr@e4a8 {
reg = <0xe4a8 0x6>;
};
};

View File

@ -175,7 +175,8 @@
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
mediatek,mtd-eeprom = <&config 0xe08e>; mediatek,mtd-eeprom = <&config 0xe08e>;
mtd-mac-address = <&config 0xe50e>; nvmem-cells = <&macaddr_config_e50e>;
nvmem-cell-names = "mac-address";
mac-address-increment = <2>; mac-address-increment = <2>;
}; };
}; };
@ -186,3 +187,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&config {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_config_e50e: macaddr@e50e {
reg = <0xe50e 0x6>;
};
};

View File

@ -132,7 +132,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>; pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll"; mediatek,portmap = "wllll";
@ -204,3 +205,13 @@
&ohci { &ohci {
status = "okay"; status = "okay";
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -124,7 +124,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>; pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll"; mediatek,portmap = "wllll";
@ -196,3 +197,13 @@
&ohci { &ohci {
status = "okay"; status = "okay";
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -153,7 +153,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &mdio_pins &phy_reset_pins>; pinctrl-0 = <&rgmii1_pins &mdio_pins &phy_reset_pins>;
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
phy-reset-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; phy-reset-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
phy-reset-duration = <30>; phy-reset-duration = <30>;
@ -218,3 +219,13 @@
mediatek,2ghz = <0>; mediatek,2ghz = <0>;
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -134,7 +134,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &mdio_pins>; pinctrl-0 = <&rgmii1_pins &mdio_pins>;
mtd-mac-address = <&iNIC_rf 0x4>; nvmem-cells = <&macaddr_iNIC_rf_4>;
nvmem-cell-names = "mac-address";
port@5 { port@5 {
status = "okay"; status = "okay";
@ -193,3 +194,13 @@
&ohci { &ohci {
status = "okay"; status = "okay";
}; };
&iNIC_rf {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_iNIC_rf_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -117,7 +117,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&rgmii2_pins &mdio_pins>; pinctrl-0 = <&rgmii2_pins &mdio_pins>;
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
port@4 { port@4 {
status = "okay"; status = "okay";
@ -165,3 +166,13 @@
&ohci { &ohci {
status = "okay"; status = "okay";
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -127,7 +127,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x4000>; nvmem-cells = <&macaddr_factory_4000>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll"; mediatek,portmap = "wllll";
}; };
@ -142,3 +143,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4000: macaddr@4000 {
reg = <0x4000 0x6>;
};
};

View File

@ -118,7 +118,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x4000>; nvmem-cells = <&macaddr_factory_4000>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll"; mediatek,portmap = "wllll";
}; };
@ -133,3 +134,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4000: macaddr@4000 {
reg = <0x4000 0x6>;
};
};

View File

@ -122,7 +122,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x4000>; nvmem-cells = <&macaddr_factory_4000>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll"; mediatek,portmap = "wllll";
}; };
@ -148,3 +149,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4000: macaddr@4000 {
reg = <0x4000 0x6>;
};
};

View File

@ -120,7 +120,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>; pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
port@4 { port@4 {
status = "okay"; status = "okay";
@ -182,3 +183,13 @@
&uart { &uart {
status = "okay"; status = "okay";
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -72,7 +72,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &mdio_pins>; pinctrl-0 = <&rgmii1_pins &mdio_pins>;
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
@ -109,3 +110,13 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pa_pins>; pinctrl-0 = <&pa_pins>;
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -85,7 +85,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll"; mediatek,portmap = "wllll";
}; };
@ -104,3 +105,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -136,7 +136,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x28>; nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
}; };
&wmac { &wmac {
@ -153,3 +154,13 @@
&pcie { &pcie {
status = "okay"; status = "okay";
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};

View File

@ -139,7 +139,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &mdio_pins>; pinctrl-0 = <&rgmii1_pins &mdio_pins>;
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
port@5 { port@5 {
status = "okay"; status = "okay";
@ -210,3 +211,13 @@
&wmac { &wmac {
ralink,mtd-eeprom = <&factory 0x0>; ralink,mtd-eeprom = <&factory 0x0>;
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -147,7 +147,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins>; pinctrl-0 = <&rgmii1_pins>;
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
port@5 { port@5 {
status = "okay"; status = "okay";
@ -188,3 +189,13 @@
&wmac { &wmac {
ralink,mtd-eeprom = <&factory 0x0>; ralink,mtd-eeprom = <&factory 0x0>;
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -49,7 +49,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&uboot 0x1fc20>; nvmem-cells = <&macaddr_uboot_1fc20>;
nvmem-cell-names = "mac-address";
}; };
&ehci { &ehci {
@ -84,3 +85,13 @@
ralink,mtd-eeprom = <&uboot 0x1f400>; ralink,mtd-eeprom = <&uboot 0x1f400>;
}; };
&uboot {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_uboot_1fc20: macaddr@1fc20 {
reg = <0x1fc20 0x6>;
};
};

View File

@ -96,7 +96,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
}; };
&wmac { &wmac {
@ -109,3 +110,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -140,7 +140,8 @@
&pcie0 { &pcie0 {
mt76x0e@0,0 { mt76x0e@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mtd-mac-address = <&config 0xe07e>; nvmem-cells = <&macaddr_config_e07e>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(2)>; mac-address-increment = <(2)>;
mediatek,mtd-eeprom = <&config 0xe08a>; mediatek,mtd-eeprom = <&config 0xe08a>;
}; };
@ -152,3 +153,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&config {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_config_e07e: macaddr@e07e {
reg = <0xe07e 0x6>;
};
};

View File

@ -90,7 +90,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&rgmii2_pins &mdio_pins>; pinctrl-0 = <&rgmii2_pins &mdio_pins>;
mtd-mac-address = <&factory 0x28>; nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll"; mediatek,portmap = "wllll";
@ -168,3 +169,13 @@
&ohci { &ohci {
status = "okay"; status = "okay";
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};

View File

@ -53,7 +53,18 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>; pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x28>; nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};

View File

@ -79,7 +79,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>; pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
mtd-mac-address = <&factory 0x28>; nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll"; mediatek,portmap = "wllll";
@ -114,3 +115,13 @@
mediatek,port4-gmac; mediatek,port4-gmac;
mediatek,ephy-base = /bits/ 8 <8>; mediatek,ephy-base = /bits/ 8 <8>;
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};

View File

@ -101,7 +101,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>; pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
mtd-mac-address = <&factory 0x28>; nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
port@5 { port@5 {
status = "okay"; status = "okay";
@ -151,3 +152,13 @@
&wmac { &wmac {
ralink,mtd-eeprom = <&factory 0x0>; ralink,mtd-eeprom = <&factory 0x0>;
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};

View File

@ -80,7 +80,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>; pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
}; };
@ -95,3 +96,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -137,7 +137,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x28>; nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
}; };
&wmac { &wmac {
@ -150,3 +151,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};

View File

@ -99,7 +99,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &mdio_pins>; pinctrl-0 = <&rgmii1_pins &mdio_pins>;
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
port@5 { port@5 {
status = "okay"; status = "okay";
@ -162,3 +163,13 @@
&wmac { &wmac {
ralink,mtd-eeprom = <&factory 0x0>; ralink,mtd-eeprom = <&factory 0x0>;
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -98,7 +98,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>; pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x28>; nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
}; };
@ -118,3 +119,13 @@
&ohci { &ohci {
status = "okay"; status = "okay";
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};

View File

@ -23,7 +23,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&rgmii2_pins &mdio_pins>; pinctrl-0 = <&rgmii2_pins &mdio_pins>;
mtd-mac-address = <&factory 0x28>; nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
@ -47,3 +48,13 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pa_pins>; pinctrl-0 = <&pa_pins>;
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};

View File

@ -99,7 +99,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>; pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
}; };
@ -119,3 +120,13 @@
&wmac { &wmac {
ralink,mtd-eeprom = <&factory 0x0>; ralink,mtd-eeprom = <&factory 0x0>;
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -14,7 +14,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x28>; nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
}; };
@ -23,3 +24,13 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pa_pins>; pinctrl-0 = <&pa_pins>;
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};

View File

@ -14,5 +14,16 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x28>; nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
};
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
}; };

View File

@ -117,7 +117,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>; pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
}; };
@ -137,3 +138,13 @@
&wmac { &wmac {
ralink,mtd-eeprom = <&factory 0x0>; ralink,mtd-eeprom = <&factory 0x0>;
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -89,7 +89,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>; pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
}; };
@ -97,3 +98,13 @@
&wmac { &wmac {
ralink,mtd-eeprom = <&factory 0x0>; ralink,mtd-eeprom = <&factory 0x0>;
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -109,7 +109,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>; pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
}; };
@ -128,3 +129,13 @@
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -129,7 +129,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>; pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
}; };
@ -137,3 +138,13 @@
&wmac { &wmac {
ralink,mtd-eeprom = <&factory 0x0>; ralink,mtd-eeprom = <&factory 0x0>;
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -134,7 +134,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>; pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
}; };
@ -153,3 +154,13 @@
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -140,7 +140,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
}; };
@ -173,3 +174,13 @@
&pcie { &pcie {
status = "okay"; status = "okay";
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -130,7 +130,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>; pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
mtd-mac-address = <&rom 0xf100>; nvmem-cells = <&macaddr_rom_f100>;
nvmem-cell-names = "mac-address";
port@5 { port@5 {
status = "okay"; status = "okay";
@ -164,7 +165,8 @@
&wmac { &wmac {
ralink,mtd-eeprom = <&radio 0x0>; ralink,mtd-eeprom = <&radio 0x0>;
mtd-mac-address = <&rom 0xf100>; nvmem-cells = <&macaddr_rom_f100>;
nvmem-cell-names = "mac-address";
}; };
&ehci { &ehci {
@ -183,7 +185,18 @@
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x8000>; mediatek,mtd-eeprom = <&radio 0x8000>;
mtd-mac-address = <&rom 0xf100>; nvmem-cells = <&macaddr_rom_f100>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>; mac-address-increment = <(-1)>;
}; };
}; };
&rom {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_rom_f100: macaddr@f100 {
reg = <0xf100 0x6>;
};
};

View File

@ -72,11 +72,23 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pa_pins>; pinctrl-0 = <&pa_pins>;
mtd-mac-address = <&rom 0xf100>; nvmem-cells = <&macaddr_rom_f100>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-2)>; mac-address-increment = <(-2)>;
}; };
&wifi { &wifi {
mtd-mac-address = <&rom 0xf100>; nvmem-cells = <&macaddr_rom_f100>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>; mac-address-increment = <(-1)>;
}; };
&rom {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_rom_f100: macaddr@f100 {
reg = <0xf100 0x6>;
};
};

View File

@ -53,10 +53,22 @@
}; };
&wmac { &wmac {
mtd-mac-address = <&rom 0xf100>; nvmem-cells = <&macaddr_rom_f100>;
nvmem-cell-names = "mac-address";
}; };
&wifi { &wifi {
mtd-mac-address = <&rom 0xf100>; nvmem-cells = <&macaddr_rom_f100>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>; mac-address-increment = <(-1)>;
}; };
&rom {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_rom_f100: macaddr@f100 {
reg = <0xf100 0x6>;
};
};

View File

@ -72,11 +72,23 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pa_pins>; pinctrl-0 = <&pa_pins>;
mtd-mac-address = <&rom 0xf100>; nvmem-cells = <&macaddr_rom_f100>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-2)>; mac-address-increment = <(-2)>;
}; };
&wifi { &wifi {
mtd-mac-address = <&rom 0xf100>; nvmem-cells = <&macaddr_rom_f100>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>; mac-address-increment = <(-1)>;
}; };
&rom {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_rom_f100: macaddr@f100 {
reg = <0xf100 0x6>;
};
};

View File

@ -167,7 +167,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&rom 0xf100>; nvmem-cells = <&macaddr_rom_f100>;
nvmem-cell-names = "mac-address";
}; };
&ehci { &ehci {
@ -192,3 +193,13 @@
mediatek,mtd-eeprom = <&radio 0x8000>; mediatek,mtd-eeprom = <&radio 0x8000>;
}; };
}; };
&rom {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_rom_f100: macaddr@f100 {
reg = <0xf100 0x6>;
};
};

View File

@ -92,7 +92,8 @@
&ethernet { &ethernet {
pinctrl-names = "default"; pinctrl-names = "default";
mtd-mac-address = <&rom 0xf100>; nvmem-cells = <&macaddr_rom_f100>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll"; mediatek,portmap = "wllll";
}; };
@ -120,3 +121,13 @@
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
}; };
&rom {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_rom_f100: macaddr@f100 {
reg = <0xf100 0x6>;
};
};

View File

@ -72,12 +72,14 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
}; };
&wmac { &wmac {
ralink,mtd-eeprom = <&radio 0x0>; ralink,mtd-eeprom = <&radio 0x0>;
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
}; };
&pcie { &pcie {
@ -88,8 +90,19 @@
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x8000>; mediatek,mtd-eeprom = <&radio 0x8000>;
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
mac-address-increment = <2>; mac-address-increment = <2>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
}; };
&uboot {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_uboot_1fc00: macaddr@1fc00 {
reg = <0x1fc00 0x6>;
};
};

View File

@ -97,7 +97,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&rgmii2_pins &mdio_pins>; pinctrl-0 = <&rgmii2_pins &mdio_pins>;
mtd-mac-address = <&factory 0x28>; nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
@ -135,3 +136,13 @@
ralink,mtd-eeprom = <&factory 0x0>; ralink,mtd-eeprom = <&factory 0x0>;
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};

View File

@ -163,7 +163,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>; pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
mtd-mac-address = <&factory 0x28>; nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
@ -209,3 +210,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};

View File

@ -121,7 +121,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>; pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x28>; nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
}; };
@ -150,3 +151,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};

View File

@ -105,7 +105,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>; pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x28>; nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
}; };
@ -125,3 +126,13 @@
&ohci { &ohci {
status = "okay"; status = "okay";
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};

View File

@ -136,7 +136,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>; pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
}; };
@ -144,3 +145,13 @@
&wmac { &wmac {
ralink,mtd-eeprom = <&factory 0x0>; ralink,mtd-eeprom = <&factory 0x0>;
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -98,7 +98,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>; pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
}; };
@ -127,3 +128,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -87,7 +87,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x28>; nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
}; };
&wmac { &wmac {
@ -100,3 +101,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};

View File

@ -91,7 +91,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll"; mediatek,portmap = "wllll";
}; };
@ -111,3 +112,13 @@
&ohci { &ohci {
status = "okay"; status = "okay";
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -137,7 +137,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&rgmii2_pins &mdio_pins>; pinctrl-0 = <&rgmii2_pins &mdio_pins>;
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
port@4 { port@4 {
status = "okay"; status = "okay";
@ -172,3 +173,13 @@
&ohci { &ohci {
status = "okay"; status = "okay";
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -106,7 +106,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
}; };
@ -121,3 +122,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -119,7 +119,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll"; mediatek,portmap = "wllll";
}; };
@ -134,3 +135,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -95,7 +95,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll"; mediatek,portmap = "wllll";
}; };
@ -110,3 +111,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -101,7 +101,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
}; };
&wmac { &wmac {
@ -114,3 +115,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -112,7 +112,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x2e>; nvmem-cells = <&macaddr_factory_2e>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
}; };
@ -127,3 +128,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_2e: macaddr@2e {
reg = <0x2e 0x6>;
};
};

View File

@ -96,7 +96,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
}; };
&wmac { &wmac {
@ -109,3 +110,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -107,7 +107,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll"; mediatek,portmap = "wllll";
}; };
@ -122,3 +123,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -107,7 +107,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll"; mediatek,portmap = "wllll";
}; };
@ -122,3 +123,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -66,7 +66,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
}; };
@ -81,3 +82,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -123,7 +123,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x28>; nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
}; };
&wmac { &wmac {
@ -136,3 +137,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};

View File

@ -75,7 +75,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
}; };
@ -90,3 +91,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -76,7 +76,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll"; mediatek,portmap = "wllll";
}; };
@ -91,3 +92,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -99,7 +99,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll"; mediatek,portmap = "wllll";
}; };
@ -114,3 +115,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -107,7 +107,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll"; mediatek,portmap = "wllll";
}; };
@ -122,3 +123,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -92,7 +92,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
}; };
@ -107,3 +108,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -106,7 +106,8 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>; pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
}; };
@ -121,3 +122,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -130,7 +130,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll"; mediatek,portmap = "wllll";
}; };
@ -146,3 +147,13 @@
&ohci { &ohci {
status = "okay"; status = "okay";
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -130,7 +130,8 @@
}; };
&ethernet { &ethernet {
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw"; mediatek,portmap = "llllw";
}; };
@ -146,3 +147,13 @@
&ohci { &ohci {
status = "okay"; status = "okay";
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -101,7 +101,8 @@
}; };
&gmac0 { &gmac0 {
mtd-mac-address = <&factory 0xe00c>; nvmem-cells = <&macaddr_factory_e00c>;
nvmem-cell-names = "mac-address";
}; };
&switch0 { &switch0 {
@ -129,7 +130,8 @@
port@4 { port@4 {
status = "okay"; status = "okay";
label = "wan"; label = "wan";
mtd-mac-address = <&factory 0xe00c>; nvmem-cells = <&macaddr_factory_e00c>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
}; };
}; };
@ -141,3 +143,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_e00c: macaddr@e00c {
reg = <0xe00c 0x6>;
};
};

View File

@ -106,7 +106,8 @@
}; };
&gmac0 { &gmac0 {
mtd-mac-address = <&factory 0xe000>; nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
}; };
&switch0 { &switch0 {
@ -134,7 +135,8 @@
port@4 { port@4 {
status = "okay"; status = "okay";
label = "wan"; label = "wan";
mtd-mac-address = <&factory 0xe000>; nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
}; };
}; };
@ -146,3 +148,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_e000: macaddr@e000 {
reg = <0xe000 0x6>;
};
};

View File

@ -148,7 +148,8 @@
}; };
&gmac0 { &gmac0 {
mtd-mac-address = <&factory 0xe000>; nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
}; };
&switch0 { &switch0 {
@ -176,7 +177,8 @@
port@4 { port@4 {
status = "okay"; status = "okay";
label = "wan"; label = "wan";
mtd-mac-address = <&factory 0xe006>; nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
}; };
}; };
}; };
@ -257,3 +259,17 @@
&uartlite3 { &uartlite3 {
status = "okay"; status = "okay";
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_e000: macaddr@e000 {
reg = <0xe000 0x6>;
};
macaddr_factory_e006: macaddr@e006 {
reg = <0xe006 0x6>;
};
};

View File

@ -17,8 +17,19 @@
port@4 { port@4 {
status = "okay"; status = "okay";
label = "wan"; label = "wan";
mtd-mac-address = <&factory 0xe000>; nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
}; };
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_e000: macaddr@e000 {
reg = <0xe000 0x6>;
};
};

View File

@ -12,7 +12,8 @@
port@0 { port@0 {
status = "okay"; status = "okay";
label = "wan"; label = "wan";
mtd-mac-address = <&factory 0xe000>; nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
}; };
@ -27,3 +28,13 @@
}; };
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_e000: macaddr@e000 {
reg = <0xe000 0x6>;
};
};

View File

@ -100,7 +100,8 @@
}; };
&gmac0 { &gmac0 {
mtd-mac-address = <&factory 0xe000>; nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
}; };
&state_default { &state_default {
@ -109,3 +110,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_e000: macaddr@e000 {
reg = <0xe000 0x6>;
};
};

View File

@ -130,7 +130,8 @@
}; };
&gmac0 { &gmac0 {
mtd-mac-address = <&factory 0xe000>; nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
}; };
&switch0 { &switch0 {
@ -138,7 +139,8 @@
port@0 { port@0 {
status = "okay"; status = "okay";
label = "wan"; label = "wan";
mtd-mac-address = <&factory 0xe006>; nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
}; };
port@1 { port@1 {
@ -169,3 +171,17 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_e000: macaddr@e000 {
reg = <0xe000 0x6>;
};
macaddr_factory_e006: macaddr@e006 {
reg = <0xe006 0x6>;
};
};

View File

@ -131,7 +131,8 @@
}; };
&gmac0 { &gmac0 {
mtd-mac-address = <&factory 0xe000>; nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
}; };
&switch0 { &switch0 {
@ -169,3 +170,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_e000: macaddr@e000 {
reg = <0xe000 0x6>;
};
};

View File

@ -140,7 +140,8 @@
}; };
&gmac0 { &gmac0 {
mtd-mac-address = <&factory 0x8004>; nvmem-cells = <&macaddr_factory_8004>;
nvmem-cell-names = "mac-address";
}; };
&switch0 { &switch0 {
@ -168,7 +169,8 @@
wan: port@4 { wan: port@4 {
status = "okay"; status = "okay";
label = "wan"; label = "wan";
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
}; };
}; };
}; };
@ -179,3 +181,17 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
macaddr_factory_8004: macaddr@8004 {
reg = <0x8004 0x6>;
};
};

View File

@ -164,7 +164,8 @@
}; };
&gmac0 { &gmac0 {
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>; mac-address-increment = <(-1)>;
}; };
@ -229,3 +230,13 @@
&xhci { &xhci {
status = "disabled"; status = "disabled";
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -173,7 +173,8 @@
}; };
&gmac0 { &gmac0 {
mtd-mac-address = <&factory 0x4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
}; };
&switch0 { &switch0 {
@ -208,3 +209,13 @@
&xhci { &xhci {
status = "disabled"; status = "disabled";
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -127,7 +127,8 @@
compatible = "pci14c3,7603"; compatible = "pci14c3,7603";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0000>; mediatek,mtd-eeprom = <&factory 0x0000>;
mtd-mac-address = <&bdinfo 0xde00>; nvmem-cells = <&macaddr_bdinfo_de00>;
nvmem-cell-names = "mac-address";
ieee80211-freq-limit = <2400000 2500000>; ieee80211-freq-limit = <2400000 2500000>;
led { led {
@ -141,7 +142,8 @@
compatible = "pci14c3,7662"; compatible = "pci14c3,7662";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>; mediatek,mtd-eeprom = <&factory 0x8000>;
mtd-mac-address = <&bdinfo 0xde00>; nvmem-cells = <&macaddr_bdinfo_de00>;
nvmem-cell-names = "mac-address";
mac-address-increment = <2>; mac-address-increment = <2>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
@ -153,7 +155,8 @@
}; };
&gmac0 { &gmac0 {
mtd-mac-address = <&bdinfo 0xde00>; nvmem-cells = <&macaddr_bdinfo_de00>;
nvmem-cell-names = "mac-address";
}; };
&switch0 { &switch0 {
@ -181,7 +184,8 @@
port@4 { port@4 {
status = "okay"; status = "okay";
label = "wan"; label = "wan";
mtd-mac-address = <&bdinfo 0xde00>; nvmem-cells = <&macaddr_bdinfo_de00>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
}; };
}; };
@ -193,3 +197,13 @@
function = "gpio"; function = "gpio";
}; };
}; };
&bdinfo {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_bdinfo_de00: macaddr@de00 {
reg = <0xde00 0x6>;
};
};

View File

@ -78,7 +78,8 @@
}; };
&gmac0 { &gmac0 {
mtd-mac-address = <&bdinfo 0xde00>; nvmem-cells = <&macaddr_bdinfo_de00>;
nvmem-cell-names = "mac-address";
}; };
&pcie { &pcie {
@ -194,8 +195,19 @@
status = "okay"; status = "okay";
label = "wan"; label = "wan";
mtd-mac-address = <&bdinfo 0xde00>; nvmem-cells = <&macaddr_bdinfo_de00>;
mtd-mac-address-increment = <1>; nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
}; };
}; };
}; };
&bdinfo {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_bdinfo_de00: macaddr@de00 {
reg = <0xde00 0x6>;
};
};

View File

@ -149,7 +149,8 @@
}; };
&gmac0 { &gmac0 {
mtd-mac-address = <&factory 0xe000>; nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
}; };
&switch0 { &switch0 {
@ -177,7 +178,8 @@
port@4 { port@4 {
status = "okay"; status = "okay";
label = "wan"; label = "wan";
mtd-mac-address = <&factory 0xe006>; nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
}; };
}; };
}; };
@ -188,3 +190,17 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_e000: macaddr@e000 {
reg = <0xe000 0x6>;
};
macaddr_factory_e006: macaddr@e006 {
reg = <0xe006 0x6>;
};
};

View File

@ -175,7 +175,8 @@
}; };
&gmac0 { &gmac0 {
mtd-mac-address = <&factory 0xe000>; nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
}; };
&switch0 { &switch0 {
@ -203,7 +204,8 @@
port@4 { port@4 {
status = "okay"; status = "okay";
label = "wan"; label = "wan";
mtd-mac-address = <&factory 0xe006>; nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
}; };
}; };
}; };
@ -214,3 +216,17 @@
function = "gpio"; function = "gpio";
}; };
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_e000: macaddr@e000 {
reg = <0xe000 0x6>;
};
macaddr_factory_e006: macaddr@e006 {
reg = <0xe006 0x6>;
};
};

View File

@ -17,11 +17,23 @@
}; };
&wifi0 { &wifi0 {
mtd-mac-address = <&factory 0xe000>; nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
}; };
&wifi1 { &wifi1 {
mtd-mac-address = <&factory 0xe000>; nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
mac-address-increment = <2>; mac-address-increment = <2>;
}; };
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_e000: macaddr@e000 {
reg = <0xe000 0x6>;
};
};

Some files were not shown because too many files have changed in this diff Show More