ath79: convert Araknis AN-300-AP-I-N WiFis to nvmem-cells
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9533_tplink_cpexxx.dtsi
index e0505e572475bc5cfa326c23b29f6b7cbbeb0309..3f3fae1dfd70f51dcad7dc2f379d952c22b5b690 100644 (file)
@@ -1,15 +1,11 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include "qca953x.dtsi"
+
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
-#include "qca953x.dtsi"
-
 / {
-       chosen {
-               bootargs = "console=ttyS0,115200n8";
-       };
-
        aliases {
                led-boot = &led_link4;
                led-failsafe = &led_link4;
                compatible = "gpio-leds";
 
                link1 {
-                       label = "tp-link:green:link1";
+                       label = "green:link1";
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
 
                link2 {
-                       label = "tp-link:green:link2";
+                       label = "green:link2";
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
                link3 {
-                       label = "tp-link:green:link3";
+                       label = "green:link3";
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
 
                led_link4: link4 {
-                       label = "tp-link:green:link4";
+                       label = "green:link4";
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
        };
        };
 };
 
-&uart {
-       status = "okay";
-};
-
 &spi {
        status = "okay";
 
-       num-cs = <1>;
-
        flash@0 {
                #address-cells = <1>;
                #size-cells = <1>;
        };
 };
 
-&wmac {
+&eth0 {
        status = "okay";
 
-       mtd-cal-data = <&art 0x1000>;
-       mtd-mac-address = <&info 0x8>;
+       phy-handle = <&swphy4>;
+
+       nvmem-cells = <&macaddr_info_8>;
+       nvmem-cell-names = "mac-address";
 };
 
-&eth0 {
+&wmac {
        status = "okay";
 
-       phy-handle = <&swphy4>;
+       mtd-cal-data = <&art 0x1000>;
+       nvmem-cells = <&macaddr_info_8>;
+       nvmem-cell-names = "mac-address";
+};
 
-       mtd-mac-address = <&info 0x8>;
+&info {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_info_8: macaddr@8 {
+               reg = <0x8 0x6>;
+       };
 };