]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: stm32: Add LED support for stm32h743i-eval
authorPatrice Chotard <patrice.chotard@foss.st.com>
Thu, 13 Nov 2025 15:14:00 +0000 (16:14 +0100)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Tue, 20 Jan 2026 08:45:28 +0000 (09:45 +0100)
Add green and red LEDs support for stm32h743-eval.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Link: https://lore.kernel.org/r/20251113-upstream_update_led_nodes-v2-9-45090db9e2e5@foss.st.com
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm/boot/dts/st/stm32h743i-eval.dts

index 4b0ced27b80eae1a116b60ae2fba0536b1236075..4b3e0c5a90095f49e56c718af9534c70d613184a 100644 (file)
@@ -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-EVAL board";
                serial0 = &usart1;
        };
 
+       led {
+               compatible = "gpio-leds";
+               led-green {
+                       function = LED_FUNCTION_HEARTBEAT;
+                       color = <LED_COLOR_ID_GREEN>;
+                       gpios = <&gpiof 10 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "heartbeat";
+                       default-state = "off";
+               };
+
+               led-red {
+                       color = <LED_COLOR_ID_RED>;
+                       gpios = <&gpioa 4 GPIO_ACTIVE_LOW>;
+               };
+       };
+
        vdda: regulator-vdda {
                compatible = "regulator-fixed";
                regulator-name = "vdda";