]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: stm32: Add leds support to stm32f469 Discovery board
authorBenjamin Gaignard <benjamin.gaignard@st.com>
Tue, 27 Feb 2018 13:53:43 +0000 (14:53 +0100)
committerAlexandre Torgue <alexandre.torgue@st.com>
Tue, 27 Feb 2018 13:53:51 +0000 (14:53 +0100)
Add nodes for the four user leds.

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

index 611f9f281ee7fbbb3c6c4203a25dee836c398859..f8b0f1d5aaaa74cac259e45b3f28b9550968cd34 100644 (file)
@@ -78,6 +78,23 @@ soc {
                dma-ranges = <0xc0000000 0x0 0x10000000>;
        };
 
+       leds {
+               compatible = "gpio-leds";
+               green {
+                       gpios = <&gpiog 6 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "heartbeat";
+               };
+               orange {
+                       gpios = <&gpiod 4 GPIO_ACTIVE_LOW>;
+               };
+               red {
+                       gpios = <&gpiod 5 GPIO_ACTIVE_LOW>;
+               };
+               blue {
+                       gpios = <&gpiok 3 GPIO_ACTIVE_LOW>;
+               };
+       };
+
        /* This turns on vbus for otg for host mode (dwc2) */
        vcc5v_otg: vcc5v-otg-regulator {
                compatible = "regulator-fixed";