summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2014-05-21 10:45:00 +0200
committerMaxime Coquelin <maxime.coquelin@st.com>2014-05-21 14:27:16 +0200
commit106e6fb87ff8244377c486da0c8f3fe98691acb0 (patch)
tree895c49c14f889c54b1050d20ae0793ff3b53ad68
parent7c0e06b25470bc6009b25a2c2988dc452def8b14 (diff)
ARM: sti: stih416: Enable board LED support for B2020 RevE
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> Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com>
-rw-r--r--arch/arm/boot/dts/stih416-b2020-revE.dts14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/stih416-b2020-revE.dts b/arch/arm/boot/dts/stih416-b2020-revE.dts
index da3c1c4239ea..ba0fa2caaf18 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@fef08000 {
snps,reset-gpio = <&PIO0 7>;
};