ath79: fix leds description for EnGenius EPG5000
[oweals/openwrt.git] / target / linux / ath79 / dts / ar7242_tplink_tl-wr2543-v1.dts
index d7bb406ab099dd8ed63e88ed33f139a4b8fc3bbe..c42207e6cffb2c3f20b574ace30c1a5d81929a20 100644 (file)
@@ -8,10 +8,13 @@
 
 / {
        compatible = "tplink,tl-wr2543-v1", "qca,ar7242";
-       model = "TP-LINK TL-WR2543N/ND";
+       model = "TP-Link TL-WR2543N/ND";
 
        aliases {
-               led-status = &system;
+               led-boot = &system;
+               led-failsafe = &system;
+               led-running = &system;
+               led-upgrade = &system;
        };
 
        chosen {
                clock-frequency = <40000000>;
        };
 
-       gpio-keys {
+       keys {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
 
                reset {
                system: wps {
                        label = "tplink:green:wps";
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
-                       default-state = "off";
                };
 
                usb {
                        label = "tplink:green:usb";
                        gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
-                       default-state = "off";
                        trigger-sources = <&hub_port>;
                        linux,default-trigger = "usbport";
                };
                wlan2g {
                        label = "tplink:green:wlan2g";
                        gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
-                       default-state = "off";
                        linux,default-trigger = "phy0tpt";
                };
 
                wlan5g {
                        label = "tplink:green:wlan5g";
                        gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
-                       default-state = "off";
                        linux,default-trigger = "phy0tpt";
                };
-
        };
 
        rtl8367 {
@@ -89,6 +85,8 @@
                realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
 
                mdio-bus {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
                        status = "okay";
 
                        phy0: ethernet-phy@0 {
        num-cs = <1>;
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <25000000>;
                        };
 
                        partition@20000 {
+                               compatible = "tplink,firmware";
                                label = "firmware";
                                reg = <0x020000 0x7d0000>;
                        };
 };
 
 &usb {
+       #address-cells = <1>;
+       #size-cells = <0>;
        status = "okay";
 
        hub_port: port@1 {
 &pcie {
        status = "okay";
 
-       ath9k: wifi@0 {
+       ath9k: wifi@0,0 {
                reg = <0x0000 0 0 0 0>;
                #gpio-cells = <2>;
                gpio-controller;