From: Benjamin Gaignard Date: Tue, 27 Feb 2018 13:43:56 +0000 (+0100) Subject: ARM: dts: stm32: Add leds support to stm32f769 Discovery board X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=639f8ff1130cde363410ff5a5a341e72ae2c05f8;p=openwrt%2Fstaging%2Fblogic.git ARM: dts: stm32: Add leds support to stm32f769 Discovery board Add nodes for the two user leds. Signed-off-by: Benjamin Gaignard Signed-off-by: Alexandre Torgue --- diff --git a/arch/arm/boot/dts/stm32f769-disco.dts b/arch/arm/boot/dts/stm32f769-disco.dts index 9dba286c6d2f..ecaeb603788b 100644 --- a/arch/arm/boot/dts/stm32f769-disco.dts +++ b/arch/arm/boot/dts/stm32f769-disco.dts @@ -44,6 +44,7 @@ #include "stm32f746.dtsi" #include "stm32f769-pinctrl.dtsi" #include +#include / { model = "STMicroelectronics STM32F769-DISCO board"; @@ -62,6 +63,16 @@ serial0 = &usart1; }; + leds { + compatible = "gpio-leds"; + green { + gpios = <&gpioj 5 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + }; + red { + gpios = <&gpioj 13 GPIO_ACTIVE_HIGH>; + }; + }; }; &cec {