From b06e52f2ea937077b3ff8296e4a67648138ac897 Mon Sep 17 00:00:00 2001 From: Quentin Schulz Date: Wed, 19 Nov 2025 18:01:14 +0100 Subject: corvus: migrate red LED to the modern API red_led_on is either called from the legacy LED shell command (which is disabled for corvus) or from arm-specific assembly code right before jumping into board_init_r() in U-Boot proper. Let's migrate to use the more modern LED subsystem by migrating to DM. The default-state is set to on to mimic red_led_on() from the arm-specific assembly code as a missing default-state FDT property currently means the LED is not probed except if explicitly done via the led shell command. Note though that this is running much later in the boot process, once DM is started. Signed-off-by: Quentin Schulz Reviewed-by: Heiko Schocher --- arch/arm/dts/at91sam9g45-corvus.dts | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'arch') diff --git a/arch/arm/dts/at91sam9g45-corvus.dts b/arch/arm/dts/at91sam9g45-corvus.dts index 67be80bb2b3..acc05994650 100644 --- a/arch/arm/dts/at91sam9g45-corvus.dts +++ b/arch/arm/dts/at91sam9g45-corvus.dts @@ -10,6 +10,7 @@ * 2011 Nicolas Ferre */ /dts-v1/; +#include #include "at91sam9g45.dtsi" / { @@ -106,4 +107,14 @@ status = "okay"; }; }; + + leds { + compatible = "gpio-leds"; + + red_led: led-0 { + gpios = <&pioD 31 GPIO_ACTIVE_HIGH>; + color = ; + default-state = "on"; + }; + }; }; -- cgit v1.3.1