From: Lee Jones Date: Wed, 21 May 2014 08:45:00 +0000 (+0200) Subject: ARM: sti: stih416: Enable board LED support for B2020 RevE X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=106e6fb87ff8244377c486da0c8f3fe98691acb0;p=linux.git 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 Signed-off-by: Maxime Coquelin --- diff --git a/arch/arm/boot/dts/stih416-b2020-revE.dts b/arch/arm/boot/dts/stih416-b2020-revE.dts index da3c1c4239ea4..ba0fa2caaf185 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>; };