ath79: convert remaining mtd-mac-address cases to nvmem
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / qca9563_tplink_tl-wr1043nd-v4.dts
index ddb986ffddba0037ede18669d7904a47d38deb68..bf01f06de695727a653ad8ca5085c8c21069e9f6 100644 (file)
@@ -6,6 +6,10 @@
        compatible = "tplink,tl-wr1043nd-v4", "qca,qca9563";
        model = "TP-Link TL-WR1043ND v4";
 
+       aliases {
+               label-mac-device = &wmac;
+       };
+
        gpio-export {
                compatible = "gpio-export";
                #size-cells = <0>;
                #trigger-source-cells = <0>;
        };
 };
+
+&eth0 {
+       nvmem-cells = <&macaddr_info_8>;
+       nvmem-cell-names = "mac-address";
+};
+
+&wmac {
+       mtd-cal-data = <&art 0x1000>;
+
+       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>;
+       };
+};