ath79: 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:47:31 +02:00 committed by Petr Štetiar
parent 2ca8e424b9
commit abc17bf306
177 changed files with 2637 additions and 364 deletions

View File

@ -103,7 +103,8 @@
ath9k0: wifi@0,11 { /* 2.4 GHz */ ath9k0: wifi@0,11 { /* 2.4 GHz */
compatible = "pci168c,0029"; compatible = "pci168c,0029";
mtd-mac-address = <&hwinfo 0x1c>; nvmem-cells = <&macaddr_hwinfo_1c>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
reg = <0x8800 0 0 0 0>; reg = <0x8800 0 0 0 0>;
#gpio-cells = <2>; #gpio-cells = <2>;
@ -112,7 +113,8 @@
ath9k1: wifi@0,12 { /* 5 GHz */ ath9k1: wifi@0,12 { /* 5 GHz */
compatible = "pci168c,0029"; compatible = "pci168c,0029";
mtd-mac-address = <&hwinfo 0x1c>; nvmem-cells = <&macaddr_hwinfo_1c>;
nvmem-cell-names = "mac-address";
mac-address-increment = <2>; mac-address-increment = <2>;
reg = <0x9000 0 0 0 0>; reg = <0x9000 0 0 0 0>;
#gpio-cells = <2>; #gpio-cells = <2>;
@ -132,7 +134,8 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&hwinfo 0x1c>; nvmem-cells = <&macaddr_hwinfo_1c>;
nvmem-cell-names = "mac-address";
pll-data = <0x00110000 0x00001099 0x00991099>; pll-data = <0x00110000 0x00001099 0x00991099>;
@ -179,3 +182,13 @@
}; };
}; };
}; };
&hwinfo {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_hwinfo_1c: macaddr@1c {
reg = <0x1c 0x6>;
};
};

View File

@ -247,7 +247,8 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x120c>; nvmem-cells = <&macaddr_art_120c>;
nvmem-cell-names = "mac-address";
fixed-link { fixed-link {
speed = <1000>; speed = <1000>;
@ -258,8 +259,23 @@
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x520c>; nvmem-cells = <&macaddr_art_520c>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
phy-handle = <&phy4>; phy-handle = <&phy4>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_120c: macaddr@120c {
reg = <0x120c 0x6>;
};
macaddr_art_520c: macaddr@520c {
reg = <0x520c 0x6>;
};
};

View File

@ -81,7 +81,8 @@
compatible = "pci168c,0029"; compatible = "pci168c,0029";
reg = <0x8800 0 0 0 0>; reg = <0x8800 0 0 0 0>;
qca,no-eeprom; qca,no-eeprom;
mtd-mac-address = <&config 0x66>; nvmem-cells = <&macaddr_config_66>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
@ -91,7 +92,8 @@
compatible = "pci168c,0029"; compatible = "pci168c,0029";
reg = <0x9000 0 0 0 0>; reg = <0x9000 0 0 0 0>;
qca,no-eeprom; qca,no-eeprom;
mtd-mac-address = <&config 0x66>; nvmem-cells = <&macaddr_config_66>;
nvmem-cell-names = "mac-address";
mac-address-increment = <2>; mac-address-increment = <2>;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
@ -114,7 +116,8 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&config 0x66>; nvmem-cells = <&macaddr_config_66>;
nvmem-cell-names = "mac-address";
pll-data = <0x00110000 0x00001099 0x00991099>; pll-data = <0x00110000 0x00001099 0x00991099>;
@ -167,3 +170,13 @@
}; };
}; };
}; };
&config {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_config_66: macaddr@66 {
reg = <0x66 0x6>;
};
};

View File

@ -153,7 +153,7 @@
ath9k0: wifi@0,11 { ath9k0: wifi@0,11 {
compatible = "pci168c,0029"; compatible = "pci168c,0029";
reg = <0x8800 0 0 0 0>; reg = <0x8800 0 0 0 0>;
mtd-mac-address = <&art 0x0>; mtd-mac-address = <&art 0xc>;
qca,no-eeprom; qca,no-eeprom;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
@ -181,7 +181,7 @@
ath9k1: wifi@0,12 { ath9k1: wifi@0,12 {
compatible = "pci168c,0029"; compatible = "pci168c,0029";
reg = <0x9000 0 0 0 0>; reg = <0x9000 0 0 0 0>;
mtd-mac-address = <&art 0xc>; mtd-mac-address = <&art 0x0>;
qca,no-eeprom; qca,no-eeprom;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;

View File

@ -153,13 +153,15 @@
}; };
&eth0 { &eth0 {
mtd-mac-address = <&art 0x120c>; nvmem-cells = <&macaddr_art_120c>;
nvmem-cell-names = "mac-address";
}; };
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x120c>; nvmem-cells = <&macaddr_art_120c>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
}; };
@ -170,7 +172,8 @@
compatible = "pci168c,002a"; compatible = "pci168c,002a";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
qca,no-eeprom; qca,no-eeprom;
mtd-mac-address = <&art 0x120c>; nvmem-cells = <&macaddr_art_120c>;
nvmem-cell-names = "mac-address";
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
}; };
@ -181,3 +184,13 @@
pinctrl-single,bits = <0x0 0x0 0xf8>; pinctrl-single,bits = <0x0 0x0 0xf8>;
}; };
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_120c: macaddr@120c {
reg = <0x120c 0x6>;
};
};

View File

@ -72,13 +72,15 @@
}; };
&eth0 { &eth0 {
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
}; };
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
}; };
&pcie { &pcie {
@ -92,3 +94,13 @@
gpio-controller; gpio-controller;
}; };
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -174,13 +174,15 @@
}; };
&eth0 { &eth0 {
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
}; };
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x6>; nvmem-cells = <&macaddr_art_6>;
nvmem-cell-names = "mac-address";
}; };
&pcie { &pcie {
@ -189,10 +191,25 @@
ath9k: wifi@0,0 { ath9k: wifi@0,0 {
compatible = "pci168c,002b"; compatible = "pci168c,002b";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
qca,no-eeprom; qca,no-eeprom;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
}; };
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
macaddr_art_6: macaddr@6 {
reg = <0x6 0x6>;
};
};

View File

@ -107,13 +107,15 @@
}; };
&eth0 { &eth0 {
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
}; };
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x6>; nvmem-cells = <&macaddr_art_6>;
nvmem-cell-names = "mac-address";
}; };
&pcie { &pcie {
@ -122,10 +124,25 @@
ath9k: wifi@0,0 { ath9k: wifi@0,0 {
compatible = "pci168c,002b"; compatible = "pci168c,002b";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
qca,no-eeprom; qca,no-eeprom;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
}; };
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
macaddr_art_6: macaddr@6 {
reg = <0x6 0x6>;
};
};

View File

@ -104,7 +104,8 @@
ath9k: wifi@0,0 { ath9k: wifi@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
qca,no-eeprom; qca,no-eeprom;
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
}; };
@ -115,3 +116,13 @@
pinctrl-single,bits = <0x0 0x0 0xf8>; pinctrl-single,bits = <0x0 0x0 0xf8>;
}; };
}; };
&uboot {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_uboot_1fc00: macaddr@1fc00 {
reg = <0x1fc00 0x6>;
};
};

View File

@ -14,9 +14,20 @@
}; };
&eth1 { &eth1 {
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
}; };
&ath9k { &ath9k {
compatible = "pci168c,002a"; compatible = "pci168c,002a";
}; };
&uboot {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_uboot_1fc00: macaddr@1fc00 {
reg = <0x1fc00 0x6>;
};
};

View File

@ -30,15 +30,27 @@
}; };
&eth0 { &eth0 {
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>; mac-address-increment = <(-1)>;
}; };
&eth1 { &eth1 {
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
}; };
&ath9k { &ath9k {
compatible = "pci168c,002b"; compatible = "pci168c,002b";
}; };
&uboot {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_uboot_1fc00: macaddr@1fc00 {
reg = <0x1fc00 0x6>;
};
};

View File

@ -179,13 +179,15 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
}; };
&eth1 { &eth1 {
compatible = "qca,ar7241-eth", "syscon", "simple-mfd"; compatible = "qca,ar7241-eth", "syscon", "simple-mfd";
mtd-mac-address = <&art 0x6>; nvmem-cells = <&macaddr_art_6>;
nvmem-cell-names = "mac-address";
}; };
&pcie { &pcie {
@ -194,10 +196,25 @@
ath9k: wifi@0,0 { ath9k: wifi@0,0 {
compatible = "pci168c,002e"; compatible = "pci168c,002e";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
qca,no-eeprom; qca,no-eeprom;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
}; };
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
macaddr_art_6: macaddr@6 {
reg = <0x6 0x6>;
};
};

View File

@ -89,18 +89,31 @@
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
qca,no-eeprom; qca,no-eeprom;
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
}; };
}; };
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>; mac-address-increment = <(-1)>;
}; };
&eth1 { &eth1 {
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
}; };
&uboot {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_uboot_1fc00: macaddr@1fc00 {
reg = <0x1fc00 0x6>;
};
};

View File

@ -135,18 +135,31 @@
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
qca,no-eeprom; qca,no-eeprom;
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
}; };
}; };
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>; mac-address-increment = <(-1)>;
}; };
&eth1 { &eth1 {
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
}; };
&uboot {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_uboot_1fc00: macaddr@1fc00 {
reg = <0x1fc00 0x6>;
};
};

View File

@ -94,9 +94,20 @@
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x6>; nvmem-cells = <&macaddr_art_6>;
nvmem-cell-names = "mac-address";
}; };
&wifi { &wifi {
ubnt,hsr; ubnt,hsr;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_6: macaddr@6 {
reg = <0x6 0x6>;
};
};

View File

@ -45,4 +45,3 @@
mtd-mac-address = <&art 0x0>; mtd-mac-address = <&art 0x0>;
}; };

View File

@ -15,5 +15,16 @@
}; };
&eth0 { &eth0 {
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
};
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
}; };

View File

@ -192,7 +192,8 @@
pll-data = <0x1c000000 0x00000101 0x00001616>; pll-data = <0x1c000000 0x00000101 0x00001616>;
mtd-mac-address = <&art 0x120c>; nvmem-cells = <&macaddr_art_120c>;
nvmem-cell-names = "mac-address";
phy-mode = "rgmii"; phy-mode = "rgmii";
phy-handle = <&phy0>; phy-handle = <&phy0>;
@ -204,7 +205,8 @@
ath9k: wifi@0,0 { ath9k: wifi@0,0 {
compatible = "pci168c,002a"; compatible = "pci168c,002a";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mtd-mac-address = <&art 0x120c>; nvmem-cells = <&macaddr_art_120c>;
nvmem-cell-names = "mac-address";
qca,no-eeprom; qca,no-eeprom;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
@ -229,3 +231,13 @@
#trigger-source-cells = <0>; #trigger-source-cells = <0>;
}; };
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_120c: macaddr@120c {
reg = <0x120c 0x6>;
};
};

View File

@ -64,7 +64,8 @@
}; };
&eth0 { &eth0 {
mtd-mac-address = <&art 0x1002>; nvmem-cells = <&macaddr_art_1002>;
nvmem-cell-names = "mac-address";
}; };
&pcie { &pcie {
@ -73,9 +74,20 @@
ath9k: wifi@0,0 { ath9k: wifi@0,0 {
compatible = "pci168c,0030"; compatible = "pci168c,0030";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mtd-mac-address = <&art 0x1002>; nvmem-cells = <&macaddr_art_1002>;
nvmem-cell-names = "mac-address";
qca,no-eeprom; qca,no-eeprom;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
}; };
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_1002: macaddr@1002 {
reg = <0x1002 0x6>;
};
};

View File

@ -63,7 +63,8 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
phy-handle = <&phy4>; phy-handle = <&phy4>;
phy-mode = "rgmii-id"; phy-mode = "rgmii-id";
@ -77,10 +78,21 @@
ath9k: wifi@0,0,0 { ath9k: wifi@0,0,0 {
compatible = "pci168c,002a"; compatible = "pci168c,002a";
reg = <0x0 0 0 0 0>; reg = <0x0 0 0 0 0>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
qca,no-eeprom; qca,no-eeprom;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
}; };
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -63,7 +63,8 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
phy-handle = <&phy4>; phy-handle = <&phy4>;
phy-mode = "rgmii-id"; phy-mode = "rgmii-id";
@ -77,10 +78,21 @@
ath9k: wifi@0,0,0 { ath9k: wifi@0,0,0 {
compatible = "pci168c,002a"; compatible = "pci168c,002a";
reg = <0x0 0 0 0 0>; reg = <0x0 0 0 0 0>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>; mac-address-increment = <(-1)>;
qca,no-eeprom; qca,no-eeprom;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
}; };
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -81,7 +81,8 @@
compatible = "pci168c,002a"; compatible = "pci168c,002a";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
qca,no-eeprom; qca,no-eeprom;
mtd-mac-address = <&config 0x66>; nvmem-cells = <&macaddr_config_66>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
}; };
}; };
@ -101,7 +102,8 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&config 0x66>; nvmem-cells = <&macaddr_config_66>;
nvmem-cell-names = "mac-address";
pll-data = <0x02000000 0x00000101 0x00001313>; pll-data = <0x02000000 0x00000101 0x00001313>;
@ -116,7 +118,8 @@
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&config 0x66>; nvmem-cells = <&macaddr_config_66>;
nvmem-cell-names = "mac-address";
}; };
&spi { &spi {
@ -164,3 +167,13 @@
}; };
}; };
}; };
&config {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_config_66: macaddr@66 {
reg = <0x66 0x6>;
};
};

View File

@ -157,7 +157,8 @@
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
qca,no-eeprom; qca,no-eeprom;
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
}; };
}; };
@ -165,7 +166,8 @@
status = "okay"; status = "okay";
phy-mode = "rgmii"; phy-mode = "rgmii";
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
phy-handle = <&phy0>; phy-handle = <&phy0>;
fixed-link { fixed-link {
@ -173,3 +175,13 @@
full-duplex; full-duplex;
}; };
}; };
&uboot {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_uboot_1fc00: macaddr@1fc00 {
reg = <0x1fc00 0x6>;
};
};

View File

@ -67,10 +67,21 @@
phy-handle = <&phy0>; phy-handle = <&phy0>;
phy-mode = "rgmii"; phy-mode = "rgmii";
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
fixed-link { fixed-link {
speed = <1000>; speed = <1000>;
full-duplex; full-duplex;
}; };
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -179,7 +179,8 @@
phy-mode = "rgmii-rxid"; phy-mode = "rgmii-rxid";
pll-data = <0x16000000 0x00000101 0x00001313>; pll-data = <0x16000000 0x00000101 0x00001313>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
phy-handle = <&phy0>; phy-handle = <&phy0>;
fixed-link { fixed-link {
@ -187,3 +188,13 @@
full-duplex; full-duplex;
}; };
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -131,5 +131,16 @@
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x6>; nvmem-cells = <&macaddr_art_6>;
nvmem-cell-names = "mac-address";
};
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_6: macaddr@6 {
reg = <0x6 0x6>;
};
}; };

View File

@ -79,11 +79,27 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
}; };
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x6>; nvmem-cells = <&macaddr_art_6>;
nvmem-cell-names = "mac-address";
};
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
macaddr_art_6: macaddr@6 {
reg = <0x6 0x6>;
};
}; };

View File

@ -188,7 +188,8 @@
status = "disabled"; status = "disabled";
phy-mode = "rgmii"; phy-mode = "rgmii";
mtd-mac-address = <&art 0x1120c>; nvmem-cells = <&macaddr_art_1120c>;
nvmem-cell-names = "mac-address";
fixed-link { fixed-link {
speed = <1000>; speed = <1000>;
@ -215,7 +216,8 @@
resets = <&rst 13>; resets = <&rst 13>;
reset-names = "mac"; reset-names = "mac";
qca,mac-idx = <1>; qca,mac-idx = <1>;
mtd-mac-address = <&art 0x1120c>; nvmem-cells = <&macaddr_art_1120c>;
nvmem-cell-names = "mac-address";
}; };
&wmac { &wmac {
@ -247,3 +249,13 @@
&usb_phy { &usb_phy {
status = "okay"; status = "okay";
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_1120c: macaddr@1120c {
reg = <0x1120c 0x6>;
};
};

View File

@ -118,7 +118,8 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
phy-handle = <&phy12>; phy-handle = <&phy12>;
}; };
@ -127,5 +128,16 @@
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
};
&uboot {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_uboot_1fc00: macaddr@1fc00 {
reg = <0x1fc00 0x6>;
};
}; };

View File

@ -137,7 +137,8 @@
status = "okay"; status = "okay";
phy-mode = "rgmii"; phy-mode = "rgmii";
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
fixed-link { fixed-link {
speed = <1000>; speed = <1000>;
@ -149,5 +150,16 @@
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
};
&uboot {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_uboot_1fc00: macaddr@1fc00 {
reg = <0x1fc00 0x6>;
};
}; };

View File

@ -144,7 +144,8 @@
status = "okay"; status = "okay";
phy-mode = "rmii"; phy-mode = "rmii";
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
fixed-link { fixed-link {
speed = <100>; speed = <100>;
@ -155,5 +156,16 @@
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
};
&uboot {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_uboot_1fc00: macaddr@1fc00 {
reg = <0x1fc00 0x6>;
};
}; };

View File

@ -113,13 +113,15 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
}; };
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
gmac-config { gmac-config {
device = <&gmac>; device = <&gmac>;
@ -133,5 +135,16 @@
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
};
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
}; };

View File

@ -130,13 +130,15 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x6>; nvmem-cells = <&macaddr_art_6>;
nvmem-cell-names = "mac-address";
}; };
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
}; };
&wmac { &wmac {
@ -144,3 +146,17 @@
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
macaddr_art_6: macaddr@6 {
reg = <0x6 0x6>;
};
};

View File

@ -112,7 +112,8 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x1002>; nvmem-cells = <&macaddr_art_1002>;
nvmem-cell-names = "mac-address";
gmac-config { gmac-config {
device = <&gmac>; device = <&gmac>;
@ -132,5 +133,20 @@
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&art 0x2>; nvmem-cells = <&macaddr_art_2>;
nvmem-cell-names = "mac-address";
};
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_2: macaddr@2 {
reg = <0x2 0x6>;
};
macaddr_art_1002: macaddr@1002 {
reg = <0x1002 0x6>;
};
}; };

View File

@ -86,14 +86,16 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
}; };
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
mtd-mac-address-increment = <2>; nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
}; };
&wmac { &wmac {
@ -101,3 +103,13 @@
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -103,7 +103,8 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
gmac-config { gmac-config {
device = <&gmac>; device = <&gmac>;
@ -115,10 +116,25 @@
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x6>; nvmem-cells = <&macaddr_art_6>;
nvmem-cell-names = "mac-address";
}; };
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
macaddr_art_6: macaddr@6 {
reg = <0x6 0x6>;
};
};

View File

@ -55,7 +55,8 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
gmac-config { gmac-config {
device = <&gmac>; device = <&gmac>;
@ -123,3 +124,13 @@
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -93,7 +93,8 @@
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x1002>; nvmem-cells = <&macaddr_art_1002>;
nvmem-cell-names = "mac-address";
mac-address-increment-byte = <3>; mac-address-increment-byte = <3>;
mac-address-increment = <0x40>; mac-address-increment = <0x40>;
}; };
@ -107,3 +108,13 @@
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_1002: macaddr@1002 {
reg = <0x1002 0x6>;
};
};

View File

@ -63,7 +63,8 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
gmac-config { gmac-config {
device = <&gmac>; device = <&gmac>;
@ -117,3 +118,13 @@
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -121,7 +121,8 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
gmac-config { gmac-config {
device = <&gmac>; device = <&gmac>;
@ -134,7 +135,8 @@
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
}; };
&wmac { &wmac {
@ -142,3 +144,13 @@
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -58,7 +58,8 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
gmac-config { gmac-config {
device = <&gmac>; device = <&gmac>;
@ -117,3 +118,13 @@
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -24,7 +24,8 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>; mac-address-increment = <(-1)>;
gmac-config { gmac-config {
@ -38,7 +39,8 @@
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
}; };
@ -90,3 +92,13 @@
&usb_phy { &usb_phy {
status = "okay"; status = "okay";
}; };
&uboot {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_uboot_1fc00: macaddr@1fc00 {
reg = <0x1fc00 0x6>;
};
};

View File

@ -62,7 +62,8 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x6>; nvmem-cells = <&macaddr_art_6>;
nvmem-cell-names = "mac-address";
}; };
&eth1 { &eth1 {
@ -119,3 +120,13 @@
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_6: macaddr@6 {
reg = <0x6 0x6>;
};
};

View File

@ -75,7 +75,8 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
gmac-config { gmac-config {
device = <&gmac>; device = <&gmac>;
@ -102,5 +103,16 @@
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
};
&uboot {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_uboot_1fc00: macaddr@1fc00 {
reg = <0x1fc00 0x6>;
};
}; };

View File

@ -83,7 +83,8 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
gmac-config { gmac-config {
device = <&gmac>; device = <&gmac>;
@ -111,5 +112,16 @@
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
};
&uboot {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_uboot_1fc00: macaddr@1fc00 {
reg = <0x1fc00 0x6>;
};
}; };

View File

@ -109,14 +109,16 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&config 0x0>; nvmem-cells = <&macaddr_config_0>;
nvmem-cell-names = "mac-address";
}; };
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&config 0x0>; nvmem-cells = <&macaddr_config_0>;
mtd-mac-address-increment = <1>; nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
}; };
&spi { &spi {
@ -188,6 +190,17 @@
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&config 0x0>; nvmem-cells = <&macaddr_config_0>;
mtd-mac-address-increment = <2>; nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
};
&config {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_config_0: macaddr@0 {
reg = <0x0 0x6>;
};
}; };

View File

@ -146,7 +146,8 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
gmac-config { gmac-config {
device = <&gmac>; device = <&gmac>;
@ -165,5 +166,16 @@
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
};
&uboot {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_uboot_1fc00: macaddr@1fc00 {
reg = <0x1fc00 0x6>;
};
}; };

View File

@ -135,7 +135,8 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
gmac-config { gmac-config {
device = <&gmac>; device = <&gmac>;
@ -154,5 +155,16 @@
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
};
&uboot {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_uboot_1fc00: macaddr@1fc00 {
reg = <0x1fc00 0x6>;
};
}; };

View File

@ -80,7 +80,8 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
gmac-config { gmac-config {
device = <&gmac>; device = <&gmac>;
@ -110,5 +111,16 @@
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
};
&uboot {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_uboot_1fc00: macaddr@1fc00 {
reg = <0x1fc00 0x6>;
};
}; };

View File

@ -121,7 +121,8 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
gmac-config { gmac-config {
@ -135,7 +136,8 @@
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>; mac-address-increment = <(-1)>;
}; };
@ -143,5 +145,16 @@
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
};
&uboot {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_uboot_1fc00: macaddr@1fc00 {
reg = <0x1fc00 0x6>;
};
}; };

View File

@ -46,7 +46,8 @@
}; };
&eth1 { &eth1 {
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
}; };
&wmac { &wmac {
@ -54,3 +55,13 @@
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -65,13 +65,15 @@
phy-handle = <&swphy0>; phy-handle = <&swphy0>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
}; };
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
gmac-config { gmac-config {
device = <&gmac>; device = <&gmac>;
@ -84,3 +86,13 @@
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -142,11 +142,13 @@
phy-handle = <&swphy4>; phy-handle = <&swphy4>;
mtd-mac-address = <&art 0x6>; nvmem-cells = <&macaddr_art_6>;
nvmem-cell-names = "mac-address";
}; };
&eth1 { &eth1 {
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
}; };
&wmac { &wmac {
@ -154,3 +156,17 @@
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
macaddr_art_6: macaddr@6 {
reg = <0x6 0x6>;
};
};

View File

@ -133,7 +133,8 @@
status = "okay"; status = "okay";
phy-handle = <&swphy0>; phy-handle = <&swphy0>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
}; };
@ -141,10 +142,21 @@
phy-handle = <&swphy4>; phy-handle = <&swphy4>;
pll-data = <0x06000000 0x00000101 0x00001616>; pll-data = <0x06000000 0x00000101 0x00001616>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
gmac-config { gmac-config {
device = <&gmac>; device = <&gmac>;
switch-phy-swap = <1>; switch-phy-swap = <1>;
}; };
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -188,7 +188,8 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
phy-handle = <&swphy4>; phy-handle = <&swphy4>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
}; };
&eth1 { &eth1 {
@ -213,3 +214,13 @@
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -54,7 +54,8 @@
phy-handle = <&swphy0>; phy-handle = <&swphy0>;
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
gmac-config { gmac-config {
device = <&gmac>; device = <&gmac>;
@ -71,5 +72,16 @@
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
};
&uboot {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_uboot_1fc00: macaddr@1fc00 {
reg = <0x1fc00 0x6>;
};
}; };

View File

@ -96,7 +96,8 @@
/* default for ar934x, except for 1000M and 10M */ /* default for ar934x, except for 1000M and 10M */
pll-data = <0x06000000 0x00000101 0x00001313>; pll-data = <0x06000000 0x00000101 0x00001313>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
phy-mode = "rgmii"; phy-mode = "rgmii";
phy-handle = <&phy0>; phy-handle = <&phy0>;
@ -111,3 +112,13 @@
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -18,7 +18,8 @@
/* default for ar934x, except for 1000M and 10M */ /* default for ar934x, except for 1000M and 10M */
pll-data = <0x02000000 0x00000101 0x00001313>; pll-data = <0x02000000 0x00000101 0x00001313>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
phy-mode = "rgmii-id"; phy-mode = "rgmii-id";
phy-handle = <&phy4>; phy-handle = <&phy4>;
@ -29,3 +30,13 @@
rxdv-delay = <3>; rxdv-delay = <3>;
}; };
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -26,7 +26,8 @@
/* default for ar934x, except for 1000M and 10M */ /* default for ar934x, except for 1000M and 10M */
pll-data = <0x06000000 0x00000101 0x00001313>; pll-data = <0x06000000 0x00000101 0x00001313>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
phy-mode = "rgmii"; phy-mode = "rgmii";
phy-handle = <&phy0>; phy-handle = <&phy0>;
@ -37,3 +38,13 @@
rxdv-delay = <2>; rxdv-delay = <2>;
}; };
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -110,5 +110,16 @@
}; };
&eth0 { &eth0 {
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
};
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
}; };

View File

@ -106,7 +106,8 @@
compatible = "pci168c,0030"; compatible = "pci168c,0030";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mtd-mac-address = <&hw_info 0x0>; nvmem-cells = <&macaddr_hw_info_0>;
nvmem-cell-names = "mac-address";
mac-address-increment = <2>; mac-address-increment = <2>;
}; };
}; };
@ -160,7 +161,8 @@
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-mac-address = <&hw_info 0x0>; nvmem-cells = <&macaddr_hw_info_0>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
}; };
@ -215,7 +217,8 @@
pll-data = <0x06000000 0x00000101 0x00001313>; pll-data = <0x06000000 0x00000101 0x00001313>;
mtd-mac-address = <&hw_info 0x0>; nvmem-cells = <&macaddr_hw_info_0>;
nvmem-cell-names = "mac-address";
phy-mode = "rgmii-id"; phy-mode = "rgmii-id";
phy-handle = <&phy0>; phy-handle = <&phy0>;
@ -227,3 +230,13 @@
rxdv-delay = <1>; rxdv-delay = <1>;
}; };
}; };
&hw_info {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_hw_info_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -90,14 +90,16 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
phy-handle = <&swphy4>; phy-handle = <&swphy4>;
}; };
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x6>; nvmem-cells = <&macaddr_art_6>;
nvmem-cell-names = "mac-address";
}; };
&ref { &ref {
@ -149,3 +151,17 @@
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
macaddr_art_6: macaddr@6 {
reg = <0x6 0x6>;
};
};

View File

@ -120,7 +120,8 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
phy-handle = <&swphy0>; phy-handle = <&swphy0>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
gmac-config { gmac-config {
device = <&gmac>; device = <&gmac>;
@ -130,10 +131,25 @@
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x6>; nvmem-cells = <&macaddr_art_6>;
nvmem-cell-names = "mac-address";
}; };
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
macaddr_art_6: macaddr@6 {
reg = <0x6 0x6>;
};
};

View File

@ -139,8 +139,19 @@
pll-data = <0x06000000 0x00000101 0x00001616>; pll-data = <0x06000000 0x00000101 0x00001616>;
mtd-mac-address = <&uboot 0x2e010>; nvmem-cells = <&macaddr_uboot_2e010>;
nvmem-cell-names = "mac-address";
phy-mode = "rgmii"; phy-mode = "rgmii";
phy-handle = <&phy0>; phy-handle = <&phy0>;
}; };
&uboot {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_uboot_2e010: macaddr@2e010 {
reg = <0x2e010 0x6>;
};
};

View File

@ -130,7 +130,8 @@
pll-data = <0x02000000 0x00000101 0x00001616>; pll-data = <0x02000000 0x00000101 0x00001616>;
mtd-mac-address = <&art 0x1002>; nvmem-cells = <&macaddr_art_1002>;
nvmem-cell-names = "mac-address";
mac-address-increment = <2>; mac-address-increment = <2>;
phy-mode = "rgmii"; phy-mode = "rgmii";
@ -168,3 +169,13 @@
>; >;
}; };
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_1002: macaddr@1002 {
reg = <0x1002 0x6>;
};
};

View File

@ -29,17 +29,30 @@
}; };
&eth0 { &eth0 {
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-2)>; mac-address-increment = <(-2)>;
}; };
&pcie { &pcie {
wifi@0,0,0 { wifi@0,0,0 {
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
}; };
}; };
&wmac { &wmac {
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>; mac-address-increment = <(-1)>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -24,17 +24,30 @@
}; };
&eth0 { &eth0 {
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
}; };
&pcie { &pcie {
wifi@0,0,0 { wifi@0,0,0 {
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-2)>; mac-address-increment = <(-2)>;
}; };
}; };
&wmac { &wmac {
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>; mac-address-increment = <(-1)>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -219,7 +219,8 @@
/* default for ar934x, except for 1000M */ /* default for ar934x, except for 1000M */
pll-data = <0x06000000 0x00000101 0x00001616>; pll-data = <0x06000000 0x00000101 0x00001616>;
mtd-mac-address = <&caldata 0x0>; nvmem-cells = <&macaddr_caldata_0>;
nvmem-cell-names = "mac-address";
phy-mode = "rgmii"; phy-mode = "rgmii";
phy-handle = <&phy0>; phy-handle = <&phy0>;
@ -244,7 +245,8 @@
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-mac-address = <&caldata 0x0>; nvmem-cells = <&macaddr_caldata_0>;
nvmem-cell-names = "mac-address";
qca,no-eeprom; qca,no-eeprom;
}; };
@ -254,9 +256,24 @@
ath9k: wifi@0,0 { ath9k: wifi@0,0 {
compatible = "pci168c,0033"; compatible = "pci168c,0033";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mtd-mac-address = <&caldata 0xc>; nvmem-cells = <&macaddr_caldata_c>;
nvmem-cell-names = "mac-address";
qca,no-eeprom; qca,no-eeprom;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
}; };
}; };
&caldata {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_caldata_0: macaddr@0 {
reg = <0x0 0x6>;
};
macaddr_caldata_c: macaddr@c {
reg = <0xc 0x6>;
};
};

View File

@ -129,7 +129,8 @@
ath9k: wifi@0,0 { ath9k: wifi@0,0 {
compatible = "pci168c,0030"; compatible = "pci168c,0030";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mtd-mac-address = <&art 0xc>; nvmem-cells = <&macaddr_art_c>;
nvmem-cell-names = "mac-address";
qca,no-eeprom; qca,no-eeprom;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
@ -140,7 +141,8 @@
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&art 0x6>; nvmem-cells = <&macaddr_art_6>;
nvmem-cell-names = "mac-address";
}; };
&mdio0 { &mdio0 {
@ -158,8 +160,27 @@
pll-data = <0x06000000 0x00000101 0x00001313>; pll-data = <0x06000000 0x00000101 0x00001313>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
phy-mode = "rgmii-id"; phy-mode = "rgmii-id";
phy-handle = <&phy0>; phy-handle = <&phy0>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
macaddr_art_6: macaddr@6 {
reg = <0x6 0x6>;
};
macaddr_art_c: macaddr@c {
reg = <0xc 0x6>;
};
};

View File

@ -96,7 +96,8 @@
pll-data = <0x02000000 0x00000101 0x00001313>; pll-data = <0x02000000 0x00000101 0x00001313>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
phy-mode = "rgmii-id"; phy-mode = "rgmii-id";
phy-handle = <&phy0>; phy-handle = <&phy0>;
@ -113,7 +114,8 @@
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
}; };
@ -124,7 +126,18 @@
compatible = "pci168c,0030"; compatible = "pci168c,0030";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
qca,no-eeprom; qca,no-eeprom;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
mac-address-increment = <8>; mac-address-increment = <8>;
}; };
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -145,13 +145,15 @@
phy-handle = <&swphy4>; phy-handle = <&swphy4>;
mtd-mac-address = <&art 0x6>; nvmem-cells = <&macaddr_art_6>;
nvmem-cell-names = "mac-address";
}; };
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
}; };
&wmac { &wmac {
@ -159,3 +161,17 @@
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
macaddr_art_6: macaddr@6 {
reg = <0x6 0x6>;
};
};

View File

@ -118,7 +118,8 @@
ath9k: wifi@0,0 { ath9k: wifi@0,0 {
compatible = "168c,0030"; compatible = "168c,0030";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-2)>; mac-address-increment = <(-2)>;
mtd-cal-data = <&art 0x5000>; mtd-cal-data = <&art 0x5000>;
qca,no-eeprom; qca,no-eeprom;
@ -133,7 +134,8 @@
qca,disable-2ghz; qca,disable-2ghz;
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>; mac-address-increment = <(-1)>;
}; };
@ -154,8 +156,19 @@
/* default for ar934x, except for 1000M */ /* default for ar934x, except for 1000M */
pll-data = <0x06000000 0x00000101 0x00001616>; pll-data = <0x06000000 0x00000101 0x00001616>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
phy-mode = "rgmii"; phy-mode = "rgmii";
phy-handle = <&phy0>; phy-handle = <&phy0>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -125,7 +125,8 @@
ath9k: wifi@0,0 { ath9k: wifi@0,0 {
compatible = "pci168c,0030"; compatible = "pci168c,0030";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mtd-mac-address = <&art 0x5002>; nvmem-cells = <&macaddr_art_5002>;
nvmem-cell-names = "mac-address";
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
}; };
@ -159,7 +160,8 @@
/* default for ar934x, except for 1000M */ /* default for ar934x, except for 1000M */
pll-data = <0x06000000 0x00000101 0x00001616>; pll-data = <0x06000000 0x00000101 0x00001616>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
phy-mode = "rgmii"; phy-mode = "rgmii";
phy-handle = <&phy0>; phy-handle = <&phy0>;
@ -209,3 +211,17 @@
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
macaddr_art_5002: macaddr@5002 {
reg = <0x5002 0x6>;
};
};

View File

@ -24,14 +24,16 @@
phy-handle = <&swphy4>; phy-handle = <&swphy4>;
mtd-mac-address = <&pridata 0x400>; nvmem-cells = <&macaddr_pridata_400>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
}; };
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&pridata 0x400>; nvmem-cells = <&macaddr_pridata_400>;
nvmem-cell-names = "mac-address";
gmac-config { gmac-config {
device = <&gmac>; device = <&gmac>;
@ -47,3 +49,13 @@
reg = <0x070000 0xf90000>; reg = <0x070000 0xf90000>;
}; };
}; };
&pridata {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_pridata_400: macaddr@400 {
reg = <0x400 0x6>;
};
};

View File

@ -24,14 +24,16 @@
phy-handle = <&swphy4>; phy-handle = <&swphy4>;
mtd-mac-address = <&pridata 0x400>; nvmem-cells = <&macaddr_pridata_400>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
}; };
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&pridata 0x400>; nvmem-cells = <&macaddr_pridata_400>;
nvmem-cell-names = "mac-address";
gmac-config { gmac-config {
device = <&gmac>; device = <&gmac>;
@ -47,3 +49,13 @@
reg = <0x070000 0x790000>; reg = <0x070000 0x790000>;
}; };
}; };
&pridata {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_pridata_400: macaddr@400 {
reg = <0x400 0x6>;
};
};

View File

@ -33,7 +33,8 @@
pll-data = <0x06000000 0x00000101 0x00001616>; pll-data = <0x06000000 0x00000101 0x00001616>;
mtd-mac-address = <&pridata 0x400>; nvmem-cells = <&macaddr_pridata_400>;
nvmem-cell-names = "mac-address";
phy-mode = "rgmii"; phy-mode = "rgmii";
phy-handle = <&phy0>; phy-handle = <&phy0>;
@ -46,3 +47,13 @@
reg = <0x070000 0xf90000>; reg = <0x070000 0xf90000>;
}; };
}; };
&pridata {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_pridata_400: macaddr@400 {
reg = <0x400 0x6>;
};
};

View File

@ -33,7 +33,8 @@
pll-data = <0x06000000 0x00000101 0x00001616>; pll-data = <0x06000000 0x00000101 0x00001616>;
mtd-mac-address = <&pridata 0x400>; nvmem-cells = <&macaddr_pridata_400>;
nvmem-cell-names = "mac-address";
phy-mode = "rgmii"; phy-mode = "rgmii";
phy-handle = <&phy0>; phy-handle = <&phy0>;
@ -46,3 +47,13 @@
reg = <0x070000 0x790000>; reg = <0x070000 0x790000>;
}; };
}; };
&pridata {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_pridata_400: macaddr@400 {
reg = <0x400 0x6>;
};
};

View File

@ -66,7 +66,8 @@
phy-handle = <&swphy0>; phy-handle = <&swphy0>;
mtd-mac-address = <&art 0x1002>; nvmem-cells = <&macaddr_art_1002>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
gmac-config { gmac-config {
@ -78,7 +79,8 @@
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x1002>; nvmem-cells = <&macaddr_art_1002>;
nvmem-cell-names = "mac-address";
}; };
&gpio { &gpio {
@ -154,3 +156,13 @@
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_1002: macaddr@1002 {
reg = <0x1002 0x6>;
};
};

View File

@ -164,14 +164,16 @@
phy-handle = <&swphy4>; phy-handle = <&swphy4>;
mtd-mac-address = <&config 0x0>; nvmem-cells = <&macaddr_config_0>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
}; };
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&config 0x0>; nvmem-cells = <&macaddr_config_0>;
nvmem-cell-names = "mac-address";
}; };
&builtin_switch { &builtin_switch {
@ -190,3 +192,13 @@
pinctrl-single,bits = <0x0 0x002e0000 0x00ff0000>; pinctrl-single,bits = <0x0 0x002e0000 0x00ff0000>;
}; };
}; };
&config {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_config_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -163,14 +163,16 @@
phy-handle = <&swphy4>; phy-handle = <&swphy4>;
mtd-mac-address = <&config 0x0>; nvmem-cells = <&macaddr_config_0>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
}; };
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&config 0x0>; nvmem-cells = <&macaddr_config_0>;
nvmem-cell-names = "mac-address";
}; };
&builtin_switch { &builtin_switch {
@ -186,3 +188,13 @@
<0x14 0x08 0xff>; <0x14 0x08 0xff>;
}; };
}; };
&config {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_config_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -147,7 +147,8 @@
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&config 0x0>; nvmem-cells = <&macaddr_config_0>;
nvmem-cell-names = "mac-address";
mac-address-increment = <2>; mac-address-increment = <2>;
}; };
@ -171,3 +172,13 @@
<0x3c 0x000b0000 0x00ff0000>; <0x3c 0x000b0000 0x00ff0000>;
}; };
}; };
&config {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_config_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -84,7 +84,8 @@
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&info 0x8>; nvmem-cells = <&macaddr_info_8>;
nvmem-cell-names = "mac-address";
}; };
&eth0 { &eth0 {
@ -92,7 +93,8 @@
phy-handle = <&swphy4>; phy-handle = <&swphy4>;
mtd-mac-address = <&info 0x8>; nvmem-cells = <&macaddr_info_8>;
nvmem-cell-names = "mac-address";
}; };
&eth1 { &eth1 {
@ -114,3 +116,13 @@
line-name = "tp-link:ext:lna1"; line-name = "tp-link:ext:lna1";
}; };
}; };
&info {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_info_8: macaddr@8 {
reg = <0x8 0x6>;
};
};

View File

@ -45,7 +45,8 @@
}; };
&eth1 { &eth1 {
mtd-mac-address = <&info 0x8>; nvmem-cells = <&macaddr_info_8>;
nvmem-cell-names = "mac-address";
gmac-config { gmac-config {
device = <&gmac>; device = <&gmac>;
@ -53,3 +54,13 @@
switch-only-mode = <1>; switch-only-mode = <1>;
}; };
}; };
&info {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_info_8: macaddr@8 {
reg = <0x8 0x6>;
};
};

View File

@ -57,18 +57,21 @@
}; };
&ath9k { &ath9k {
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
}; };
&wmac { &wmac {
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
}; };
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>; mac-address-increment = <(-1)>;
gmac-config { gmac-config {
@ -83,6 +86,17 @@
phy-handle = <&swphy4>; phy-handle = <&swphy4>;
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
mac-address-increment = <2>; mac-address-increment = <2>;
}; };
&uboot {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_uboot_1fc00: macaddr@1fc00 {
reg = <0x1fc00 0x6>;
};
};

View File

@ -80,11 +80,13 @@
}; };
&ath9k { &ath9k {
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
}; };
&wmac { &wmac {
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>; mac-address-increment = <(-1)>;
}; };
@ -115,8 +117,19 @@
/* default for ar934x, except for 1000M */ /* default for ar934x, except for 1000M */
pll-data = <0x06000000 0x00000101 0x00001616>; pll-data = <0x06000000 0x00000101 0x00001616>;
mtd-mac-address = <&uboot 0x1fc00>; nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
phy-mode = "rgmii"; phy-mode = "rgmii";
phy-handle = <&phy0>; phy-handle = <&phy0>;
}; };
&uboot {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_uboot_1fc00: macaddr@1fc00 {
reg = <0x1fc00 0x6>;
};
};

View File

@ -144,8 +144,19 @@
pll-data = <0x6000000 0x101 0x1616>; pll-data = <0x6000000 0x101 0x1616>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
phy-mode = "rgmii"; phy-mode = "rgmii";
phy-handle = <&phy0>; phy-handle = <&phy0>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -141,7 +141,8 @@
compatible = "pci168c,0030"; compatible = "pci168c,0030";
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
qca,no-eeprom; qca,no-eeprom;
mtd-mac-address = <&addr 0x0>; nvmem-cells = <&macaddr_addr_0>;
nvmem-cell-names = "mac-address";
mac-address-increment = <0x10>; mac-address-increment = <0x10>;
#gpio-cells = <2>; #gpio-cells = <2>;
gpio-controller; gpio-controller;
@ -179,7 +180,8 @@
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&addr 0x0>; nvmem-cells = <&macaddr_addr_0>;
nvmem-cell-names = "mac-address";
}; };
&mdio0 { &mdio0 {
@ -197,7 +199,8 @@
pll-data = <0xe000000 0x04000101 0x04001313>; pll-data = <0xe000000 0x04000101 0x04001313>;
mtd-mac-address = <&addr 0x0>; nvmem-cells = <&macaddr_addr_0>;
nvmem-cell-names = "mac-address";
mac-address-increment = <0x21>; mac-address-increment = <0x21>;
phy-mode = "rgmii-rxid"; phy-mode = "rgmii-rxid";
@ -210,3 +213,13 @@
rxdv-delay = <1>; rxdv-delay = <1>;
}; };
}; };
&addr {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_addr_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -84,12 +84,14 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
phy-handle = <&swphy4>; phy-handle = <&swphy4>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
}; };
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x6>; nvmem-cells = <&macaddr_art_6>;
nvmem-cell-names = "mac-address";
}; };
&spi { &spi {
@ -150,3 +152,17 @@
pinctrl-single,bits = <0x14 0x0 0xff00>; pinctrl-single,bits = <0x14 0x0 0xff00>;
}; };
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
macaddr_art_6: macaddr@6 {
reg = <0x6 0x6>;
};
};

View File

@ -87,7 +87,8 @@
phy-handle = <&swphy0>; phy-handle = <&swphy0>;
mtd-mac-address = <&art 0x6>; nvmem-cells = <&macaddr_art_6>;
nvmem-cell-names = "mac-address";
gmac-config { gmac-config {
device = <&gmac>; device = <&gmac>;
@ -98,7 +99,8 @@
}; };
&eth1 { &eth1 {
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
}; };
&wmac { &wmac {
@ -106,3 +108,17 @@
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
macaddr_art_6: macaddr@6 {
reg = <0x6 0x6>;
};
};

View File

@ -106,15 +106,27 @@
}; };
&eth0 { &eth0 {
mtd-mac-address = <&art 0x1002>; nvmem-cells = <&macaddr_art_1002>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-2)>; mac-address-increment = <(-2)>;
}; };
&eth1 { &eth1 {
mtd-mac-address = <&art 0x1002>; nvmem-cells = <&macaddr_art_1002>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>; mac-address-increment = <(-1)>;
}; };
&pcie0 { &pcie0 {
status = "okay"; status = "okay";
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_1002: macaddr@1002 {
reg = <0x1002 0x6>;
};
};

View File

@ -45,7 +45,8 @@
}; };
&eth0 { &eth0 {
mtd-mac-address = <&art 0x1002>; nvmem-cells = <&macaddr_art_1002>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>; mac-address-increment = <(-1)>;
}; };
@ -85,3 +86,13 @@
#trigger-source-cells = <0>; #trigger-source-cells = <0>;
}; };
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_1002: macaddr@1002 {
reg = <0x1002 0x6>;
};
};

View File

@ -50,7 +50,8 @@
}; };
&eth0 { &eth0 {
mtd-mac-address = <&art 0x1002>; nvmem-cells = <&macaddr_art_1002>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-2)>; mac-address-increment = <(-2)>;
}; };
@ -59,7 +60,8 @@
* (GMAC0 -> eth0, GMAC1 -> eth1, same as in old ar71xx target) */ * (GMAC0 -> eth0, GMAC1 -> eth1, same as in old ar71xx target) */
compatible = "qca,qca9530-eth", "syscon", "simple-mfd"; compatible = "qca,qca9530-eth", "syscon", "simple-mfd";
mtd-mac-address = <&art 0x1002>; nvmem-cells = <&macaddr_art_1002>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>; mac-address-increment = <(-1)>;
}; };
@ -79,3 +81,13 @@
debounce-interval = <60>; debounce-interval = <60>;
}; };
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_1002: macaddr@1002 {
reg = <0x1002 0x6>;
};
};

View File

@ -118,7 +118,8 @@
}; };
&eth1 { &eth1 {
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
gmac-config { gmac-config {
device = <&gmac>; device = <&gmac>;
@ -129,6 +130,17 @@
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -121,7 +121,8 @@
phy-handle = <&swphy0>; phy-handle = <&swphy0>;
mtd-mac-address = <&art 0x1002>; nvmem-cells = <&macaddr_art_1002>;
nvmem-cell-names = "mac-address";
gmac-config { gmac-config {
device = <&gmac>; device = <&gmac>;
@ -130,7 +131,8 @@
}; };
&eth1 { &eth1 {
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
}; };
&pcie0 { &pcie0 {
@ -141,3 +143,17 @@
reg = <0 0 0 0 0>; reg = <0 0 0 0 0>;
}; };
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
macaddr_art_1002: macaddr@1002 {
reg = <0x1002 0x6>;
};
};

View File

@ -136,14 +136,30 @@
phy-handle = <&swphy4>; phy-handle = <&swphy4>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
}; };
&eth1 { &eth1 {
mtd-mac-address = <&art 0x6>; nvmem-cells = <&macaddr_art_6>;
nvmem-cell-names = "mac-address";
}; };
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
macaddr_art_6: macaddr@6 {
reg = <0x6 0x6>;
};
};

View File

@ -121,11 +121,13 @@
phy-handle = <&swphy4>; phy-handle = <&swphy4>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
}; };
&eth1 { &eth1 {
mtd-mac-address = <&art 0x6>; nvmem-cells = <&macaddr_art_6>;
nvmem-cell-names = "mac-address";
}; };
&wmac { &wmac {
@ -139,3 +141,17 @@
pinctrl-single,bits = <0x4 0x0 0xff>; pinctrl-single,bits = <0x4 0x0 0xff>;
}; };
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
macaddr_art_6: macaddr@6 {
reg = <0x6 0x6>;
};
};

View File

@ -150,18 +150,31 @@
phy-handle = <&swphy4>; phy-handle = <&swphy4>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
}; };
&eth1 { &eth1 {
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
}; };
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
mac-address-increment = <10>; mac-address-increment = <10>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -109,18 +109,31 @@
phy-handle = <&swphy4>; phy-handle = <&swphy4>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;
}; };
&eth1 { &eth1 {
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
}; };
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
mac-address-increment = <3>; mac-address-increment = <3>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -109,7 +109,8 @@
phy-handle = <&swphy4>; phy-handle = <&swphy4>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
}; };
&eth1 { &eth1 {
@ -121,6 +122,17 @@
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&art 0x0>; nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
mac-address-increment = <10>; mac-address-increment = <10>;
}; };
&art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
};

View File

@ -105,11 +105,13 @@
phy-handle = <&swphy4>; phy-handle = <&swphy4>;
mtd-mac-address = <&uboot 0x2e010>; nvmem-cells = <&macaddr_uboot_2e010>;
nvmem-cell-names = "mac-address";
}; };
&eth1 { &eth1 {
mtd-mac-address = <&uboot 0x2e018>; nvmem-cells = <&macaddr_uboot_2e018>;
nvmem-cell-names = "mac-address";
}; };
&wmac { &wmac {
@ -134,3 +136,17 @@
&usb0 { &usb0 {
status = "okay"; status = "okay";
}; };
&uboot {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_uboot_2e010: macaddr@2e010 {
reg = <0x2e010 0x6>;
};
macaddr_uboot_2e018: macaddr@2e018 {
reg = <0x2e018 0x6>;
};
};

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