Skip to content

Commit 0dfff7c

Browse files
Patrice ChotardAlexandre Torgue
authored andcommitted
arm64: dts: st: Add boot-led for stm32mp2 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-13-50a3a9b339a8@foss.st.com Link: https://lore.kernel.org/r/20251112-upstream_add_boot-led_for_stm32_boards-v1-14-50a3a9b339a8@foss.st.com Link: https://lore.kernel.org/r/20251112-upstream_add_boot-led_for_stm32_boards-v1-15-50a3a9b339a8@foss.st.com Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
1 parent 2e54d44 commit 0dfff7c

3 files changed

Lines changed: 24 additions & 3 deletions

File tree

arch/arm64/boot/dts/st/stm32mp235f-dk.dts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
gpio-leds {
4747
compatible = "gpio-leds";
4848

49-
led-blue {
49+
led_blue: led-blue {
5050
function = LED_FUNCTION_HEARTBEAT;
5151
color = <LED_COLOR_ID_BLUE>;
5252
gpios = <&gpioh 7 GPIO_ACTIVE_HIGH>;
@@ -70,6 +70,13 @@
7070
reg = <0x0 0x80000000 0x0 0x80000000>;
7171
};
7272

73+
options {
74+
u-boot {
75+
compatible = "u-boot,config";
76+
boot-led = <&led_blue>;
77+
};
78+
};
79+
7380
reserved-memory {
7481
#address-cells = <2>;
7582
#size-cells = <2>;

arch/arm64/boot/dts/st/stm32mp257f-dk.dts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
gpio-leds {
4747
compatible = "gpio-leds";
4848

49-
led-blue {
49+
led_blue: led-blue {
5050
function = LED_FUNCTION_HEARTBEAT;
5151
color = <LED_COLOR_ID_BLUE>;
5252
gpios = <&gpioh 7 GPIO_ACTIVE_HIGH>;
@@ -70,6 +70,13 @@
7070
reg = <0x0 0x80000000 0x1 0x0>;
7171
};
7272

73+
options {
74+
u-boot {
75+
compatible = "u-boot,config";
76+
boot-led = <&led_blue>;
77+
};
78+
};
79+
7380
reserved-memory {
7481
#address-cells = <2>;
7582
#size-cells = <2>;

arch/arm64/boot/dts/st/stm32mp257f-ev1.dts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
gpio-leds {
4747
compatible = "gpio-leds";
4848

49-
led-blue {
49+
led_blue: led-blue {
5050
function = LED_FUNCTION_HEARTBEAT;
5151
color = <LED_COLOR_ID_BLUE>;
5252
gpios = <&gpioj 7 GPIO_ACTIVE_HIGH>;
@@ -94,6 +94,13 @@
9494
reg = <0x0 0x80000000 0x1 0x0>;
9595
};
9696

97+
options {
98+
u-boot {
99+
compatible = "u-boot,config";
100+
boot-led = <&led_blue>;
101+
};
102+
};
103+
97104
panel_lvds: display {
98105
compatible = "edt,etml0700z9ndha", "panel-lvds";
99106
enable-gpios = <&gpiog 15 GPIO_ACTIVE_HIGH>;

0 commit comments

Comments
 (0)