summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2025-12-05 13:38:32 -0600
committerTom Rini <[email protected]>2025-12-05 13:38:32 -0600
commit384d3785df4dbe452f9fbb4bd9c9c9e986cdc205 (patch)
tree93df78019fee580bc6a1691ac585eb86f5bc83a5 /doc
parent1a5e3be3aca271901c3d4c5e0d5fd23c27e258b6 (diff)
parentc4594242aafc3452948a6b57dfbaacdfb4ed0860 (diff)
Merge patch series "led: remove unused legacy LED code"
Quentin Schulz <[email protected]> says: Only the Siemens corvus board seems to be using these two status LEDs from the legacy LED API. Since we're trying to get rid of the last users of the legacy LED API, let's migrate Corvus to the modern LED API instead, which uses DM. For Corvus's case, it also uses DM_GPIO (already enabled in defconfig). Since there was no use for the green status_led (not compiled in), it simply is removed without migrating it to the modern API. If need be, we can always add a new gpio-led in the FDT. Note that I do not own a Siemens Corvus board so it's a bit of a shot in the dark whether it'll work on the first try, only build tested. The red LED should be on whenever reaching U-Boot proper CLI, if not we have an issue. The LED should be controllable with the led command from U-Boot proper CLI. Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'doc')
-rw-r--r--doc/api/led.rst19
1 files changed, 0 insertions, 19 deletions
diff --git a/doc/api/led.rst b/doc/api/led.rst
index 6488416c8b9..9ae3f5fe252 100644
--- a/doc/api/led.rst
+++ b/doc/api/led.rst
@@ -57,10 +57,6 @@ Some other LED macros
CONFIG_STATUS_LED_BOOT is the LED to light when the board is booting.
This must be a valid LED number (0-5).
-CONFIG_STATUS_LED_RED is the red LED. It is used to signal errors. This must be
-a valid LED number (0-5). Other similar color LED's macros are
-CONFIG_STATUS_LED_GREEN.
-
General LED functions
~~~~~~~~~~~~~~~~~~~~~
The following functions should be defined:
@@ -72,21 +68,6 @@ __led_set is called to change the state of the LED.
__led_toggle is called to toggle the current state of the LED.
-Colour LED
-----------
-
-Colour LED's are at present only used by ARM.
-
-The functions names explain their purpose.
-
-- red_LED_on
-- red_LED_off
-- green_LED_on
-- green_LED_off
-
-These are weakly defined in arch/arm/lib/board.c to noops. Where applicable, define
-these functions in the board specific source.
-
TBD : Describe older board dependent macros similar to what is done for
TBD : Describe general support via asm/status_led.h