From: lee.jones@linaro.org (Lee Jones)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 2/3] ARM: sti: stih416: Enable board LED support for B2020 RevE
Date: Wed, 21 May 2014 09:45:23 +0100 [thread overview]
Message-ID: <1400661924-10745-2-git-send-email-lee.jones@linaro.org> (raw)
In-Reply-To: <1400661924-10745-1-git-send-email-lee.jones@linaro.org>
There are two LEDs available on the B2020 RevE board, one red, one
green. In this patch we enable the red one for "heartbeat" and turn
the green one off.
Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
arch/arm/boot/dts/stih416-b2020-revE.dts | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm/boot/dts/stih416-b2020-revE.dts b/arch/arm/boot/dts/stih416-b2020-revE.dts
index da3c1c4..ba0fa2c 100644
--- a/arch/arm/boot/dts/stih416-b2020-revE.dts
+++ b/arch/arm/boot/dts/stih416-b2020-revE.dts
@@ -14,6 +14,20 @@
compatible = "st,stih416-b2020", "st,stih416";
soc {
+ leds {
+ compatible = "gpio-leds";
+ red {
+ #gpio-cells = <1>;
+ label = "Front Panel LED";
+ gpios = <&PIO4 1>;
+ linux,default-trigger = "heartbeat";
+ };
+ green {
+ gpios = <&PIO1 3>;
+ default-state = "off";
+ };
+ };
+
ethernet1: dwmac at fef08000 {
snps,reset-gpio = <&PIO0 7>;
};
--
1.8.3.2
next prev parent reply other threads:[~2014-05-21 8:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-21 8:45 [PATCH v2 1/3] ARM: sti: stih416: Add support for B2020 RevE Lee Jones
2014-05-21 8:45 ` Lee Jones [this message]
2014-05-21 11:26 ` [PATCH v2 2/3] ARM: sti: stih416: Enable board LED " Maxime Coquelin
2014-05-21 8:45 ` [PATCH v2 3/3] ARM: sti: stih41x: Provide a proper header for this DTSI file Lee Jones
2014-05-21 11:26 ` Maxime Coquelin
2014-05-21 11:25 ` [PATCH v2 1/3] ARM: sti: stih416: Add support for B2020 RevE Maxime Coquelin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1400661924-10745-2-git-send-email-lee.jones@linaro.org \
--to=lee.jones@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).