[openwrt/openwrt] ramips: enable LED VCC for Asus RT-AC51U

LEDE Commits lede-commits at lists.infradead.org
Thu Dec 10 07:41:20 EST 2020


adrian pushed a commit to openwrt/openwrt.git, branch openwrt-19.07:
https://git.openwrt.org/3f5fecfd33d4c1c0bc96b790549ec7dc91e57781

commit 3f5fecfd33d4c1c0bc96b790549ec7dc91e57781
Author: Davide Fioravanti <pantanastyle at gmail.com>
AuthorDate: Sun Sep 29 20:52:37 2019 +0200

    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 at gmail.com>
    [rephrased commit title, drop status property]
    Signed-off-by: David Bauer <mail at david-bauer.net>
    (cherry picked from commit 67d019ac94015707926235a3ac0aa6bb12cee8c2)
---
 target/linux/ramips/dts/RT-AC51U.dts | 20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)

diff --git a/target/linux/ramips/dts/RT-AC51U.dts b/target/linux/ramips/dts/RT-AC51U.dts
index 3e54ffdad2..1294357569 100644
--- a/target/linux/ramips/dts/RT-AC51U.dts
+++ b/target/linux/ramips/dts/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";
 };



More information about the lede-commits mailing list