]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: dts: berlin: Add GPIO leds to Google Chromecast
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Tue, 20 May 2014 19:57:45 +0000 (21:57 +0200)
committerSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Wed, 29 Oct 2014 18:44:41 +0000 (19:44 +0100)
With GPIO support for Marvell Berlin, now add the two gpio-connected
LEDs on Google Chromecast.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
arch/arm/boot/dts/berlin2cd-google-chromecast.dts

index bcd81ffc495d7d58f4ba35c70f021946bedfac4b..0816890a5c0dec92fd8222486d97c145b8ba3800 100644 (file)
@@ -11,6 +11,7 @@
 /dts-v1/;
 
 #include "berlin2cd.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 
 / {
        model = "Google Chromecast";
                device_type = "memory";
                reg = <0x00000000 0x20000000>; /* 512 MB */
        };
+
+       leds {
+               compatible = "gpio-leds";
+
+               white {
+                       label = "white";
+                       gpios = <&portc 1 GPIO_ACTIVE_HIGH>;
+                       default-state = "keep";
+               };
+
+               red {
+                       label = "red";
+                       gpios = <&portc 2 GPIO_ACTIVE_HIGH>;
+                       default-state = "keep";
+               };
+       };
 };
 
 &uart0 { status = "okay"; };