ARM: dts: stm32: Add leds support to stm32f769 Discovery board
authorBenjamin Gaignard <benjamin.gaignard@st.com>
Tue, 27 Feb 2018 13:43:56 +0000 (14:43 +0100)
committerAlexandre Torgue <alexandre.torgue@st.com>
Tue, 27 Feb 2018 13:57:14 +0000 (14:57 +0100)
Add nodes for the two user leds.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
arch/arm/boot/dts/stm32f769-disco.dts

index 9dba286c6d2fe8ad68309dbc698eafaf1962f0eb..ecaeb603788bc82ac44d6df248a4584439a49f41 100644 (file)
@@ -44,6 +44,7 @@
 #include "stm32f746.dtsi"
 #include "stm32f769-pinctrl.dtsi"
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/gpio/gpio.h>
 
 / {
        model = "STMicroelectronics STM32F769-DISCO board";
                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 {