ath79: ZTE MF286[,A,R]: use GPIO19 as ath9k LED
[openwrt/staging/aparcar.git] / target / linux / ath79 / dts / qca9563_zte_mf286.dtsi
index f7cbbb85bd731dff993752861f4c25f93528e5da..76dd7b6be63c1769d4e1bc31a7067918eb999a44 100644 (file)
                        gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
+
+               led-1 {
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_BLUE>;
+                       gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "phy1tpt";
+               };
        };
 
        keys {
        };
 };
 
-&gpio {
-       /* GPIO19 is used as a mask to enable WLAN LED
-        * in stock firmware, which is controlled directly
-        * by 5GHz Wi-Fi chip, which currently is inactive
-        * in OpenWrt
-        */
-       led-wlan {
-               gpio-hog;
-               gpios = <19 GPIO_ACTIVE_LOW>;
-               output-high;
-               line-name = "led:wlan";
-       };
-};
-
 &spi {
        status = "okay";