From 639f8ff1130cde363410ff5a5a341e72ae2c05f8 Mon Sep 17 00:00:00 2001 From: Benjamin Gaignard Date: Tue, 27 Feb 2018 14:43:56 +0100 Subject: [PATCH] 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 --- arch/arm/boot/dts/stm32f769-disco.dts | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 @@ aliases { 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 {