ath79: fix/improve LED control for TL-WPA8630 v1/v2
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_tplink_tl-wpa8630.dtsi
index 1f16f9a6174859221dc20d7c31144ef95a48b62b..14602a1c24393f13255b6662e9a85be1cd1064c2 100644 (file)
@@ -25,7 +25,7 @@
 
                leds {
                        label = "LED control button";
-                       linux,code = <BTN_0>;
+                       linux,code = <KEY_LIGHTS_TOGGLE>;
                        gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
                        debounce-interval = <60>;
                };
                        linux,default-trigger = "phy0tpt";
                };
        };
+
+       gpio-export {
+               compatible = "gpio-export";
+
+               led_control {
+                       gpio-export,name = "tp-link:led:control";
+                       gpio-export,output = <0>;
+                       gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
+               };
+       };
 };
 
 &spi {