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>
ath9k0: wifi@0,11 { /* 2.4 GHz */
compatible = "pci168c,0029";
- mtd-mac-address = <&hwinfo 0x1c>;
+ nvmem-cells = <&macaddr_hwinfo_1c>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
reg = <0x8800 0 0 0 0>;
#gpio-cells = <2>;
ath9k1: wifi@0,12 { /* 5 GHz */
compatible = "pci168c,0029";
- mtd-mac-address = <&hwinfo 0x1c>;
+ nvmem-cells = <&macaddr_hwinfo_1c>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
reg = <0x9000 0 0 0 0>;
#gpio-cells = <2>;
ð0 {
status = "okay";
- mtd-mac-address = <&hwinfo 0x1c>;
+ nvmem-cells = <&macaddr_hwinfo_1c>;
+ nvmem-cell-names = "mac-address";
pll-data = <0x00110000 0x00001099 0x00991099>;
};
};
};
+
+&hwinfo {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_hwinfo_1c: macaddr@1c {
+ reg = <0x1c 0x6>;
+ };
+};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x120c>;
+ nvmem-cells = <&macaddr_art_120c>;
+ nvmem-cell-names = "mac-address";
fixed-link {
speed = <1000>;
ð1 {
status = "okay";
- mtd-mac-address = <&art 0x520c>;
+ nvmem-cells = <&macaddr_art_520c>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
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>;
+ };
+};
compatible = "pci168c,0029";
reg = <0x8800 0 0 0 0>;
qca,no-eeprom;
- mtd-mac-address = <&config 0x66>;
+ nvmem-cells = <&macaddr_config_66>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
#gpio-cells = <2>;
gpio-controller;
compatible = "pci168c,0029";
reg = <0x9000 0 0 0 0>;
qca,no-eeprom;
- mtd-mac-address = <&config 0x66>;
+ nvmem-cells = <&macaddr_config_66>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
#gpio-cells = <2>;
gpio-controller;
ð0 {
status = "okay";
- mtd-mac-address = <&config 0x66>;
+ nvmem-cells = <&macaddr_config_66>;
+ nvmem-cell-names = "mac-address";
pll-data = <0x00110000 0x00001099 0x00991099>;
};
};
};
+
+&config {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_66: macaddr@66 {
+ reg = <0x66 0x6>;
+ };
+};
ath9k0: wifi@0,11 {
compatible = "pci168c,0029";
reg = <0x8800 0 0 0 0>;
- mtd-mac-address = <&art 0x0>;
+ mtd-mac-address = <&art 0xc>;
qca,no-eeprom;
#gpio-cells = <2>;
gpio-controller;
ath9k1: wifi@0,12 {
compatible = "pci168c,0029";
reg = <0x9000 0 0 0 0>;
- mtd-mac-address = <&art 0xc>;
+ mtd-mac-address = <&art 0x0>;
qca,no-eeprom;
#gpio-cells = <2>;
gpio-controller;
};
ð0 {
- mtd-mac-address = <&art 0x120c>;
+ nvmem-cells = <&macaddr_art_120c>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
status = "okay";
- mtd-mac-address = <&art 0x120c>;
+ nvmem-cells = <&macaddr_art_120c>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
compatible = "pci168c,002a";
reg = <0x0000 0 0 0 0>;
qca,no-eeprom;
- mtd-mac-address = <&art 0x120c>;
+ nvmem-cells = <&macaddr_art_120c>;
+ nvmem-cell-names = "mac-address";
#gpio-cells = <2>;
gpio-controller;
};
pinctrl-single,bits = <0x0 0x0 0xf8>;
};
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_120c: macaddr@120c {
+ reg = <0x120c 0x6>;
+ };
+};
};
ð0 {
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
&pcie {
gpio-controller;
};
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
};
ð0 {
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
status = "okay";
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
};
&pcie {
ath9k: wifi@0,0 {
compatible = "pci168c,002b";
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>;
qca,no-eeprom;
#gpio-cells = <2>;
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>;
+ };
+};
};
ð0 {
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
status = "okay";
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
};
&pcie {
ath9k: wifi@0,0 {
compatible = "pci168c,002b";
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>;
qca,no-eeprom;
#gpio-cells = <2>;
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>;
+ };
+};
ath9k: wifi@0,0 {
reg = <0x0000 0 0 0 0>;
qca,no-eeprom;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
#gpio-cells = <2>;
gpio-controller;
};
pinctrl-single,bits = <0x0 0x0 0xf8>;
};
};
+
+&uboot {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_1fc00: macaddr@1fc00 {
+ reg = <0x1fc00 0x6>;
+ };
+};
};
ð1 {
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
};
&ath9k {
compatible = "pci168c,002a";
};
+
+&uboot {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_1fc00: macaddr@1fc00 {
+ reg = <0x1fc00 0x6>;
+ };
+};
};
ð0 {
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
ð1 {
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
&ath9k {
compatible = "pci168c,002b";
};
+
+&uboot {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_1fc00: macaddr@1fc00 {
+ reg = <0x1fc00 0x6>;
+ };
+};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
compatible = "qca,ar7241-eth", "syscon", "simple-mfd";
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
};
&pcie {
ath9k: wifi@0,0 {
compatible = "pci168c,002e";
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>;
qca,no-eeprom;
#gpio-cells = <2>;
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>;
+ };
+};
#gpio-cells = <2>;
gpio-controller;
qca,no-eeprom;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
};
};
ð0 {
status = "okay";
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
ð1 {
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
+
+&uboot {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_1fc00: macaddr@1fc00 {
+ reg = <0x1fc00 0x6>;
+ };
+};
#gpio-cells = <2>;
gpio-controller;
qca,no-eeprom;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
};
};
ð0 {
status = "okay";
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
ð1 {
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
+
+&uboot {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_1fc00: macaddr@1fc00 {
+ reg = <0x1fc00 0x6>;
+ };
+};
ð1 {
status = "okay";
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
};
&wifi {
ubnt,hsr;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_6: macaddr@6 {
+ reg = <0x6 0x6>;
+ };
+};
mtd-mac-address = <&art 0x0>;
};
-
};
ð0 {
- 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>;
+ };
};
pll-data = <0x1c000000 0x00000101 0x00001616>;
- mtd-mac-address = <&art 0x120c>;
+ nvmem-cells = <&macaddr_art_120c>;
+ nvmem-cell-names = "mac-address";
phy-mode = "rgmii";
phy-handle = <&phy0>;
ath9k: wifi@0,0 {
compatible = "pci168c,002a";
reg = <0x0000 0 0 0 0>;
- mtd-mac-address = <&art 0x120c>;
+ nvmem-cells = <&macaddr_art_120c>;
+ nvmem-cell-names = "mac-address";
qca,no-eeprom;
#gpio-cells = <2>;
gpio-controller;
#trigger-source-cells = <0>;
};
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_120c: macaddr@120c {
+ reg = <0x120c 0x6>;
+ };
+};
};
ð0 {
- mtd-mac-address = <&art 0x1002>;
+ nvmem-cells = <&macaddr_art_1002>;
+ nvmem-cell-names = "mac-address";
};
&pcie {
ath9k: wifi@0,0 {
compatible = "pci168c,0030";
reg = <0x0000 0 0 0 0>;
- mtd-mac-address = <&art 0x1002>;
+ nvmem-cells = <&macaddr_art_1002>;
+ nvmem-cell-names = "mac-address";
qca,no-eeprom;
#gpio-cells = <2>;
gpio-controller;
};
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_1002: macaddr@1002 {
+ reg = <0x1002 0x6>;
+ };
+};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-handle = <&phy4>;
phy-mode = "rgmii-id";
ath9k: wifi@0,0,0 {
compatible = "pci168c,002a";
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>;
qca,no-eeprom;
#gpio-cells = <2>;
gpio-controller;
};
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-handle = <&phy4>;
phy-mode = "rgmii-id";
ath9k: wifi@0,0,0 {
compatible = "pci168c,002a";
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)>;
qca,no-eeprom;
#gpio-cells = <2>;
gpio-controller;
};
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
compatible = "pci168c,002a";
reg = <0x0000 0 0 0 0>;
qca,no-eeprom;
- mtd-mac-address = <&config 0x66>;
+ nvmem-cells = <&macaddr_config_66>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
};
ð0 {
status = "okay";
- mtd-mac-address = <&config 0x66>;
+ nvmem-cells = <&macaddr_config_66>;
+ nvmem-cell-names = "mac-address";
pll-data = <0x02000000 0x00000101 0x00001313>;
ð1 {
status = "okay";
- mtd-mac-address = <&config 0x66>;
+ nvmem-cells = <&macaddr_config_66>;
+ nvmem-cell-names = "mac-address";
};
&spi {
};
};
};
+
+&config {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_66: macaddr@66 {
+ reg = <0x66 0x6>;
+ };
+};
#gpio-cells = <2>;
gpio-controller;
qca,no-eeprom;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
};
};
status = "okay";
phy-mode = "rgmii";
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
phy-handle = <&phy0>;
fixed-link {
full-duplex;
};
};
+
+&uboot {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_1fc00: macaddr@1fc00 {
+ reg = <0x1fc00 0x6>;
+ };
+};
phy-handle = <&phy0>;
phy-mode = "rgmii";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
fixed-link {
speed = <1000>;
full-duplex;
};
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
phy-mode = "rgmii-rxid";
pll-data = <0x16000000 0x00000101 0x00001313>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-handle = <&phy0>;
fixed-link {
full-duplex;
};
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
ð1 {
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>;
+ };
};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
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>;
+ };
};
status = "disabled";
phy-mode = "rgmii";
- mtd-mac-address = <&art 0x1120c>;
+ nvmem-cells = <&macaddr_art_1120c>;
+ nvmem-cell-names = "mac-address";
fixed-link {
speed = <1000>;
resets = <&rst 13>;
reset-names = "mac";
qca,mac-idx = <1>;
- mtd-mac-address = <&art 0x1120c>;
+ nvmem-cells = <&macaddr_art_1120c>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
&usb_phy {
status = "okay";
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_1120c: macaddr@1120c {
+ reg = <0x1120c 0x6>;
+ };
+};
ð0 {
status = "okay";
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
phy-handle = <&phy12>;
};
status = "okay";
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>;
+ };
};
status = "okay";
phy-mode = "rgmii";
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
fixed-link {
speed = <1000>;
status = "okay";
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>;
+ };
};
status = "okay";
phy-mode = "rmii";
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
fixed-link {
speed = <100>;
&wmac {
status = "okay";
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>;
+ };
};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
status = "okay";
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>;
+ };
};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
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>;
+ };
+};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x1002>;
+ nvmem-cells = <&macaddr_art_1002>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
status = "okay";
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>;
+ };
};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
- mtd-mac-address-increment = <2>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <2>;
};
&wmac {
mtd-cal-data = <&art 0x1000>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
ð1 {
status = "okay";
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
status = "okay";
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>;
+ };
+};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
mtd-cal-data = <&art 0x1000>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
ð1 {
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 = <0x40>;
};
mtd-cal-data = <&art 0x1000>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_1002: macaddr@1002 {
+ reg = <0x1002 0x6>;
+ };
+};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
status = "okay";
mtd-cal-data = <&art 0x1000>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
ð1 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
mtd-cal-data = <&art 0x1000>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
mtd-cal-data = <&art 0x1000>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
ð0 {
status = "okay";
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
gmac-config {
ð1 {
status = "okay";
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
&usb_phy {
status = "okay";
};
+
+&uboot {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_1fc00: macaddr@1fc00 {
+ reg = <0x1fc00 0x6>;
+ };
+};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
mtd-cal-data = <&art 0x1000>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_6: macaddr@6 {
+ reg = <0x6 0x6>;
+ };
+};
ð0 {
status = "okay";
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
&wmac {
status = "okay";
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>;
+ };
};
ð0 {
status = "okay";
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
&wmac {
status = "okay";
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>;
+ };
};
ð0 {
status = "okay";
- mtd-mac-address = <&config 0x0>;
+ nvmem-cells = <&macaddr_config_0>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
status = "okay";
- mtd-mac-address = <&config 0x0>;
- mtd-mac-address-increment = <1>;
+ nvmem-cells = <&macaddr_config_0>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
};
&spi {
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&config 0x0>;
- mtd-mac-address-increment = <2>;
+ nvmem-cells = <&macaddr_config_0>;
+ 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>;
+ };
};
ð0 {
status = "okay";
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
status = "okay";
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>;
+ };
};
ð0 {
status = "okay";
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
status = "okay";
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>;
+ };
};
ð0 {
status = "okay";
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
status = "okay";
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>;
+ };
};
ð0 {
status = "okay";
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
gmac-config {
ð1 {
status = "okay";
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
status = "okay";
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>;
+ };
};
};
ð1 {
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
mtd-cal-data = <&art 0x1000>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
phy-handle = <&swphy0>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
mtd-cal-data = <&art 0x1000>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
phy-handle = <&swphy4>;
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
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>;
+ };
+};
status = "okay";
phy-handle = <&swphy0>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
phy-handle = <&swphy4>;
pll-data = <0x06000000 0x00000101 0x00001616>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
switch-phy-swap = <1>;
};
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
ð0 {
status = "okay";
phy-handle = <&swphy4>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
status = "okay";
mtd-cal-data = <&art 0x1000>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
phy-handle = <&swphy0>;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
status = "okay";
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>;
+ };
};
/* default for ar934x, except for 1000M and 10M */
pll-data = <0x06000000 0x00000101 0x00001313>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-mode = "rgmii";
phy-handle = <&phy0>;
mtd-cal-data = <&art 0x1000>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
/* default for ar934x, except for 1000M and 10M */
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-handle = <&phy4>;
rxdv-delay = <3>;
};
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
/* default for ar934x, except for 1000M and 10M */
pll-data = <0x06000000 0x00000101 0x00001313>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-mode = "rgmii";
phy-handle = <&phy0>;
rxdv-delay = <2>;
};
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
};
ð0 {
- 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>;
+ };
};
compatible = "pci168c,0030";
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>;
};
};
&wmac {
status = "okay";
- mtd-mac-address = <&hw_info 0x0>;
+ nvmem-cells = <&macaddr_hw_info_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
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-handle = <&phy0>;
rxdv-delay = <1>;
};
};
+
+&hw_info {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_hw_info_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-handle = <&swphy4>;
};
ð1 {
status = "okay";
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
};
&ref {
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>;
+ };
+};
ð0 {
status = "okay";
phy-handle = <&swphy0>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
ð1 {
status = "okay";
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
status = "okay";
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>;
+ };
+};
pll-data = <0x06000000 0x00000101 0x00001616>;
- mtd-mac-address = <&uboot 0x2e010>;
+ nvmem-cells = <&macaddr_uboot_2e010>;
+ nvmem-cell-names = "mac-address";
phy-mode = "rgmii";
phy-handle = <&phy0>;
};
+
+&uboot {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_2e010: macaddr@2e010 {
+ reg = <0x2e010 0x6>;
+ };
+};
pll-data = <0x02000000 0x00000101 0x00001616>;
- mtd-mac-address = <&art 0x1002>;
+ nvmem-cells = <&macaddr_art_1002>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
phy-mode = "rgmii";
>;
};
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_1002: macaddr@1002 {
+ reg = <0x1002 0x6>;
+ };
+};
};
ð0 {
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-2)>;
};
&pcie {
wifi@0,0,0 {
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
};
&wmac {
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
};
ð0 {
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
&pcie {
wifi@0,0,0 {
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-2)>;
};
};
&wmac {
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
/* default for ar934x, except for 1000M */
pll-data = <0x06000000 0x00000101 0x00001616>;
- mtd-mac-address = <&caldata 0x0>;
+ nvmem-cells = <&macaddr_caldata_0>;
+ nvmem-cell-names = "mac-address";
phy-mode = "rgmii";
phy-handle = <&phy0>;
&wmac {
status = "okay";
- mtd-mac-address = <&caldata 0x0>;
+ nvmem-cells = <&macaddr_caldata_0>;
+ nvmem-cell-names = "mac-address";
qca,no-eeprom;
};
ath9k: wifi@0,0 {
compatible = "pci168c,0033";
reg = <0x0000 0 0 0 0>;
- mtd-mac-address = <&caldata 0xc>;
+ nvmem-cells = <&macaddr_caldata_c>;
+ nvmem-cell-names = "mac-address";
qca,no-eeprom;
#gpio-cells = <2>;
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>;
+ };
+};
ath9k: wifi@0,0 {
compatible = "pci168c,0030";
reg = <0x0000 0 0 0 0>;
- mtd-mac-address = <&art 0xc>;
+ nvmem-cells = <&macaddr_art_c>;
+ nvmem-cell-names = "mac-address";
qca,no-eeprom;
#gpio-cells = <2>;
gpio-controller;
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
};
&mdio0 {
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-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>;
+ };
+};
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-handle = <&phy0>;
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
compatible = "pci168c,0030";
reg = <0x0000 0 0 0 0>;
qca,no-eeprom;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <8>;
};
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
phy-handle = <&swphy4>;
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
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>;
+ };
+};
ath9k: wifi@0,0 {
compatible = "168c,0030";
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)>;
mtd-cal-data = <&art 0x5000>;
qca,no-eeprom;
qca,disable-2ghz;
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
/* default for ar934x, except for 1000M */
pll-data = <0x06000000 0x00000101 0x00001616>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-mode = "rgmii";
phy-handle = <&phy0>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
ath9k: wifi@0,0 {
compatible = "pci168c,0030";
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-controller;
};
/* default for ar934x, except for 1000M */
pll-data = <0x06000000 0x00000101 0x00001616>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-mode = "rgmii";
phy-handle = <&phy0>;
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>;
+ };
+};
phy-handle = <&swphy4>;
- mtd-mac-address = <&pridata 0x400>;
+ nvmem-cells = <&macaddr_pridata_400>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
ð1 {
status = "okay";
- mtd-mac-address = <&pridata 0x400>;
+ nvmem-cells = <&macaddr_pridata_400>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
reg = <0x070000 0xf90000>;
};
};
+
+&pridata {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_pridata_400: macaddr@400 {
+ reg = <0x400 0x6>;
+ };
+};
phy-handle = <&swphy4>;
- mtd-mac-address = <&pridata 0x400>;
+ nvmem-cells = <&macaddr_pridata_400>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
ð1 {
status = "okay";
- mtd-mac-address = <&pridata 0x400>;
+ nvmem-cells = <&macaddr_pridata_400>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
reg = <0x070000 0x790000>;
};
};
+
+&pridata {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_pridata_400: macaddr@400 {
+ reg = <0x400 0x6>;
+ };
+};
pll-data = <0x06000000 0x00000101 0x00001616>;
- mtd-mac-address = <&pridata 0x400>;
+ nvmem-cells = <&macaddr_pridata_400>;
+ nvmem-cell-names = "mac-address";
phy-mode = "rgmii";
phy-handle = <&phy0>;
reg = <0x070000 0xf90000>;
};
};
+
+&pridata {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_pridata_400: macaddr@400 {
+ reg = <0x400 0x6>;
+ };
+};
pll-data = <0x06000000 0x00000101 0x00001616>;
- mtd-mac-address = <&pridata 0x400>;
+ nvmem-cells = <&macaddr_pridata_400>;
+ nvmem-cell-names = "mac-address";
phy-mode = "rgmii";
phy-handle = <&phy0>;
reg = <0x070000 0x790000>;
};
};
+
+&pridata {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_pridata_400: macaddr@400 {
+ reg = <0x400 0x6>;
+ };
+};
phy-handle = <&swphy0>;
- mtd-mac-address = <&art 0x1002>;
+ nvmem-cells = <&macaddr_art_1002>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
gmac-config {
ð1 {
status = "okay";
- mtd-mac-address = <&art 0x1002>;
+ nvmem-cells = <&macaddr_art_1002>;
+ nvmem-cell-names = "mac-address";
};
&gpio {
mtd-cal-data = <&art 0x1000>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_1002: macaddr@1002 {
+ reg = <0x1002 0x6>;
+ };
+};
phy-handle = <&swphy4>;
- mtd-mac-address = <&config 0x0>;
+ nvmem-cells = <&macaddr_config_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
ð1 {
status = "okay";
- mtd-mac-address = <&config 0x0>;
+ nvmem-cells = <&macaddr_config_0>;
+ nvmem-cell-names = "mac-address";
};
&builtin_switch {
pinctrl-single,bits = <0x0 0x002e0000 0x00ff0000>;
};
};
+
+&config {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
phy-handle = <&swphy4>;
- mtd-mac-address = <&config 0x0>;
+ nvmem-cells = <&macaddr_config_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
ð1 {
status = "okay";
- mtd-mac-address = <&config 0x0>;
+ nvmem-cells = <&macaddr_config_0>;
+ nvmem-cell-names = "mac-address";
};
&builtin_switch {
<0x14 0x08 0xff>;
};
};
+
+&config {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&config 0x0>;
+ nvmem-cells = <&macaddr_config_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
};
<0x3c 0x000b0000 0x00ff0000>;
};
};
+
+&config {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
};
ð0 {
phy-handle = <&swphy4>;
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
line-name = "tp-link:ext:lna1";
};
};
+
+&info {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_info_8: macaddr@8 {
+ reg = <0x8 0x6>;
+ };
+};
};
ð1 {
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
switch-only-mode = <1>;
};
};
+
+&info {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_info_8: macaddr@8 {
+ reg = <0x8 0x6>;
+ };
+};
};
&ath9k {
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
&wmac {
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
status = "okay";
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
gmac-config {
phy-handle = <&swphy4>;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
};
+
+&uboot {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_1fc00: macaddr@1fc00 {
+ reg = <0x1fc00 0x6>;
+ };
+};
};
&ath9k {
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
/* default for ar934x, except for 1000M */
pll-data = <0x06000000 0x00000101 0x00001616>;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
phy-mode = "rgmii";
phy-handle = <&phy0>;
};
+
+&uboot {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_1fc00: macaddr@1fc00 {
+ reg = <0x1fc00 0x6>;
+ };
+};
pll-data = <0x6000000 0x101 0x1616>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-mode = "rgmii";
phy-handle = <&phy0>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
compatible = "pci168c,0030";
reg = <0x0000 0 0 0 0>;
qca,no-eeprom;
- mtd-mac-address = <&addr 0x0>;
+ nvmem-cells = <&macaddr_addr_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <0x10>;
#gpio-cells = <2>;
gpio-controller;
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&addr 0x0>;
+ nvmem-cells = <&macaddr_addr_0>;
+ nvmem-cell-names = "mac-address";
};
&mdio0 {
pll-data = <0xe000000 0x04000101 0x04001313>;
- mtd-mac-address = <&addr 0x0>;
+ nvmem-cells = <&macaddr_addr_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <0x21>;
phy-mode = "rgmii-rxid";
rxdv-delay = <1>;
};
};
+
+&addr {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_addr_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
ð0 {
status = "okay";
phy-handle = <&swphy4>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
status = "okay";
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
};
&spi {
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>;
+ };
+};
phy-handle = <&swphy0>;
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
};
ð1 {
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
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>;
+ };
+};
};
ð0 {
- mtd-mac-address = <&art 0x1002>;
+ nvmem-cells = <&macaddr_art_1002>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-2)>;
};
ð1 {
- mtd-mac-address = <&art 0x1002>;
+ nvmem-cells = <&macaddr_art_1002>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
&pcie0 {
status = "okay";
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_1002: macaddr@1002 {
+ reg = <0x1002 0x6>;
+ };
+};
};
ð0 {
- mtd-mac-address = <&art 0x1002>;
+ nvmem-cells = <&macaddr_art_1002>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
#trigger-source-cells = <0>;
};
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_1002: macaddr@1002 {
+ reg = <0x1002 0x6>;
+ };
+};
};
ð0 {
- mtd-mac-address = <&art 0x1002>;
+ nvmem-cells = <&macaddr_art_1002>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-2)>;
};
* (GMAC0 -> eth0, GMAC1 -> eth1, same as in old ar71xx target) */
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)>;
};
debounce-interval = <60>;
};
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_1002: macaddr@1002 {
+ reg = <0x1002 0x6>;
+ };
+};
};
ð1 {
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
&wmac {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mtd-cal-data = <&art 0x1000>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
phy-handle = <&swphy0>;
- mtd-mac-address = <&art 0x1002>;
+ nvmem-cells = <&macaddr_art_1002>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
};
ð1 {
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
&pcie0 {
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>;
+ };
+};
phy-handle = <&swphy4>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
status = "okay";
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>;
+ };
+};
phy-handle = <&swphy4>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
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>;
+ };
+};
phy-handle = <&swphy4>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
ð1 {
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <10>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
phy-handle = <&swphy4>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
ð1 {
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <3>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
phy-handle = <&swphy4>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <10>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
phy-handle = <&swphy4>;
- mtd-mac-address = <&uboot 0x2e010>;
+ nvmem-cells = <&macaddr_uboot_2e010>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
- mtd-mac-address = <&uboot 0x2e018>;
+ nvmem-cells = <&macaddr_uboot_2e018>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
&usb0 {
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>;
+ };
+};
phy-handle = <&swphy4>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
status = "okay";
mtd-cal-data = <&art 0x1000>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
phy-handle = <&swphy4>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
mtd-cal-data = <&art 0x1000>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
phy-handle = <&swphy4>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
mtd-cal-data = <&art 0x1000>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
phy-handle = <&swphy4>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
mtd-cal-data = <&art 0x1000>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
phy-handle = <&swphy4>;
- mtd-mac-address = <&pridata 0x400>;
+ nvmem-cells = <&macaddr_pridata_400>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
ð1 {
- mtd-mac-address = <&pridata 0x400>;
+ nvmem-cells = <&macaddr_pridata_400>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
mtd-cal-data = <&art 0x1000>;
};
+
+&pridata {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_pridata_400: macaddr@400 {
+ reg = <0x400 0x6>;
+ };
+};
phy-handle = <&swphy4>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
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>;
+ };
+};
phy-handle = <&swphy4>;
- mtd-mac-address = <&romfile 0xf100>;
+ nvmem-cells = <&macaddr_romfile_f100>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
ð1 {
- mtd-mac-address = <&romfile 0xf100>;
+ nvmem-cells = <&macaddr_romfile_f100>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&romfile 0xf100>;
+ nvmem-cells = <&macaddr_romfile_f100>;
+ nvmem-cell-names = "mac-address";
};
&pcie0 {
#trigger-source-cells = <0>;
};
};
+
+&romfile {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_romfile_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
+};
phy-handle = <&swphy4>;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
ð1 {
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
};
&usb0 {
&usb_phy {
status = "okay";
};
+
+&uboot {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_1fc00: macaddr@1fc00 {
+ reg = <0x1fc00 0x6>;
+ };
+};
phy-handle = <&swphy0>;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
ð1 {
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
};
&usb0 {
&usb_phy {
status = "okay";
};
+
+&uboot {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_1fc00: macaddr@1fc00 {
+ reg = <0x1fc00 0x6>;
+ };
+};
phy-handle = <&swphy4>;
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
};
&pcie0 {
#trigger-source-cells = <0>;
};
};
+
+&info {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_info_8: macaddr@8 {
+ reg = <0x8 0x6>;
+ };
+};
status = "okay";
phy-handle = <&swphy4>;
- mtd-mac-address = <&env 0xf818>;
+ nvmem-cells = <&macaddr_env_f818>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
* (GMAC0 -> eth0, GMAC1 -> eth1, same as in old ar71xx target) */
compatible = "qca,qca9530-eth", "syscon", "simple-mfd";
- mtd-mac-address = <&env 0xf810>;
+ nvmem-cells = <&macaddr_env_f810>;
+ nvmem-cell-names = "mac-address";
};
&pcie0 {
mtd-cal-data = <&art 0x1000>;
};
+
+&env {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_env_f810: macaddr@f810 {
+ reg = <0xf810 0x6>;
+ };
+
+ macaddr_env_f818: macaddr@f818 {
+ reg = <0xf818 0x6>;
+ };
+};
phy-handle = <&swphy4>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
};
&pcie0 {
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>;
+ };
+};
phy-handle = <&swphy4>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
- mtd-mac-address = <&art 0x1002>;
+ nvmem-cells = <&macaddr_art_1002>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
status = "okay";
mtd-cal-data = <&art 0x1000>;
- 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>;
+ };
+
+ macaddr_art_1002: macaddr@1002 {
+ reg = <0x1002 0x6>;
+ };
};
phy-handle = <&swphy4>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
*/
compatible = "qca,qca9530-eth", "syscon", "simple-mfd";
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
};
+
+&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>;
+ };
+};
phy-handle = <&swphy4>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
*/
compatible = "qca,qca9530-eth", "syscon", "simple-mfd";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
};
ð1 {
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
switch-only-mode = <1>;
};
};
+
+&info {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_info_8: macaddr@8 {
+ reg = <0x8 0x6>;
+ };
+};
phy-handle = <&swphy4>;
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
+};
+
+&info {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_info_8: macaddr@8 {
+ reg = <0x8 0x6>;
+ };
};
phy-handle = <&swphy4>;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
status = "okay";
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>;
+ };
};
phy-handle = <&swphy4>;
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
+};
+
+&info {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_info_8: macaddr@8 {
+ reg = <0x8 0x6>;
+ };
};
phy-handle = <&swphy4>;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
status = "okay";
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>;
+ };
};
phy-handle = <&swphy4>;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
ð1 {
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
status = "okay";
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>;
+ };
};
phy-handle = <&swphy4>;
- mtd-mac-address = <&uboot 0x1fc00>;
- mtd-mac-address-increment = <1>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
};
ð1 {
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
status = "okay";
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>;
+ };
};
phy-handle = <&swphy4>;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
ð1 {
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
status = "okay";
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>;
+ };
};
phy-handle = <&swphy4>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
status = "okay";
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>;
+ };
+};
phy-handle = <&swphy4>;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
ð1 {
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
status = "okay";
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>;
+ };
};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-handle = <&phy0>;
pll-data = <0xa6000000 0x00000101 0x00001616>;
};
ð1 {
status = "okay";
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
pll-data = <0x03000101 0x00000101 0x00001616>;
fixed-link {
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>;
+ };
+};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-mode = "mii";
phy-handle = <&phy0>;
};
pll-data = <0x17000000 0x101 0x1313>;
phy-handle = <&phy1>;
qca955x-sgmii-fixup;
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
#address-cells = <1>;
#size-cells = <0>;
};
+
+&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>;
+ };
+};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-handle = <&phy0>;
pll-data = <0x56000000 0x00000101 0x00001616>;
};
ð1 {
status = "okay";
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
pll-data = <0x03000101 0x00000101 0x00001616>;
fixed-link {
full-duplex;
};
};
+
+&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>;
+ };
+};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-handle = <&phy5>;
phy-mode = "rgmii-id";
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-handle = <&phy1>;
phy-mode = "rgmii-id";
ð1 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
phy-handle = <&phy2>;
qca955x-sgmii-fixup;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-handle = <&phy5>;
phy-mode = "rgmii-id";
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
- qca-no-eeprom;
+};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-handle = <&phy0>;
pll-data = <0xa6000000 0x00000101 0x00001616>;
ð1 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
pll-data = <0x03000101 0x00000101 0x00001616>;
mtd-cal-data = <&art 0x1000>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
ð1 {
status = "okay";
- mtd-mac-address = <&art 0x00>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
phy-handle = <&phy1>;
qca955x-sgmii-fixup;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
ð1 {
status = "okay";
- mtd-mac-address = <&art 0x00>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
phy-handle = <&phy1>;
qca955x-sgmii-fixup;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x00>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-handle = <&phy4>;
gmac_config: gmac-config {
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&art 0x00>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-2)>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
pll-data = <0x56000000 0x00000101 0x00001616>;
phy-handle = <&phy0>;
};
ð1 {
status = "okay";
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
pll-data = <0x03000101 0x00000101 0x00001616>;
fixed-link {
speed = <1000>;
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&art 0xc>;
+ nvmem-cells = <&macaddr_art_c>;
+ 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>;
+ };
+
+ macaddr_art_c: macaddr@c {
+ reg = <0xc 0x6>;
+ };
};
status = "okay";
pll-data = <0xa6000000 0x00000101 0x00001616>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-handle = <&phy0>;
};
status = "okay";
pll-data = <0x03000101 0x00000101 0x00001616>;
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
fixed-link {
speed = <1000>;
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&art 0xc>;
+ nvmem-cells = <&macaddr_art_c>;
+ 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>;
+ };
+
+ macaddr_art_c: macaddr@c {
+ reg = <0xc 0x6>;
+ };
};
status = "okay";
mtd-cal-data = <&caldata 0x1000>;
- mtd-mac-address = <&caldata 0x06>;
+ nvmem-cells = <&macaddr_caldata_6>;
+ nvmem-cell-names = "mac-address";
};
&mdio0 {
ð0 {
status = "okay";
- mtd-mac-address = <&caldata 0x00>;
+ nvmem-cells = <&macaddr_caldata_0>;
+ nvmem-cell-names = "mac-address";
phy-handle = <&phy4>;
phy-mode = "rgmii-rxid";
pll-data = <0x86000000 0x80000101 0x80001313>;
};
+
+&caldata {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_caldata_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+
+ macaddr_caldata_6: macaddr@6 {
+ reg = <0x6 0x6>;
+ };
+};
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&art 0x06>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
};
&mdio0 {
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x00>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-handle = <&phy5>;
phy-mode = "rgmii-rxid";
pll-data = <0x8e000000 0x80000101 0x80001313>;
};
+
+&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>;
+ };
+};
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&art 0x06>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
};
&mdio0 {
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x00>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-mode = "rgmii-rxid";
phy-handle = <&phy1>;
ð1 {
status = "okay";
- mtd-mac-address = <&art 0x12>;
+ nvmem-cells = <&macaddr_art_12>;
+ nvmem-cell-names = "mac-address";
phy-handle = <&phy2>;
pll-data = <0x3000101 0x101 0x1313>;
qca955x-sgmii-fixup;
};
+
+&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_12: macaddr@12 {
+ reg = <0x12 0x6>;
+ };
+};
pll-data = <0x82000101 0x80000101 0x80001313>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-mode = "rgmii-id";
phy-handle = <&phy1>;
pll-data = <0x03000101 0x80000101 0x80001313>;
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
qca955x-sgmii-fixup;
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&art 0x0>;
- mtd-mac-address-increment = <2>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <2>;
};
&pcie0 {
status = "okay";
};
+
+&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>;
+ };
+};
pll-data = <0x82000000 0x80000101 0x80001313>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-mode = "rgmii-id";
phy-handle = <&phy5>;
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
&pcie0 {
status = "okay";
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
wifi@0,0 {
compatible = "pci168c,0033";
reg = <0x0000 0 0 0 0>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <16>;
};
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
wifi@0,0 {
compatible = "pci168c,0033";
reg = <0x0000 0 0 0 0>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <16>;
};
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
phy-handle = <&phy0>;
- mtd-mac-address = <&pridata 0x400>;
+ nvmem-cells = <&macaddr_pridata_400>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
pll-data = <0x03000101 0x00000101 0x00001616>;
- mtd-mac-address = <&pridata 0x400>;
+ nvmem-cells = <&macaddr_pridata_400>;
+ nvmem-cell-names = "mac-address";
fixed-link {
speed = <1000>;
mtd-cal-data = <&art 0x1000>;
};
+
+&pridata {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_pridata_400: macaddr@400 {
+ reg = <0x400 0x6>;
+ };
+};
};
ð0 {
- mtd-mac-address = <&romfs 0xf100>;
+ nvmem-cells = <&macaddr_romfs_f100>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
ð1 {
- mtd-mac-address = <&romfs 0xf100>;
+ nvmem-cells = <&macaddr_romfs_f100>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&romfs 0xf100>;
+ nvmem-cells = <&macaddr_romfs_f100>;
+ nvmem-cell-names = "mac-address";
+};
+
+&romfs {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_romfs_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
};
};
ð0 {
- mtd-mac-address = <&romfs 0xf100>;
+ nvmem-cells = <&macaddr_romfs_f100>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
ð1 {
- mtd-mac-address = <&romfs 0xf100>;
+ nvmem-cells = <&macaddr_romfs_f100>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&romfs 0xf100>;
+ nvmem-cells = <&macaddr_romfs_f100>;
+ nvmem-cell-names = "mac-address";
+};
+
+&romfs {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_romfs_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
};
phy-handle = <&phy4>;
pll-data = <0x9e000000 0x80000101 0x80001313>;
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
gmac-config {
device = <&gmac>;
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
+};
+
+&info {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_info_8: macaddr@8 {
+ reg = <0x8 0x6>;
+ };
};
phy-handle = <&phy4>;
pll-data = <0xa6000000 0x00000101 0x00001616>;
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
+
+&info {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_info_8: macaddr@8 {
+ reg = <0x8 0x6>;
+ };
+};
ath9k: wifi@0,0 {
compatible = "pci168c,0033";
reg = <0x0000 0 0 0 0>;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-2)>;
qca,no-eeprom;
#gpio-cells = <2>;
ð0 {
status = "okay";
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
phy-handle = <&phy0>;
pll-data = <0x56000000 0x00000101 0x00001616>;
ð1 {
status = "okay";
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
pll-data = <0x03000101 0x00000101 0x00001616>;
fixed-link {
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
+
+&uboot {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_1fc00: macaddr@1fc00 {
+ reg = <0x1fc00 0x6>;
+ };
+};
pll-data = <0x56000000 0x00000101 0x00001616>;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
phy-handle = <&phy0>;
};
pll-data = <0x03000101 0x00000101 0x00001616>;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
fixed-link {
speed = <1000>;
&wmac {
status = "okay";
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>;
+ };
};
ð0 {
status = "okay";
phy-mode = "mii";
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
fixed-link {
speed = <100>;
full-duplex;
&wmac {
status = "okay";
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>;
+ };
};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-mode = "sgmii";
phy-handle = <&phy4>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-mode = "sgmii";
phy-handle = <&phy4>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
phy-handle = <&swphy4>;
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
status = "okay";
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
+};
+
+&info {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_info_8: macaddr@8 {
+ reg = <0x8 0x6>;
+ };
};
ð1 {
status = "okay";
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
+};
+
+&info {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_info_8: macaddr@8 {
+ reg = <0x8 0x6>;
+ };
};
status = "okay";
phy-handle = <&swphy4>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
ð1 {
status = "okay";
- mtd-mac-address = <&art 0x6>;
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
+
+&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>;
+ };
+};
pll-data = <0x03000101 0x00000101 0x00001919>;
phy-mode = "sgmii";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-handle = <&phy0>;
};
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&art 0x0>;
- mtd-mac-address-increment = <10>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <10>;
+};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
};
pll-data = <0x03000101 0x00000101 0x00001919>;
- mtd-mac-address = <&uboot 0x2e010>;
+ nvmem-cells = <&macaddr_uboot_2e010>;
+ nvmem-cell-names = "mac-address";
phy-mode = "sgmii";
phy-handle = <&phy0>;
};
mtd-cal-data = <&art 0x1000>;
};
+
+&uboot {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_2e010: macaddr@2e010 {
+ reg = <0x2e010 0x6>;
+ };
+};
status = "okay";
phy-handle = <&phy0>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
&gpio {
mtd-cal-data = <&art 0x1000>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
pll-data = <0x03000101 0x00000101 0x00001919>;
- mtd-mac-address = <&caldata 0x0>;
+ nvmem-cells = <&macaddr_caldata_0>;
+ nvmem-cell-names = "mac-address";
phy-mode = "sgmii";
phy-handle = <&phy0>;
&wmac {
status = "okay";
- mtd-mac-address = <&caldata 0x0>;
+ nvmem-cells = <&macaddr_caldata_0>;
+ nvmem-cell-names = "mac-address";
qca,no-eeprom;
};
/* chip is AR9580, override bogus PCI ID 168c:abcd */
compatible = "pci168c,0033";
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,gpio-mask=<0xf6ff>; /* unmask pin 9 for RFKILL button */
#gpio-cells = <2>;
#trigger-source-cells = <0>;
};
};
+
+&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>;
+ };
+};
phy-mode = "sgmii";
phy-handle = <&phy0>;
- mtd-mac-address = <&pridata 0x400>;
+ nvmem-cells = <&macaddr_pridata_400>;
+ nvmem-cell-names = "mac-address";
};
&usb_phy0 {
mtd-cal-data = <&art 0x1000>;
};
+
+&pridata {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_pridata_400: macaddr@400 {
+ reg = <0x400 0x6>;
+ };
+};
ð0 {
status = "okay";
- mtd-mac-address = <&info 0x0>;
+ nvmem-cells = <&macaddr_info_0>;
+ nvmem-cell-names = "mac-address";
phy-mode = "sgmii";
phy-handle = <&phy0>;
};
#trigger-source-cells = <0>;
};
};
+
+&info {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_info_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
ð0 {
status = "okay";
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
phy-mode = "sgmii";
phy-handle = <&phy0>;
};
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
+};
+
+&info {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_info_8: macaddr@8 {
+ reg = <0x8 0x6>;
+ };
};
pll-data = <0x03000101 0x00000101 0x00001919>;
phy-mode = "sgmii";
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
phy-handle = <&phy0>;
};
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
+};
+
+&info {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_info_8: macaddr@8 {
+ reg = <0x8 0x6>;
+ };
};
phy-handle = <&phy0>;
phy-mode = "sgmii";
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
+};
+
+&info {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_info_8: macaddr@8 {
+ reg = <0x8 0x6>;
+ };
};
phy-mode = "sgmii";
pll-data = <0x03000000 0x00000101 0x00001313>;
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
qca956x-serdes-fixup;
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
+};
+
+&info {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_info_8: macaddr@8 {
+ reg = <0x8 0x6>;
+ };
};
};
ð0 {
- mtd-mac-address = <&uboot 0x0fc00>;
+ nvmem-cells = <&macaddr_uboot_fc00>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
- mtd-mac-address = <&uboot 0x0fc00>;
+ nvmem-cells = <&macaddr_uboot_fc00>;
+ nvmem-cell-names = "mac-address";
+};
+
+&uboot {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_fc00: macaddr@fc00 {
+ reg = <0xfc00 0x6>;
+ };
};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-mode = "sgmii";
phy-handle = <&phy4>;
pll-data = <0x03000000 0x00000101 0x00001313>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
ð0 {
status = "okay";
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-handle = <&phy0>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
phy-mode = "sgmii";
phy-handle = <&phy0>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
&pcie {
status = "okay";
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
pll-data = <0x03000101 0x00000101 0x00001919>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-mode = "sgmii";
phy-handle = <&phy0>;
};
mtd-cal-data = <&art 0x1000>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};
};
ð1 {
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
+
+&uboot {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_1fc00: macaddr@1fc00 {
+ reg = <0x1fc00 0x6>;
+ };
+};
};
ð1 {
- 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>;
+ };
};
};
ð1 {
- 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>;
+ };
};
phy-handle = <&swphy0>;
- mtd-mac-address = <&config 0x8>;
- mtd-mac-address-increment = <1>;
+ nvmem-cells = <&macaddr_config_8>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
};
ð1 {
status = "okay";
- mtd-mac-address = <&config 0x8>;
+ nvmem-cells = <&macaddr_config_8>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
status = "okay";
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&config 0x8>;
+ nvmem-cells = <&macaddr_config_8>;
+ nvmem-cell-names = "mac-address";
+};
+
+&config {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_8: macaddr@8 {
+ reg = <0x8 0x6>;
+ };
};
phy-handle = <&swphy4>;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
status = "okay";
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>;
+ };
};