]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: stm32: Add boot-led for stm32mp1 ST boards
authorPatrice Chotard <patrice.chotard@foss.st.com>
Wed, 12 Nov 2025 15:48:13 +0000 (16:48 +0100)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Tue, 20 Jan 2026 08:52:17 +0000 (09:52 +0100)
Add options/u-boot/boot-led property to specify to U-Boot
the LED which indicates a successful boot.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Link: https://lore.kernel.org/r/20251112-upstream_add_boot-led_for_stm32_boards-v1-10-50a3a9b339a8@foss.st.com
Link: https://lore.kernel.org/r/20251112-upstream_add_boot-led_for_stm32_boards-v1-11-50a3a9b339a8@foss.st.com
Link: https://lore.kernel.org/r/20251112-upstream_add_boot-led_for_stm32_boards-v1-12-50a3a9b339a8@foss.st.com
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm/boot/dts/st/stm32mp135f-dk.dts
arch/arm/boot/dts/st/stm32mp157c-ed1.dts
arch/arm/boot/dts/st/stm32mp15xx-dkx.dtsi

index 2549cf604ca3a579948525094a743e928b79cbcd..8dcf68b212b45614c5a9b65e876b85506c7913ab 100644 (file)
@@ -73,7 +73,7 @@
        leds {
                compatible = "gpio-leds";
 
-               led-blue {
+               led_blue: led-blue {
                        function = LED_FUNCTION_HEARTBEAT;
                        color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpioa 14 GPIO_ACTIVE_LOW>;
                };
        };
 
+       options {
+               u-boot {
+                       compatible = "u-boot,config";
+                       boot-led = <&led_blue>;
+               };
+       };
+
        panel_backlight: panel-backlight {
                compatible = "gpio-backlight";
                gpios = <&gpioe 12 GPIO_ACTIVE_HIGH>;
index 6a1c4e5d31a41980febf68acdd5a714941efdd1f..49dd555cc228cb2216fa65c8a962ed93f9033569 100644 (file)
@@ -74,7 +74,7 @@
 
        led {
                compatible = "gpio-leds";
-               led-blue {
+               led_blue: led-blue {
                        gpios = <&gpiod 9 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "heartbeat";
                        default-state = "off";
                };
        };
 
+       options {
+               u-boot {
+                       compatible = "u-boot,config";
+                       boot-led = <&led_blue>;
+               };
+       };
+
        sd_switch: regulator-sd_switch {
                compatible = "regulator-gpio";
                regulator-name = "sd_switch";
index fc0ff818e1fa11b6ac64140a3e2c9bea8a921f84..7ed2b01958fef43fa3442da9a2b0295814f1daa4 100644 (file)
@@ -64,7 +64,7 @@
 
        led {
                compatible = "gpio-leds";
-               led-blue {
+               led_blue: led-blue {
                        function = LED_FUNCTION_HEARTBEAT;
                        color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpiod 11 GPIO_ACTIVE_HIGH>;
                };
        };
 
+       options {
+               u-boot {
+                       compatible = "u-boot,config";
+                       boot-led = <&led_blue>;
+               };
+       };
+
        sound {
                compatible = "audio-graph-card";
                label = "STM32MP15-DK";