diff options
| author | Patrice Chotard <patrice.chotard@foss.st.com> | 2025-11-13 16:13:59 +0100 |
|---|---|---|
| committer | Alexandre Torgue <alexandre.torgue@foss.st.com> | 2026-01-20 09:45:28 +0100 |
| commit | f5f2fce8af2a7a8c5f6abd1ccee71998bcd83651 (patch) | |
| tree | 61669eaf2078ff5d761bf4411fed831870def4f9 /arch | |
| parent | e89ae0ec2fb8c29f351dd2790574f3fc22599875 (diff) | |
ARM: dts: stm32: Add LED support for stm32h743i-disco
Add gpio led support for LED green,orange,red and blue
in stm32h743i-disco.dts.
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Link: https://lore.kernel.org/r/20251113-upstream_update_led_nodes-v2-8-45090db9e2e5@foss.st.com
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/arm/boot/dts/st/stm32h743i-disco.dts | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/st/stm32h743i-disco.dts b/arch/arm/boot/dts/st/stm32h743i-disco.dts index 8451a54a9a08..f20266de4e7f 100644 --- a/arch/arm/boot/dts/st/stm32h743i-disco.dts +++ b/arch/arm/boot/dts/st/stm32h743i-disco.dts @@ -43,6 +43,8 @@ /dts-v1/; #include "stm32h743.dtsi" #include "stm32h7-pinctrl.dtsi" +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/leds/common.h> / { model = "STMicroelectronics STM32H743i-Discovery board"; @@ -69,6 +71,31 @@ regulator-max-microvolt = <3300000>; regulator-always-on; }; + + leds { + compatible = "gpio-leds"; + led-green { + function = LED_FUNCTION_HEARTBEAT; + color = <LED_COLOR_ID_GREEN>; + gpios = <&gpioi 12 GPIO_ACTIVE_LOW>; + linux,default-trigger = "heartbeat"; + }; + + led-orange { + color = <LED_COLOR_ID_ORANGE>; + gpios = <&gpioi 13 GPIO_ACTIVE_LOW>; + }; + + led-red { + color = <LED_COLOR_ID_RED>; + gpios = <&gpioi 14 GPIO_ACTIVE_LOW>; + }; + + led-blue { + color = <LED_COLOR_ID_BLUE>; + gpios = <&gpioi 15 GPIO_ACTIVE_LOW>; + }; + }; }; &clk_hse { |
