ramips: enable LED VCC for Asus RT-AC51U
authorDavide Fioravanti <pantanastyle@gmail.com>
Sun, 29 Sep 2019 18:52:37 +0000 (20:52 +0200)
committerDavid Bauer <mail@david-bauer.net>
Sun, 6 Oct 2019 19:28:49 +0000 (21:28 +0200)
Previously only the power LED was working.
With this patch all leds except 5GHz are working.

Signed-off-by: Davide Fioravanti <pantanastyle@gmail.com>
[rephrased commit title, drop status property]
Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts

index 3e54ffdad271016449a0698dbdb7e052e761d47c..1294357569b20b33b0b62d28363fb7aab56f33a6 100644 (file)
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
-
-       gpio_export {
-               compatible = "gpio-export";
-               #size-cells = <0>;
-
-               enable-leds {
-                       gpio-export,name = "enable-leds";
-                       gpio-export,output = <1>;
-                       gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
-               };
-       };
 };
 
 &spi0 {
        status = "okay";
 };
 
+&gpio0 {
+       enable-leds {
+               gpio-hog;
+               line-name = "enable-leds";
+               output-low;
+               gpios = <10 GPIO_ACTIVE_HIGH>;
+       };
+};
+
 &gpio3 {
        status = "okay";
 };