ath79: fix MAC address assignment for TP-Link ar7241 devices
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_tplink_tl-wpa8630-v1.dts
index 8912e2fc7c211c956e8d5c4f20b42b42c9b67f36..0ccfb42d9acb846ee0f1183ee709453166f723c6 100644 (file)
@@ -1,5 +1,4 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
 
 #include "qca9563_tplink_tl-wpa8630.dtsi"
 
        };
 };
 
-&keys {
-       wifi {
-               label = "WiFi button";
-               linux,code = <KEY_RFKILL>;
-               gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
-               debounce-interval = <60>;
-       };
-};
-
 &partitions {
        uboot: partition@0 {
                label = "u-boot";
 };
 
 &eth0 {
-       mtd-mac-address = <&uboot 0x0fc00>;
+       nvmem-cells = <&macaddr_uboot_fc00>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
-       mtd-mac-address = <&uboot 0x0fc00>;
+       mtd-cal-data = <&art 0x1000>;
+
+       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>;
+       };
 };