[source] brcm63xx: CPVA502+: fix LEDs and buttons at DTS

LEDE Commits lede-commits at lists.infradead.org
Tue Feb 28 04:19:42 PST 2017


jogo pushed a commit to source.git, branch master:
https://git.lede-project.org/dc3537415ce01ec4c69500919aa03f5de19a10a3

commit dc3537415ce01ec4c69500919aa03f5de19a10a3
Author: Daniel Gonzalez Cabanelas <dgcbueu at gmail.com>
AuthorDate: Tue Feb 14 16:36:45 2017 +0100

    brcm63xx: CPVA502+: fix LEDs and buttons at DTS
    
    Leds are wrong and a button is missing, fix them.
    
    Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu at gmail.com>
---
 target/linux/brcm63xx/dts/cpva502plus.dts | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)

diff --git a/target/linux/brcm63xx/dts/cpva502plus.dts b/target/linux/brcm63xx/dts/cpva502plus.dts
index 6d9b5d3..3ddc459 100644
--- a/target/linux/brcm63xx/dts/cpva502plus.dts
+++ b/target/linux/brcm63xx/dts/cpva502plus.dts
@@ -12,17 +12,31 @@
 		bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
 	};
 
+	gpio-keys-polled {
+		compatible = "gpio-keys-polled";
+		#address-cells = <1>;
+		#size-cells = <0>;
+		poll-interval = <20>;
+		debounce-interval = <60>;
+
+		reset {
+			label = "reset";
+			gpios = <&gpio1 4 1>;
+			linux,code = <KEY_RESTART>;
+		};
+	};
+
 	gpio-leds {
 		compatible = "gpio-leds";
 
-		power_green {
+		phone_green {
 			label = "CPVA502+:green:phone";
 			gpios = <&gpio0 0 1>;
 		};
 
-		status {
+		link_amber {
 			label = "CPVA502+:amber:link";
-			gpios = <&gpio0 1 1>;
+			gpios = <&gpio0 5 1>;
 		};
 	};
 };



More information about the lede-commits mailing list