ARM: sti: stih416: Enable board LED support for B2020 RevE
authorLee Jones <lee.jones@linaro.org>
Wed, 21 May 2014 08:45:00 +0000 (10:45 +0200)
committerMaxime Coquelin <maxime.coquelin@st.com>
Wed, 21 May 2014 12:27:16 +0000 (14:27 +0200)
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>
arch/arm/boot/dts/stih416-b2020-revE.dts

index da3c1c4239ea4a7d601ab1f7f985620259a88bde..ba0fa2caaf1851be88c5c62f18d47f60bb652bc3 100644 (file)
        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>;
                };