ath79: qca: convert to nvmem-layout
[openwrt/staging/jow.git] / target / linux / ath79 / dts / qca9563_tplink_archer-a7-v5.dts
index db6e5fb7f3100ecdecfd25e80c42bd3b9598efbe..339891f6da07eab6cb59015b870b3d9d9dcc00be 100644 (file)
@@ -1,11 +1,14 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
 
 #include "qca9563_tplink_archer-x7-v5.dtsi"
 
 / {
        compatible = "tplink,archer-a7-v5", "qca,qca9563";
        model = "TP-Link Archer A7 v5";
+
+       aliases {
+               label-mac-device = &eth0;
+       };
 };
 
 &keys {
                label = "info";
                reg = <0xf40000 0x020000>;
                read-only;
+
+               nvmem-layout {
+                       compatible = "fixed-layout";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       macaddr_info_8: macaddr@8 {
+                               reg = <0x8 0x6>;
+                       };
+               };
        };
 
        config: partition@f60000 {
                read-only;
        };
 };
+
+&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";
+};