ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9132_tplink_tl-wa901nd-v2.dts
index 804b71170ee8e4ebffa1d198b956927100f65a79..1857b2b4a6cc86ddb7fca42a183be6d068313efc 100644 (file)
@@ -1,10 +1,10 @@
-// SPDX-License-Identifier: GPL-2.0
-/dts-v1/;
+// SPDX-License-Identifier: GPL-2.0-only
+
+#include "ar9132.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
-
-#include "ar9132.dtsi"
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "tplink,tl-wa901nd-v2", "qca,ar9132";
                label-mac-device = &eth0;
        };
 
-       extosc: ref {
-               compatible = "fixed-clock";
-               #clock-cells = <0>;
-               clock-frequency = <40000000>;
-       };
-
        keys {
                compatible = "gpio-keys";
 
                compatible = "gpio-leds";
 
                led_system: system {
-                       label = "tp-link:green:system";
+                       label = "green:system";
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                };
 
                qss {
-                       label = "tp-link:green:qss";
+                       label = "green:qss";
                        gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
                };
 
                wlan {
-                       label = "tp-link:green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
        };
 };
 
-&uart {
-       status = "okay";
-};
-
-&pll {
-       clocks = <&extosc>;
-};
-
 &spi {
        status = "okay";
 
-       num-cs = <1>;
-
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
                                label = "u-boot";
                                reg = <0x000000 0x020000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_uboot_1fc00: macaddr@1fc00 {
+                                               reg = <0x1fc00 0x6>;
+                                       };
+                               };
                        };
 
                        partition@1 {
 &mdio0 {
        status = "okay";
 
-       phy0: ethernet-phy@c {
+       phy12: ethernet-phy@c {
                reg = <0xc>;
                phy-mode = "mii";
+
+               resets = <&rst 8>;
+               reset-names = "phy";
+
+               reset-assert-us = <10000>;
+               reset-deassert-us = <10000>;
        };
 };
 
 &eth0 {
        status = "okay";
 
-       phy-mode = "mii";
-       mtd-mac-address = <&uboot 0x1fc00>;
+       nvmem-cells = <&macaddr_uboot_1fc00>;
+       nvmem-cell-names = "mac-address";
 
-       phy-handle = <&phy0>;
+       phy-handle = <&phy12>;
 };
 
 &wmac {
        status = "okay";
 
        mtd-cal-data = <&art 0x1000>;
-       mtd-mac-address = <&uboot 0x1fc00>;
+       nvmem-cells = <&macaddr_uboot_1fc00>;
+       nvmem-cell-names = "mac-address";
 };