* [PATCH] ARM: dts: berlin: Add GPIO leds to Google Chromecast
@ 2014-10-03 15:54 Sebastian Hesselbarth
2014-10-20 14:55 ` Sebastian Hesselbarth
0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Hesselbarth @ 2014-10-03 15:54 UTC (permalink / raw)
To: Sebastian Hesselbarth; +Cc: devicetree, linux-arm-kernel, linux-kernel
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>
---
Cc: devicetree@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
---
arch/arm/boot/dts/berlin2cd-google-chromecast.dts | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/arch/arm/boot/dts/berlin2cd-google-chromecast.dts b/arch/arm/boot/dts/berlin2cd-google-chromecast.dts
index bcd81ffc495d..0816890a5c0d 100644
--- a/arch/arm/boot/dts/berlin2cd-google-chromecast.dts
+++ b/arch/arm/boot/dts/berlin2cd-google-chromecast.dts
@@ -11,6 +11,7 @@
/dts-v1/;
#include "berlin2cd.dtsi"
+#include <dt-bindings/gpio/gpio.h>
/ {
model = "Google Chromecast";
@@ -24,6 +25,22 @@
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"; };
--
2.1.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: dts: berlin: Add GPIO leds to Google Chromecast
2014-10-03 15:54 [PATCH] ARM: dts: berlin: Add GPIO leds to Google Chromecast Sebastian Hesselbarth
@ 2014-10-20 14:55 ` Sebastian Hesselbarth
0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Hesselbarth @ 2014-10-20 14:55 UTC (permalink / raw)
Cc: devicetree, linux-arm-kernel, linux-kernel
On 10/03/2014 05:54 PM, Sebastian Hesselbarth wrote:
> 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>
Applied to berlin/dt.
> ---
> arch/arm/boot/dts/berlin2cd-google-chromecast.dts | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
> diff --git a/arch/arm/boot/dts/berlin2cd-google-chromecast.dts b/arch/arm/boot/dts/berlin2cd-google-chromecast.dts
> index bcd81ffc495d..0816890a5c0d 100644
> --- a/arch/arm/boot/dts/berlin2cd-google-chromecast.dts
> +++ b/arch/arm/boot/dts/berlin2cd-google-chromecast.dts
> @@ -11,6 +11,7 @@
> /dts-v1/;
>
> #include "berlin2cd.dtsi"
> +#include <dt-bindings/gpio/gpio.h>
>
> / {
> model = "Google Chromecast";
> @@ -24,6 +25,22 @@
> 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"; };
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-10-20 14:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-03 15:54 [PATCH] ARM: dts: berlin: Add GPIO leds to Google Chromecast Sebastian Hesselbarth
2014-10-20 14:55 ` Sebastian Hesselbarth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).