ath79: add Embedded Wireless Balin Platform
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9132_tplink_tl-wr941-v2.dts
index 80677fa894643ff2e1ab1299973b7d9a04bdadb1..58586eb03615b3ef959631824fcead21e077e12b 100644 (file)
@@ -1,11 +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"
-
 / {
        compatible = "tplink,tl-wr941-v2", "qca,ar9132";
        model = "TP-Link TL-WR941N/ND v2/v3";
        keys {
                compatible = "gpio-keys";
 
-               button0 {
+               reset {
                        label = "reset";
                        linux,code = <KEY_RESTART>;
                        gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
                        debounce-interval = <60>;
                };
 
-               button1 {
+               qss {
                        label = "qss";
                        linux,code = <KEY_WPS_BUTTON>;
                        gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
                compatible = "gpio-leds";
 
                led_system: system {
-                       label = "tp-link:green:system";
+                       label = "green:system";
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                };
 
                qss_r {
-                       label = "tp-link:red:qss";
+                       label = "red:qss";
                        gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
                };
 
                qss_g {
-                       label = "tp-link:green:qss";
+                       label = "green:qss";
                        gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
                };
 
                wlan {
-                       label = "tp-link:green:wlan";
+                       label = "green:wlan";
                        gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
        };
+};
 
-       dsa {
-               compatible = "marvell,dsa";
-               #address-cells = <1>;
-               #size-cells = <0>;
+&mdio0 {
+       status = "okay";
 
-               dsa,mii-bus = <&mdio0>;
-               dsa,ethernet = <&eth0>;
+       switch@0 {
+               compatible = "marvell,mv88e6060";
+               reg = <0>;
 
-               switch@0 {
+               ports {
                        #address-cells = <1>;
                        #size-cells = <0>;
-                       reg = <0>;
 
                        port@0 {
                                reg = <0>;
                        port@5 {
                                reg = <5>;
                                label = "cpu";
+                               ethernet = <&eth0>;
                        };
                };
        };
 };
 
-&uart {
-       status = "okay";
-};
-
 &spi {
        status = "okay";
 
        };
 };
 
-&mdio0 {
-       status = "okay";
-};
-
 &eth0 {
        status = "okay";
 
        phy-mode = "rmii";
-       mtd-mac-address = <&uboot 0x1fc00>;
+       nvmem-cells = <&macaddr_uboot_1fc00>;
+       nvmem-cell-names = "mac-address";
 
        fixed-link {
                speed = <100>;
 &wmac {
        status = "okay";
        mtd-cal-data = <&art 0x1000>;
-       mtd-mac-address = <&uboot 0x1fc00>;
+       nvmem-cells = <&macaddr_uboot_1fc00>;
+       nvmem-cell-names = "mac-address";
+};
+
+&uboot {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_uboot_1fc00: macaddr@1fc00 {
+               reg = <0x1fc00 0x6>;
+       };
 };