Skip to content

Commit 2e54d44

Browse files
Patrice ChotardAlexandre Torgue
authored andcommitted
ARM: dts: stm32: Add boot-led for stm32mp1 ST boards
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>
1 parent 5c6f60c commit 2e54d44

3 files changed

Lines changed: 24 additions & 3 deletions

File tree

arch/arm/boot/dts/st/stm32mp135f-dk.dts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
leds {
7474
compatible = "gpio-leds";
7575

76-
led-blue {
76+
led_blue: led-blue {
7777
function = LED_FUNCTION_HEARTBEAT;
7878
color = <LED_COLOR_ID_BLUE>;
7979
gpios = <&gpioa 14 GPIO_ACTIVE_LOW>;
@@ -88,6 +88,13 @@
8888
};
8989
};
9090

91+
options {
92+
u-boot {
93+
compatible = "u-boot,config";
94+
boot-led = <&led_blue>;
95+
};
96+
};
97+
9198
panel_backlight: panel-backlight {
9299
compatible = "gpio-backlight";
93100
gpios = <&gpioe 12 GPIO_ACTIVE_HIGH>;

arch/arm/boot/dts/st/stm32mp157c-ed1.dts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474

7575
led {
7676
compatible = "gpio-leds";
77-
led-blue {
77+
led_blue: led-blue {
7878
gpios = <&gpiod 9 GPIO_ACTIVE_HIGH>;
7979
linux,default-trigger = "heartbeat";
8080
default-state = "off";
@@ -89,6 +89,13 @@
8989
};
9090
};
9191

92+
options {
93+
u-boot {
94+
compatible = "u-boot,config";
95+
boot-led = <&led_blue>;
96+
};
97+
};
98+
9299
sd_switch: regulator-sd_switch {
93100
compatible = "regulator-gpio";
94101
regulator-name = "sd_switch";

arch/arm/boot/dts/st/stm32mp15xx-dkx.dtsi

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565
led {
6666
compatible = "gpio-leds";
67-
led-blue {
67+
led_blue: led-blue {
6868
function = LED_FUNCTION_HEARTBEAT;
6969
color = <LED_COLOR_ID_BLUE>;
7070
gpios = <&gpiod 11 GPIO_ACTIVE_HIGH>;
@@ -79,6 +79,13 @@
7979
};
8080
};
8181

82+
options {
83+
u-boot {
84+
compatible = "u-boot,config";
85+
boot-led = <&led_blue>;
86+
};
87+
};
88+
8289
sound {
8390
compatible = "audio-graph-card";
8491
label = "STM32MP15-DK";

0 commit comments

Comments
 (0)