* [PATCH] ARM: at91: dts: sama5d4ek: add leds in DT node
@ 2015-02-09 9:40 Josh Wu
2015-03-04 10:54 ` Nicolas Ferre
0 siblings, 1 reply; 2+ messages in thread
From: Josh Wu @ 2015-02-09 9:40 UTC (permalink / raw)
To: linux-arm-kernel
Add the leds DT node in the dts file.
In the leds, d10 is set as heartbeat led.
Signed-off-by: Josh Wu <josh.wu@atmel.com>
---
arch/arm/boot/dts/at91-sama5d4ek.dts | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/arch/arm/boot/dts/at91-sama5d4ek.dts b/arch/arm/boot/dts/at91-sama5d4ek.dts
index 9198b71..0c418be 100644
--- a/arch/arm/boot/dts/at91-sama5d4ek.dts
+++ b/arch/arm/boot/dts/at91-sama5d4ek.dts
@@ -257,4 +257,26 @@
gpio-key,wakeup;
};
};
+
+ leds {
+ compatible = "gpio-leds";
+ status = "okay";
+
+ d8 {
+ label = "d8";
+ /* PE28, conflicts with usart4 rts pin */
+ gpios = <&pioE 28 GPIO_ACTIVE_LOW>;
+ };
+
+ d9 {
+ label = "d9";
+ gpios = <&pioE 9 GPIO_ACTIVE_HIGH>;
+ };
+
+ d10 {
+ label = "d10";
+ gpios = <&pioE 8 GPIO_ACTIVE_LOW>;
+ linux,default-trigger = "heartbeat";
+ };
+ };
};
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] ARM: at91: dts: sama5d4ek: add leds in DT node
2015-02-09 9:40 [PATCH] ARM: at91: dts: sama5d4ek: add leds in DT node Josh Wu
@ 2015-03-04 10:54 ` Nicolas Ferre
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Ferre @ 2015-03-04 10:54 UTC (permalink / raw)
To: linux-arm-kernel
Le 09/02/2015 10:40, Josh Wu a ?crit :
> Add the leds DT node in the dts file.
> In the leds, d10 is set as heartbeat led.
>
> Signed-off-by: Josh Wu <josh.wu@atmel.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
added to at91-4.1-dt branch.
Thanks.
> ---
>
> arch/arm/boot/dts/at91-sama5d4ek.dts | 22 ++++++++++++++++++++++
> 1 file changed, 22 insertions(+)
>
> diff --git a/arch/arm/boot/dts/at91-sama5d4ek.dts b/arch/arm/boot/dts/at91-sama5d4ek.dts
> index 9198b71..0c418be 100644
> --- a/arch/arm/boot/dts/at91-sama5d4ek.dts
> +++ b/arch/arm/boot/dts/at91-sama5d4ek.dts
> @@ -257,4 +257,26 @@
> gpio-key,wakeup;
> };
> };
> +
> + leds {
> + compatible = "gpio-leds";
> + status = "okay";
> +
> + d8 {
> + label = "d8";
> + /* PE28, conflicts with usart4 rts pin */
> + gpios = <&pioE 28 GPIO_ACTIVE_LOW>;
> + };
> +
> + d9 {
> + label = "d9";
> + gpios = <&pioE 9 GPIO_ACTIVE_HIGH>;
> + };
> +
> + d10 {
> + label = "d10";
> + gpios = <&pioE 8 GPIO_ACTIVE_LOW>;
> + linux,default-trigger = "heartbeat";
> + };
> + };
> };
>
--
Nicolas Ferre
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-03-04 10:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-09 9:40 [PATCH] ARM: at91: dts: sama5d4ek: add leds in DT node Josh Wu
2015-03-04 10:54 ` Nicolas Ferre
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).