ath79: improve DTS for TP-Link Archer D50 v1
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 4 Sep 2019 11:51:02 +0000 (13:51 +0200)
committerDavid Bauer <mail@david-bauer.net>
Sun, 6 Oct 2019 20:42:30 +0000 (22:42 +0200)
This addresses several issues in the DTS file:
- add diag LED support
- remove unused node names
- fix whitespace issues

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ath79/dts/qca9531_tplink_archer-d50-v1.dts

index 828e4030193d58712d5ba6d302f1d7f471cc3d3f..e6b5be924436adb0035efc2ab1473189ba633fde 100644 (file)
        model = "TP-Link Archer D50 v1";
 
        aliases {
+               led-boot = &system;
+               led-failsafe = &system;
+               led-running = &system;
+               led-upgrade = &system;
                label-mac-device = &wmac;
        };
 
                bootargs = "console=ttyS0,115200n8";
        };
 
-       gpio_leds: leds {
+       leds {
                compatible = "gpio-leds";
 
-               led_wlan2g: wlan2g {
+               wlan2g {
                        label = "tp-link:white:wlan2g";
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
 
-               led_wlan5g: wlan5g {
+               wlan5g {
                        label = "tp-link:white:wlan5g";
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy1tpt";
                };
 
-               qss_led: qss {
+               qss {
                        label = "tp-link:white:qss";
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                };
@@ -60,7 +64,7 @@
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
 
-               system: system{
+               system: system {
                        label = "tp-link:white:system";
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                        #address-cells = <1>;
                        #size-cells = <1>;
 
-                       uboot:  partition@0 {
+                       partition@0 {
                                label = "u-boot";
                                reg = <0x000000 0x020000>;
                                read-only;