ath79: apply Engenius ECB1750 style to OpenMesh MR900 RGMII cfg
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7241_tplink.dtsi
index 6cc515b7ccedef434d7400ca452203d765f89e6d..49908066d66dde8ecf52a2993323a40cf076c372 100644 (file)
@@ -1,20 +1,21 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include "ar7241.dtsi"
+
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
-#include "ar7241.dtsi"
-
 / {
        aliases {
-               led-status = &led_system;
+               led-boot = &led_system;
+               led-failsafe = &led_system;
+               led-running = &led_system;
+               led-upgrade = &led_system;
+               label-mac-device = &ath9k;
        };
 
-       gpio-keys-polled {
-               compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
-               poll-interval = <20>;
+       keys {
+               compatible = "gpio-keys";
 
                reset {
                        label = "reset";
                };
        };
 
-       gpio_leds: gpio-leds {
+       leds: leds {
                compatible = "gpio-leds";
 
                led_system: system {
-                       label = "tp-link:green:system";
+                       label = "green:system";
                        gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
                };
 
                qss {
-                       label = "tp-link:green:qss";
+                       label = "green:qss";
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                };
        };
 
 &spi {
        status = "okay";
-       num-cs = <1>;
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
@@ -69,6 +67,7 @@
                        };
 
                        partition@20000 {
+                               compatible = "tplink,firmware";
                                reg = <0x20000 0x3d0000>;
                                label = "firmware";
                        };
@@ -85,7 +84,7 @@
 &pcie {
        status = "okay";
 
-       ath9k: wifi@0 {
+       ath9k: wifi@0,0 {
                reg = <0x0000 0 0 0 0>;
                #gpio-cells = <2>;
                gpio-controller;
 };
 
 &eth1 {
-       status = "okay";
-
        mtd-mac-address = <&uboot 0x1fc00>;
        mtd-mac-address-increment = <1>;
 };
 
-&gpio {
-       status = "okay";
-};
-
 &uart {
        status = "okay";
 };