]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: stm32: Update LED nodes for stm32 MCU boards
authorPatrice Chotard <patrice.chotard@foss.st.com>
Thu, 13 Nov 2025 15:13:53 +0000 (16:13 +0100)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Tue, 20 Jan 2026 08:44:54 +0000 (09:44 +0100)
Add function porperty for led nodes.
Add LED color property for LED nodes.
Reorder include dt-bindings.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Link: https://lore.kernel.org/r/20251113-upstream_update_led_nodes-v2-2-45090db9e2e5@foss.st.com
Link: https://lore.kernel.org/r/20251113-upstream_update_led_nodes-v2-3-45090db9e2e5@foss.st.com
Link: https://lore.kernel.org/r/20251113-upstream_update_led_nodes-v2-4-45090db9e2e5@foss.st.com
Link: https://lore.kernel.org/r/20251113-upstream_update_led_nodes-v2-5-45090db9e2e5@foss.st.com
Link: https://lore.kernel.org/r/20251113-upstream_update_led_nodes-v2-6-45090db9e2e5@foss.st.com
Link: https://lore.kernel.org/r/20251113-upstream_update_led_nodes-v2-7-45090db9e2e5@foss.st.com
Link: https://lore.kernel.org/r/20251113-upstream_update_led_nodes-v2-10-45090db9e2e5@foss.st.com
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm/boot/dts/st/stm32429i-eval.dts
arch/arm/boot/dts/st/stm32746g-eval.dts
arch/arm/boot/dts/st/stm32f429-disco.dts
arch/arm/boot/dts/st/stm32f469-disco.dts
arch/arm/boot/dts/st/stm32f746-disco.dts
arch/arm/boot/dts/st/stm32f769-disco.dts
arch/arm/boot/dts/st/stm32h747i-disco.dts

index 6ce8d7e5565a6cbcf2d2f99701d28d23185c3519..a138c0ac8e777b0016cfe4b30b2ffbe308562410 100644 (file)
@@ -48,8 +48,9 @@
 /dts-v1/;
 #include "stm32f429.dtsi"
 #include "stm32f429-pinctrl.dtsi"
-#include <dt-bindings/input/input.h>
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/media/video-interfaces.h>
 
 / {
        leds {
                compatible = "gpio-leds";
                led-green {
+                       function = LED_FUNCTION_HEARTBEAT;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpiog 6 1>;
                        linux,default-trigger = "heartbeat";
                };
                led-orange {
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpiog 7 1>;
                };
                led-red {
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpiog 10 1>;
                };
                led-blue {
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpiog 12 1>;
                };
        };
index e9ac37b6eca0e42caca61ef5b515298ee54edaff..78ceec4a948758de2069fc16b6e68b60f5023450 100644 (file)
@@ -45,6 +45,7 @@
 #include "stm32f746-pinctrl.dtsi"
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "STMicroelectronics STM32746g-EVAL board";
        leds {
                compatible = "gpio-leds";
                led-green {
+                       function = LED_FUNCTION_HEARTBEAT;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpiof 10 1>;
                        linux,default-trigger = "heartbeat";
                };
                led-orange {
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&stmfx_pinctrl 17 1>;
                };
                led-red {
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpiob 7 1>;
                };
                led-blue {
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&stmfx_pinctrl 19 1>;
                };
        };
index a3cb4aabdd5add2678eae4ad0770c2e62c62371b..15f92842c8e1ce54a58b6187c91977d4d519e8a4 100644 (file)
 /dts-v1/;
 #include "stm32f429.dtsi"
 #include "stm32f429-pinctrl.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/interrupt-controller/irq.h>
-#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "STMicroelectronics STM32F429i-DISCO board";
        leds {
                compatible = "gpio-leds";
                led-red {
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpiog 14 0>;
                };
                led-green {
+                       function = LED_FUNCTION_HEARTBEAT;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpiog 13 0>;
                        linux,default-trigger = "heartbeat";
                };
index 8a4f8ddd083d40252f1d872fd4e711bc125f4589..f43547ec436d5462f8d1907698c2cd0c89fc2ab9 100644 (file)
@@ -50,6 +50,7 @@
 #include "stm32f469-pinctrl.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "STMicroelectronics STM32F469i-DISCO board";
        leds {
                compatible = "gpio-leds";
                led-green {
+                       function = LED_FUNCTION_HEARTBEAT;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpiog 6 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "heartbeat";
                };
                led-orange {
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpiod 4 GPIO_ACTIVE_LOW>;
                };
                led-red {
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpiod 5 GPIO_ACTIVE_LOW>;
                };
                led-blue {
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpiok 3 GPIO_ACTIVE_LOW>;
                };
        };
index b57dbdce2f405e813cda136de0dbff4ec8b0bce7..2e6086eea6ed9780ff597ce46d1fc612758e653e 100644 (file)
@@ -46,6 +46,7 @@
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "STMicroelectronics STM32F746-DISCO board";
@@ -81,6 +82,8 @@
        leds {
                compatible = "gpio-leds";
                led-usr {
+                       function = LED_FUNCTION_HEARTBEAT;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpioi 1 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "heartbeat";
                };
index 535cfdc4681ccf8a7d975a19ec6bfe51642722a0..97c276f81f9aebff408f7e42360b6af9e48b1cc9 100644 (file)
@@ -45,6 +45,7 @@
 #include "stm32f769-pinctrl.dtsi"
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "STMicroelectronics STM32F769-DISCO board";
        leds {
                compatible = "gpio-leds";
                led-usr2 {
+                       function = LED_FUNCTION_HEARTBEAT;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpioj 5 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "heartbeat";
                };
                led-usr1 {
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpioj 13 GPIO_ACTIVE_HIGH>;
                };
                led-usr3 {
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpioa 12 GPIO_ACTIVE_HIGH>;
                };
        };
index 99f0255dae8ece88e63a1027bed6341144fde1d7..bb6649a58bc1f1a60506f0ac3a8072664039a4d0 100644 (file)
@@ -8,6 +8,7 @@
 #include "stm32h7-pinctrl.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "STMicroelectronics STM32H747i-Discovery board";
        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>;
                };
        };