diff options
author | Benjamin Gaignard <benjamin.gaignard@st.com> | 2018-02-27 16:53:43 +0300 |
---|---|---|
committer | Alexandre Torgue <alexandre.torgue@st.com> | 2018-02-27 16:53:51 +0300 |
commit | 6ce12a74632e5583d8cf07fbf1b935c75de36bd3 (patch) | |
tree | eb21a0873c09c33eef03d491793e76de167e5dae /arch/arm/boot/dts/stm32f469-disco.dts | |
parent | 9137b8498c6252e0548eb2f61913ed7a03bd2cd9 (diff) | |
download | linux-6ce12a74632e5583d8cf07fbf1b935c75de36bd3.tar.xz |
ARM: dts: stm32: Add leds support to stm32f469 Discovery board
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>
Diffstat (limited to 'arch/arm/boot/dts/stm32f469-disco.dts')
-rw-r--r-- | arch/arm/boot/dts/stm32f469-disco.dts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/boot/dts/stm32f469-disco.dts index 611f9f281ee7..f8b0f1d5aaaa 100644 --- a/arch/arm/boot/dts/stm32f469-disco.dts +++ b/arch/arm/boot/dts/stm32f469-disco.dts @@ -78,6 +78,23 @@ 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"; |