aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavide Fioravanti <pantanastyle@gmail.com>2019-09-29 20:52:37 +0200
committerDavid Bauer <mail@david-bauer.net>2019-10-06 21:28:49 +0200
commit67d019ac94015707926235a3ac0aa6bb12cee8c2 (patch)
treee7fa8460446d49c497ad13c7e4aaf68dabeee77c
parent929becbc2dd3e30ad8c7d9ad0b0ce8fe10ee5ca8 (diff)
downloadupstream-67d019ac94015707926235a3ac0aa6bb12cee8c2.tar.gz
upstream-67d019ac94015707926235a3ac0aa6bb12cee8c2.tar.bz2
upstream-67d019ac94015707926235a3ac0aa6bb12cee8c2.zip
ramips: enable LED VCC for Asus RT-AC51U
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>
-rw-r--r--target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts20
1 files changed, 9 insertions, 11 deletions
diff --git a/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts b/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts
index 3e54ffdad2..1294357569 100644
--- a/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts
+++ b/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts
@@ -53,17 +53,6 @@
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 {
@@ -114,6 +103,15 @@
status = "okay";
};
+&gpio0 {
+ enable-leds {
+ gpio-hog;
+ line-name = "enable-leds";
+ output-low;
+ gpios = <10 GPIO_ACTIVE_HIGH>;
+ };
+};
+
&gpio3 {
status = "okay";
};