[source] ramips: Archer C50v1: fix LEDs active levels

LEDE Commits lede-commits at lists.infradead.org
Sat Jul 29 00:26:02 PDT 2017


mkresin pushed a commit to source.git, branch lede-17.01:
https://git.lede-project.org/a9439344e71287cb172cf73880f800dc374fc5b7

commit a9439344e71287cb172cf73880f800dc374fc5b7
Author: Thibaut VARENE <hacks at slashdirt.org>
AuthorDate: Fri Jul 28 23:26:40 2017 +0200

    ramips: Archer C50v1: fix LEDs active levels
    
    All LEDs GPIOs are active low on this device.
    
    WAN and POWER states were inverted. Add default state for power.
    
    Tested on Archer C50v1.
    
    Signed-off-by: Thibaut VARENE <hacks at slashdirt.org>
---
 target/linux/ramips/dts/ArcherC50.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/linux/ramips/dts/ArcherC50.dts b/target/linux/ramips/dts/ArcherC50.dts
index abc4dac..294fb5a 100644
--- a/target/linux/ramips/dts/ArcherC50.dts
+++ b/target/linux/ramips/dts/ArcherC50.dts
@@ -22,7 +22,7 @@
 
 		power {
 			label = "c50:green:power";
-			gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
+			gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
 		};
 
 		usb {
@@ -32,7 +32,7 @@
 
 		wan {
 			label = "c50:green:wan";
-			gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
+			gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
 		};
 
 		wan_orange {



More information about the lede-commits mailing list