Skip to contentSkip to conversation

led: Remove old status-LED code

PATCH Applied Simon Glass 4 participants 59 messages Nov 3, 2024 – Jan 15, 2025

Subsystems (7)
lore
Share & tools
lore
#0 lore raw

v3 cover led: Remove old status-LED code

There has been an LED framework in U-Boot which uses driver model for about 9 years now. Recent work is underway to improve it and provide more features. It is probably a good time to drop the old code, which is only used by 5 boards:

./tools/qconfig.py -f LED_STATUS
5 matches
eb_cpu5282 eb_cpu5282_internal mx23_olinuxino pinephone socfpga_vining_fpga

This series attempts that.

The new /options node provides a way to provide U-Boot settings, and LEDs are implemented there. For now I have brought into the options schema from upstream. We can update it once the LED additions land there.

Changes in v3:
- Update commit message
- Combine removal and enable patches
- Combine removal and enable patches
- Combine removal and enable patches

Changes in v2:
- Combine code-removal and defconfig changes
- Add a patch to enable LED and LED_BOOT for these boards
- Enable LED on the 5 affected platforms
- Reorder patches for bisectability
- Add dt-schema bindings for LED

Simon Glass (25):
eb_cpu5282: Drop status-LED code and enable LED
vining_fpga: Drop status-LED code and use LED
mx23_olinuxino: Drop status-LED code and use LED
pinephone: Drop status-LED code and use LED
led: Drop LED_STATUS_BOARD_SPECIFIC
arm: Drop old LED support
common: doc: Drop old LED support
st: stm32f429: Drop old LED code
led: Make the LED config common
led: Drop LED_STATUS from Kconfig
led: Drop the legacy LED command
misc: Drop gpio_led driver
pca9551_led: Delete driver
misc: status_led: Delete driver
m68k: Drop unused status_led.h header file
powerpc: Drop status-LED code
igep00x0: Drop unused status_led.h header file
sunxi: Drop status-LED code
common: Drop status-LED code in board_r
image: Drop unused status_led.h header file
ide: Drop unused status_led.h header file
mpc83xx: Drop status-LED code
net: Drop status-LED code
led: Drop status_led header file
doc: Add devicetree bindings for options

 arch/arm/lib/crt0.S                          |   4 -
 arch/m68k/lib/bootm.c                        |   3 -
 arch/powerpc/lib/interrupts.c                |   6 -
 board/BuS/eb_cpu5282/eb_cpu5282.c            |  20 --
 board/isee/igep00x0/igep00x0.c               |   1 -
 board/olimex/mx23_olinuxino/mx23_olinuxino.c |   7 -
 board/softing/vining_fpga/socfpga.c          |   4 -
 board/st/stm32f429-discovery/Makefile        |   1 -
 board/st/stm32f429-discovery/led.c           |  39 ---
 board/sunxi/board.c                          |   6 -
 boot/image.c                                 |   4 -
 cmd/Makefile                                 |   1 -
 cmd/ide.c                                    |   4 -
 cmd/legacy_led.c                             | 185 ----------
 common/board_f.c                             |  22 --
 common/board_r.c                             |  27 --
 configs/eb_cpu5282_defconfig                 |   8 +-
 configs/eb_cpu5282_internal_defconfig        |   8 +-
 configs/mx23_olinuxino_defconfig             |  10 +-
 configs/pinephone_defconfig                  |   7 +-
 configs/socfpga_vining_fpga_defconfig        |  13 +-
 doc/README.LED                               |  77 -----
 doc/device-tree-bindings/options.yaml        |  79 +++++
 doc/device-tree-bindings/options/u-boot.yaml | 136 ++++++++
 drivers/led/Kconfig                          | 342 +------------------
 drivers/misc/Kconfig                         |  13 -
 drivers/misc/Makefile                        |   3 -
 drivers/misc/gpio_led.c                      | 106 ------
 drivers/misc/pca9551_led.c                   | 170 ---------
 drivers/misc/status_led.c                    | 124 -------
 drivers/timer/mpc83xx_timer.c                |   5 -
 include/configs/eb_cpu5282.h                 |   6 -
 include/status_led.h                         | 115 -------
 net/bootp.c                                  |   7 -
 net/net.c                                    |  33 --
 35 files changed, 236 insertions(+), 1360 deletions(-)
 delete mode 100644 board/st/stm32f429-discovery/led.c
 delete mode 100644 cmd/legacy_led.c
 delete mode 100644 doc/README.LED
 create mode 100644 doc/device-tree-bindings/options.yaml
 create mode 100644 doc/device-tree-bindings/options/u-boot.yaml
 delete mode 100644 drivers/misc/gpio_led.c
 delete mode 100644 drivers/misc/pca9551_led.c
 delete mode 100644 drivers/misc/status_led.c
 delete mode 100644 include/status_led.h
Signature · 1 line
2.43.0
#1 lore raw

PATCH v3 1/25 eb_cpu5282: Drop status-LED code and enable LED

Drop this old code. Swtich the LED options to use the new approach, in the same commit, to maintain build-bisectability.

Both eb_cpu5282 and eb_cpu5282_internal are done together, since they share code.

---

Changes in v3:
- Update commit message

Changes in v2:
- Combine code-removal and defconfig changes

 board/BuS/eb_cpu5282/eb_cpu5282.c     | 20 --------------------
 configs/eb_cpu5282_defconfig          |  8 ++------
 configs/eb_cpu5282_internal_defconfig |  8 ++------
 include/configs/eb_cpu5282.h          |  6 ------
 4 files changed, 4 insertions(+), 38 deletions(-)
board/BuS/eb_cpu5282/eb_cpu5282.c +0 -20
index c254da62bf4..cdd862c57d2 100644
@@ -14,7 +14,6 @@
 #include <bmp_layout.h>
 #include <env.h>
 #include <init.h>
-#include <status_led.h>
 #include <bus_vcxk.h>
 
 /*---------------------------------------------------------------------------*/
@@ -160,25 +159,6 @@ int misc_init_r(void)
 	return 1;
 }
 
-void __led_toggle(led_id_t mask)
-{
-	MCFGPTA_GPTPORT ^= (1 << 3);
-}
-
-void __led_init(led_id_t mask, int state)
-{
-	__led_set(mask, state);
-	MCFGPTA_GPTDDR  |= (1 << 3);
-}
-
-void __led_set(led_id_t mask, int state)
-{
-	if (state == CONFIG_LED_STATUS_ON)
-		MCFGPTA_GPTPORT |= (1 << 3);
-	else
-		MCFGPTA_GPTPORT &= ~(1 << 3);
-}
-
 /*---------------------------------------------------------------------------*/
 
 /* EOF EB+MCF-EV123.c */
configs/eb_cpu5282_defconfig +2 -6
index 271dbdf4dbb..c51a5db262e 100644
@@ -35,12 +35,8 @@ CONFIG_SYS_FAULT_ECHO_LINK_DOWN=y
 CONFIG_SYS_RX_ETH_BUFFER=8
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_FSL=y
-CONFIG_LED_STATUS=y
-CONFIG_LED_STATUS0=y
-CONFIG_LED_STATUS_BIT=8
-CONFIG_LED_STATUS_BOOT_ENABLE=y
-CONFIG_LED_STATUS_BOOT=0
-CONFIG_LED_STATUS_CMD=y
+CONFIG_LED=y
+CONFIG_LED_BOOT=y
 CONFIG_MTD=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_FLASH_CFI_DRIVER=y
configs/eb_cpu5282_internal_defconfig +2 -6
index 89a7925dffa..3627d25b990 100644
@@ -33,12 +33,8 @@ CONFIG_SYS_FAULT_ECHO_LINK_DOWN=y
 CONFIG_SYS_RX_ETH_BUFFER=8
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_FSL=y
-CONFIG_LED_STATUS=y
-CONFIG_LED_STATUS0=y
-CONFIG_LED_STATUS_BIT=8
-CONFIG_LED_STATUS_BOOT_ENABLE=y
-CONFIG_LED_STATUS_BOOT=0
-CONFIG_LED_STATUS_CMD=y
+CONFIG_LED=y
+CONFIG_LED_BOOT=y
 CONFIG_MTD=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_FLASH_CFI_DRIVER=y
include/configs/eb_cpu5282.h +0 -6
index 26e4ade34ee..a4d1338c8fa 100644
@@ -14,12 +14,6 @@
 
 #define CFG_SYS_UART_PORT		(0)
 
-/*----------------------------------------------------------------------*
- * Options								*
- *----------------------------------------------------------------------*/
-
-#define STATUS_LED_ACTIVE		0
-
 /*----------------------------------------------------------------------*
  * Configuration for environment					*
  * Environment is in the second sector of the first 256k of flash	*
Signature · 1 line
2.43.0
author Applied
#2 lore raw

Re: [PATCH v3 01/25] eb_cpu5282: Drop status-LED code and enable LED

Quoted 13 lines · Simon Glass

Drop this old code. Swtich the LED options to use the new approach, in the same commit, to maintain build-bisectability.

Both eb_cpu5282 and eb_cpu5282_internal are done together, since they share code.

---

Changes in v3:
- Update commit message

Quoted 9 lines

Changes in v2:
- Combine code-removal and defconfig changes

 board/BuS/eb_cpu5282/eb_cpu5282.c     | 20 --------------------
 configs/eb_cpu5282_defconfig          |  8 ++------
 configs/eb_cpu5282_internal_defconfig |  8 ++------
 include/configs/eb_cpu5282.h          |  6 ------
 4 files changed, 4 insertions(+), 38 deletions(-)

Applied to ci/master, thanks!

#3 lore raw

PATCH v3 2/25 vining_fpga: Drop status-LED code and use LED

In reply to Simon Glass

This is not used anymore, so drop it.

Enable LED and LED_BOOT instead, since this is the new way to access the LED functionality.

---

Changes in v3:
- Combine removal and enable patches

 board/softing/vining_fpga/socfpga.c   |  4 ----
 configs/socfpga_vining_fpga_defconfig | 13 ++-----------
 2 files changed, 2 insertions(+), 15 deletions(-)
board/softing/vining_fpga/socfpga.c +0 -4
index ec2c7ea3631..700184cc575 100644
@@ -8,7 +8,6 @@
 #include <env.h>
 #include <init.h>
 #include <net.h>
-#include <status_led.h>
 #include <asm/arch/reset_manager.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
@@ -26,9 +25,6 @@ int board_late_init(void)
 	const unsigned int usb_nrst_gpio = 35;
 	int ret;
 
-	status_led_set(1, CONFIG_LED_STATUS_ON);
-	status_led_set(2, CONFIG_LED_STATUS_ON);
-
 	/* Address of boot parameters for ATAG (if ATAG is used) */
 	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
configs/socfpga_vining_fpga_defconfig +2 -11
index 094e9186fca..94018752b40 100644
@@ -77,17 +77,8 @@ CONFIG_SYS_DFU_DATA_BUF_SIZE=0x1000000
 CONFIG_DWAPB_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
-CONFIG_LED_STATUS=y
-CONFIG_LED_STATUS_GPIO=y
-CONFIG_LED_STATUS0=y
-CONFIG_LED_STATUS_BIT=48
-CONFIG_LED_STATUS1=y
-CONFIG_LED_STATUS_BIT1=53
-CONFIG_LED_STATUS2=y
-CONFIG_LED_STATUS_BIT2=54
-CONFIG_LED_STATUS3=y
-CONFIG_LED_STATUS_BIT3=65
-CONFIG_LED_STATUS_CMD=y
+CONFIG_LED=y
+CONFIG_LED_BOOT=y
 CONFIG_MISC=y
 CONFIG_I2C_EEPROM=y
 CONFIG_SYS_I2C_EEPROM_ADDR=0x50
Signature · 1 line
2.43.0
author Applied
#4 lore raw

Re: [PATCH v3 02/25] vining_fpga: Drop status-LED code and use LED

Quoted 7 lines · Simon Glass

This is not used anymore, so drop it.

Enable LED and LED_BOOT instead, since this is the new way to access the LED functionality.

Quoted 9 lines

---

Changes in v3:
- Combine removal and enable patches

 board/softing/vining_fpga/socfpga.c   |  4 ----
 configs/socfpga_vining_fpga_defconfig | 13 ++-----------
 2 files changed, 2 insertions(+), 15 deletions(-)

Applied to ci/master, thanks!

#5 lore raw

PATCH v3 3/25 mx23_olinuxino: Drop status-LED code and use LED

In reply to Simon Glass

Enable LED and LED_BOOT instead, since this is the new way to access the LED functionality.

---

Changes in v3:
- Combine removal and enable patches

 board/olimex/mx23_olinuxino/mx23_olinuxino.c |  7 -------
 configs/mx23_olinuxino_defconfig             | 10 ++--------
 2 files changed, 2 insertions(+), 15 deletions(-)
board/olimex/mx23_olinuxino/mx23_olinuxino.c +0 -7
index b2bb6678c23..78136c1620a 100644
@@ -13,9 +13,6 @@
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
-#ifdef CONFIG_LED_STATUS
-#include <status_led.h>
-#endif
 #include <linux/delay.h>
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -61,9 +58,5 @@ int board_init(void)
 	/* Adress of boot parameters */
 	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
-#if defined(CONFIG_LED_STATUS) && defined(CONFIG_LED_STATUS_BOOT_ENABLE)
-	status_led_set(CONFIG_LED_STATUS_BOOT, CONFIG_LED_STATUS_STATE);
-#endif
-
 	return 0;
 }
configs/mx23_olinuxino_defconfig +2 -8
index 3016f750e64..c1319077891 100644
@@ -39,14 +39,8 @@ CONFIG_USE_BOOTFILE=y
 CONFIG_BOOTFILE="uImage"
 CONFIG_VERSION_VARIABLE=y
 CONFIG_MXS_GPIO=y
-CONFIG_LED_STATUS=y
-CONFIG_LED_STATUS_GPIO=y
-CONFIG_LED_STATUS0=y
-CONFIG_LED_STATUS_BIT=778
-CONFIG_LED_STATUS_STATE=2
-CONFIG_LED_STATUS_BOOT_ENABLE=y
-CONFIG_LED_STATUS_BOOT=0
-CONFIG_LED_STATUS_CMD=y
+CONFIG_LED=y
+CONFIG_LED_BOOT=y
 CONFIG_MMC_MXS=y
 CONFIG_CONS_INDEX=0
 CONFIG_DM_SERIAL=y
Signature · 1 line
2.43.0
#6 lore raw

PATCH v3 4/25 pinephone: Drop status-LED code and use LED

In reply to Simon Glass

Drop the STATUS_LED options and enable LED and LED_BOOT instead, since this is the new way to access the LED functionality.

---

Changes in v3:
- Combine removal and enable patches

Changes in v2:
- Add a patch to enable LED and LED_BOOT for these boards

 configs/pinephone_defconfig | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
configs/pinephone_defconfig +2 -5
index 9d39204a439..272fce1c1a4 100644
@@ -11,8 +11,5 @@ CONFIG_MMC_SUNXI_SLOT_EXTRA=2
 CONFIG_PINEPHONE_DT_SELECTION=y
 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
 CONFIG_OF_LIST="sun50i-a64-pinephone-1.1 sun50i-a64-pinephone-1.2"
-CONFIG_LED_STATUS=y
-CONFIG_LED_STATUS_GPIO=y
-CONFIG_LED_STATUS0=y
-CONFIG_LED_STATUS_BIT=114
-CONFIG_LED_STATUS_STATE=2
+CONFIG_LED=y
+CONFIG_LED_BOOT=y
Signature · 1 line
2.43.0
#7 lore raw

Re: [PATCH v3 04/25] pinephone: Drop status-LED code and use LED

Quoted 20 lines · Simon Glass

Drop the STATUS_LED options and enable LED and LED_BOOT instead, since this is the new way to access the LED functionality.

---

Changes in v3:
- Combine removal and enable patches

Changes in v2:
- Add a patch to enable LED and LED_BOOT for these boards

 configs/pinephone_defconfig | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
configs/pinephone_defconfig +0 -0
index 9d39204a439..272fce1c1a4 100644

configs/pinephone_defconfig CONFIG_MMC_SUNXI_SLOT_EXTRA=2 · line 15

Quoted 10 lines
configs/pinephone_defconfig +2 -5
@@ -11,8 +11,5 @@ CONFIG_MMC_SUNXI_SLOT_EXTRA=2
 CONFIG_PINEPHONE_DT_SELECTION=y
 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
 CONFIG_OF_LIST="sun50i-a64-pinephone-1.1 sun50i-a64-pinephone-1.2"
-CONFIG_LED_STATUS=y
-CONFIG_LED_STATUS_GPIO=y
-CONFIG_LED_STATUS0=y
-CONFIG_LED_STATUS_BIT=114
-CONFIG_LED_STATUS_STATE=2
+CONFIG_LED=y
+CONFIG_LED_BOOT=y

Adding more people to the email. Where this really got stuck last posting was that Peter couldn't convert the board functionally and there wasn't enough documentation about the new way to be clear on how to implement it. I'm hoping Christian can chime in on the latter part.

Signature · 1 line
Tom
#8 lore raw

Re: [PATCH v3 04/25] pinephone: Drop status-LED code and use LED

In reply to Simon Glass
Quoted 3 lines · Simon Glass

Drop the STATUS_LED options and enable LED and LED_BOOT instead, since this is the new way to access the LED functionality.

This still doesn't work!

Quoted 30 lines

---

Changes in v3:
- Combine removal and enable patches

Changes in v2:
- Add a patch to enable LED and LED_BOOT for these boards

 configs/pinephone_defconfig | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
configs/pinephone_defconfig +2 -6
index 9d39204a439..272fce1c1a4 100644
@@ -11,8 +11,5 @@ CONFIG_MMC_SUNXI_SLOT_EXTRA=2
 CONFIG_PINEPHONE_DT_SELECTION=y
 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
 CONFIG_OF_LIST="sun50i-a64-pinephone-1.1 sun50i-a64-pinephone-1.2"
-CONFIG_LED_STATUS=y
-CONFIG_LED_STATUS_GPIO=y
-CONFIG_LED_STATUS0=y
-CONFIG_LED_STATUS_BIT=114
-CONFIG_LED_STATUS_STATE=2
+CONFIG_LED=y
+CONFIG_LED_BOOT=y
--

2.43.0

author Applied
#9 lore raw

Re: [PATCH v3 04/25] pinephone: Drop status-LED code and use LED

Quoted 30 lines · Peter Robinson
Quoted 3 lines · Simon Glass

Drop the STATUS_LED options and enable LED and LED_BOOT instead, since this is the new way to access the LED functionality.

This still doesn't work!

Quoted 22 lines

---

Changes in v3:
- Combine removal and enable patches

Changes in v2:
- Add a patch to enable LED and LED_BOOT for these boards

 configs/pinephone_defconfig | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
configs/pinephone_defconfig +0 -2
index 9d39204a439..272fce1c1a4 100644
@@ -11,8 +11,5 @@ CONFIG_MMC_SUNXI_SLOT_EXTRA=2
 CONFIG_PINEPHONE_DT_SELECTION=y
 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
 CONFIG_OF_LIST="sun50i-a64-pinephone-1.1 sun50i-a64-pinephone-1.2"
-CONFIG_LED_STATUS=y
-CONFIG_LED_STATUS_GPIO=y
Quoted 8 lines
Quoted 8 lines
configs/pinephone_defconfig +2 -4
-CONFIG_LED_STATUS0=y
-CONFIG_LED_STATUS_BIT=114
-CONFIG_LED_STATUS_STATE=2
+CONFIG_LED=y
+CONFIG_LED_BOOT=y
--

2.43.0

Applied to ci/master, thanks!

#10 lore raw

Re: [PATCH v3 04/25] pinephone: Drop status-LED code and use LED

In reply to Peter Robinson

Hi Peter,

Quoted 8 lines · Peter Robinson
Quoted 3 lines · Simon Glass

Drop the STATUS_LED options and enable LED and LED_BOOT instead, since this is the new way to access the LED functionality.

This still doesn't work!

Could you try this series please?

https://patchwork.ozlabs.org/project/uboot/list/?series=432093

Regards,
Simon

Quoted 30 lines
Quoted 30 lines

---

Changes in v3:
- Combine removal and enable patches

Changes in v2:
- Add a patch to enable LED and LED_BOOT for these boards

 configs/pinephone_defconfig | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
configs/pinephone_defconfig +2 -6
index 9d39204a439..272fce1c1a4 100644
@@ -11,8 +11,5 @@ CONFIG_MMC_SUNXI_SLOT_EXTRA=2
 CONFIG_PINEPHONE_DT_SELECTION=y
 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
 CONFIG_OF_LIST="sun50i-a64-pinephone-1.1 sun50i-a64-pinephone-1.2"
-CONFIG_LED_STATUS=y
-CONFIG_LED_STATUS_GPIO=y
-CONFIG_LED_STATUS0=y
-CONFIG_LED_STATUS_BIT=114
-CONFIG_LED_STATUS_STATE=2
+CONFIG_LED=y
+CONFIG_LED_BOOT=y
--

2.43.0

#11 lore raw

PATCH v3 5/25 led: Drop LED_STATUS_BOARD_SPECIFIC

In reply to Simon Glass

This is not used by any board and there is a driver model version of LEDs. Drop it.

---

(no changes since v1)

 cmd/legacy_led.c     | 40 ----------------------------------------
 drivers/led/Kconfig  |  6 ------
 include/status_led.h | 13 +------------
 3 files changed, 1 insertion(+), 58 deletions(-)
cmd/legacy_led.c +0 -40
index 50de7e89d8f..ef2135e0dba 100644
@@ -24,26 +24,6 @@ struct led_tbl_s {
 typedef struct led_tbl_s led_tbl_t;
 
 static const led_tbl_t led_commands[] = {
-#ifdef CONFIG_LED_STATUS_BOARD_SPECIFIC
-#ifdef CONFIG_LED_STATUS0
-	{ "0", CONFIG_LED_STATUS_BIT, NULL, NULL, NULL },
-#endif
-#ifdef CONFIG_LED_STATUS1
-	{ "1", CONFIG_LED_STATUS_BIT1, NULL, NULL, NULL },
-#endif
-#ifdef CONFIG_LED_STATUS2
-	{ "2", CONFIG_LED_STATUS_BIT2, NULL, NULL, NULL },
-#endif
-#ifdef CONFIG_LED_STATUS3
-	{ "3", CONFIG_LED_STATUS_BIT3, NULL, NULL, NULL },
-#endif
-#ifdef CONFIG_LED_STATUS4
-	{ "4", CONFIG_LED_STATUS_BIT4, NULL, NULL, NULL },
-#endif
-#ifdef CONFIG_LED_STATUS5
-	{ "5", CONFIG_LED_STATUS_BIT5, NULL, NULL, NULL },
-#endif
-#endif
 #ifdef CONFIG_LED_STATUS_GREEN
 	{ "green", CONFIG_LED_STATUS_GREEN, green_led_off, green_led_on, NULL },
 #endif
@@ -148,26 +128,6 @@ int do_legacy_led(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 U_BOOT_CMD(
 	led, 4, 1, do_legacy_led,
 	"["
-#ifdef CONFIG_LED_STATUS_BOARD_SPECIFIC
-#ifdef CONFIG_LED_STATUS0
-	"0|"
-#endif
-#ifdef CONFIG_LED_STATUS1
-	"1|"
-#endif
-#ifdef CONFIG_LED_STATUS2
-	"2|"
-#endif
-#ifdef CONFIG_LED_STATUS3
-	"3|"
-#endif
-#ifdef CONFIG_LED_STATUS4
-	"4|"
-#endif
-#ifdef CONFIG_LED_STATUS5
-	"5|"
-#endif
-#endif
 #ifdef CONFIG_LED_STATUS_GREEN
 	"green|"
 #endif
drivers/led/Kconfig +0 -6
index c98cbf92fab..268118a6c3a 100644
@@ -166,12 +166,6 @@ config LED_STATUS_GPIO
 	  The status LED can be connected to a GPIO pin. In such cases, the
 	  gpio_led driver can be used as a status LED backend implementation.
 
-config LED_STATUS_BOARD_SPECIFIC
-	bool "Specific board"
-	default y
-	help
-	  LED support is only for a specific board.
-
 comment "LEDs parameters"
 
 config LED_STATUS0
include/status_led.h +1 -12
index 1282022253e..59cf9f89956 100644
@@ -61,23 +61,12 @@ static inline void status_led_boot_blink(void)
    * ADVICE: Define in your board configuration file rather than
    * filling this file up with lots of custom board stuff.
    */
-
-#elif defined(CONFIG_LED_STATUS_BOARD_SPECIFIC)
-/* led_id_t is unsigned long mask */
-typedef unsigned long led_id_t;
-
-extern void __led_toggle (led_id_t mask);
-extern void __led_init (led_id_t mask, int state);
-extern void __led_set (led_id_t mask, int state);
-void __led_blink(led_id_t mask, int freq);
 #else
 # error Status LED configuration missing
 #endif
 /************************************************************************/
 
-#ifndef CONFIG_LED_STATUS_BOARD_SPECIFIC
-# include <asm/status_led.h>
-#endif
+#include <asm/status_led.h>
 
 #else
 
Signature · 1 line
2.43.0
author Applied
#12 lore raw

Re: [PATCH v3 05/25] led: Drop LED_STATUS_BOARD_SPECIFIC

Quoted 5 lines · Simon Glass

This is not used by any board and there is a driver model version of LEDs. Drop it.

Quoted 8 lines

---

(no changes since v1)

 cmd/legacy_led.c     | 40 ----------------------------------------
 drivers/led/Kconfig  |  6 ------
 include/status_led.h | 13 +------------
 3 files changed, 1 insertion(+), 58 deletions(-)

Applied to ci/master, thanks!

#13 lore raw

Re: [PATCH v3 05/25] led: Drop LED_STATUS_BOARD_SPECIFIC

Quoted 8 lines · Simon Glass
Quoted 7 lines · Simon Glass

This is not used by any board and there is a driver model version of LEDs. Drop it.

---

Quoted 9 lines
Quoted 6 lines

(no changes since v1)

 cmd/legacy_led.c     | 40 ----------------------------------------
 drivers/led/Kconfig  |  6 ------
 include/status_led.h | 13 +------------
 3 files changed, 1 insertion(+), 58 deletions(-)

Applied to ci/master, thanks!

Why is this being applied via a ci branch? I don't think that is appropriate!!!

#14 lore raw

PATCH v3 6/25 arm: Drop old LED support

In reply to Simon Glass

This has been replaced with a new LED framework, so drop this old code.

---

(no changes since v1)

 arch/arm/lib/crt0.S | 4 ----
 1 file changed, 4 deletions(-)
arch/arm/lib/crt0.S +0 -4
index 3e4906e273d..a691d844847 100644
@@ -185,10 +185,6 @@ here:
 	movne	r9, r0
 # endif
 
-#if ! defined(CONFIG_XPL_BUILD)
-	bl coloured_LED_init
-	bl red_led_on
-#endif
 	/* call board_init_r(gd_t *id, ulong dest_addr) */
 	mov     r0, r9                  /* gd_t */
 	ldr	r1, [r9, #GD_RELOCADDR]	/* dest_addr */
Signature · 1 line
2.43.0
author Applied
#15 lore raw

Re: [PATCH v3 06/25] arm: Drop old LED support

Quoted 10 lines · Simon Glass

This has been replaced with a new LED framework, so drop this old code.

---

(no changes since v1)

 arch/arm/lib/crt0.S | 4 ----
 1 file changed, 4 deletions(-)

Applied to ci/master, thanks!

#16 lore raw

PATCH v3 7/25 common: doc: Drop old LED support

In reply to Simon Glass

This has been replaced with a new LED framework, so drop this old code and documentation.

---

(no changes since v1)

 common/board_f.c | 22 --------------
 doc/README.LED   | 77 ------------------------------------------------
 2 files changed, 99 deletions(-)
 delete mode 100644 doc/README.LED
common/board_f.c +0 -22
index 98dc2591e1d..b110a15278b 100644
@@ -36,7 +36,6 @@
 #include <relocate.h>
 #include <serial.h>
 #include <spl.h>
-#include <status_led.h>
 #include <sysreset.h>
 #include <timer.h>
 #include <trace.h>
@@ -53,27 +52,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-/*
- * TODO([email protected]): IMO this code should be
- * refactored to a single function, something like:
- *
- * void led_set_state(enum led_colour_t colour, int on);
- */
-/************************************************************************
- * Coloured LED functionality
- ************************************************************************
- * May be supplied by boards if desired
- */
-__weak void coloured_LED_init(void) {}
-__weak void red_led_on(void) {}
-__weak void red_led_off(void) {}
-__weak void green_led_on(void) {}
-__weak void green_led_off(void) {}
-__weak void yellow_led_on(void) {}
-__weak void yellow_led_off(void) {}
-__weak void blue_led_on(void) {}
-__weak void blue_led_off(void) {}
-
 /*
  * Why is gd allocated a register? Prior to reloc it might be better to
  * just pass it around to each function in this file?
doc/README.LED deleted +0 -77

77 lines not on this page · raw message

Signature · 1 line
2.43.0
#17 lore raw

PATCH v3 8/25 st: stm32f429: Drop old LED code

In reply to Simon Glass

This predates the LED framework, so drop it.

---

(no changes since v1)

 board/st/stm32f429-discovery/Makefile |  1 -
 board/st/stm32f429-discovery/led.c    | 39 ---------------------------
 2 files changed, 40 deletions(-)
 delete mode 100644 board/st/stm32f429-discovery/led.c
board/st/stm32f429-discovery/Makefile +0 -1
index 6b02c0fddec..233eafdad3d 100644
@@ -7,4 +7,3 @@
 # Kamil Lulko, <[email protected]>
 
 obj-y	:= stm32f429-discovery.o
-obj-y	+= led.o
board/st/stm32f429-discovery/led.c deleted +0 -39
deleted file mode 100644
index 4b8038341b9..00000000000
@@ -1,39 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * (C) Copyright 2015
- * Kamil Lulko, <[email protected]>
- */
-
-#include <status_led.h>
-#include <asm-generic/gpio.h>
-
-#define RED_LED			110
-#define GREEN_LED		109
-
-void coloured_LED_init(void)
-{
-	gpio_request(RED_LED, "red led");
-	gpio_direction_output(RED_LED, 0);
-	gpio_request(GREEN_LED, "green led");
-	gpio_direction_output(GREEN_LED, 0);
-}
-
-void red_led_off(void)
-{
-	gpio_set_value(RED_LED, 0);
-}
-
-void green_led_off(void)
-{
-	gpio_set_value(GREEN_LED, 0);
-}
-
-void red_led_on(void)
-{
-	gpio_set_value(RED_LED, 1);
-}
-
-void green_led_on(void)
-{
-	gpio_set_value(GREEN_LED, 1);
-}
Signature · 1 line
2.43.0
Reviewed-by on v3 8/25
#18 lore raw

Re: [PATCH v3 08/25] st: stm32f429: Drop old LED code

Quoted 56 lines · Simon Glass

This predates the LED framework, so drop it.

---

(no changes since v1)

 board/st/stm32f429-discovery/Makefile |  1 -
 board/st/stm32f429-discovery/led.c    | 39 ---------------------------
 2 files changed, 40 deletions(-)
 delete mode 100644 board/st/stm32f429-discovery/led.c
board/st/stm32f429-discovery/Makefile +0 -1
index 6b02c0fddec..233eafdad3d 100644
@@ -7,4 +7,3 @@
 # Kamil Lulko, <[email protected]>
 
 obj-y	:= stm32f429-discovery.o
-obj-y	+= led.o
board/st/stm32f429-discovery/led.c deleted +0 -29
deleted file mode 100644
index 4b8038341b9..00000000000
@@ -1,39 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * (C) Copyright 2015
- * Kamil Lulko, <[email protected]>
- */
-
-#include <status_led.h>
-#include <asm-generic/gpio.h>
-
-#define RED_LED			110
-#define GREEN_LED		109
-
-void coloured_LED_init(void)
-{
-	gpio_request(RED_LED, "red led");
-	gpio_direction_output(RED_LED, 0);
-	gpio_request(GREEN_LED, "green led");
-	gpio_direction_output(GREEN_LED, 0);
-}
-
-void red_led_off(void)
-{
-	gpio_set_value(RED_LED, 0);
-}
-
-void green_led_off(void)
-{
-	gpio_set_value(GREEN_LED, 0);
-}

board/st/stm32f429-discovery/led.c line 39

Quoted 10 lines
board/st/stm32f429-discovery/led.c deleted +0 -10
-
-void red_led_on(void)
-{
-	gpio_set_value(RED_LED, 1);
-}
-
-void green_led_on(void)
-{
-	gpio_set_value(GREEN_LED, 1);
-}

Thanks

#19 lore raw

PATCH v3 9/25 led: Make the LED config common

In reply to Simon Glass

Use an if...endif construct to avoid needing to make everything depend on LED. Make SPL_LED depend on LED since that seems reasonable.

---

(no changes since v1)

 drivers/led/Kconfig | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)
drivers/led/Kconfig +12 -10
index 268118a6c3a..789113a92b5 100644
@@ -9,6 +9,8 @@ config LED
 	  can provide access to board-specific LEDs. Use of the device tree
 	  for configuration is encouraged.
 
+if LED
+
 config LED_BOOT
 	bool "Enable LED boot support"
 	help
@@ -35,7 +37,7 @@ config LED_ACTIVITY
 
 config LED_BCM6328
 	bool "LED Support for BCM6328"
-	depends on LED && ARCH_BMIPS
+	depends on ARCH_BMIPS
 	help
 	  This option enables support for LEDs connected to the BCM6328
 	  LED HW controller accessed via MMIO registers.
@@ -46,7 +48,7 @@ config LED_BCM6328
 
 config LED_BCM6358
 	bool "LED Support for BCM6358"
-	depends on LED && ARCH_BMIPS
+	depends on ARCH_BMIPS
 	help
 	  This option enables support for LEDs connected to the BCM6358
 	  LED HW controller accessed via MMIO registers.
@@ -54,28 +56,28 @@ config LED_BCM6358
 
 config LED_BCM6753
 	bool "LED Support for BCM6753"
-	depends on LED && BCM6855
+	depends on BCM6855
 	help
 	  This option enables support for LEDs connected to the BCM6753
 	  HW has blinking and fading capabilities and up to 32 LEDs can be controlled.
 
 config LED_BCM6858
 	bool "LED Support for BCM6858"
-	depends on LED && (BCM6856 || BCM6858 || BCM63158)
+	depends on BCM6856 || BCM6858 || BCM63158
 	help
 	  This option enables support for LEDs connected to the BCM6858
 	  HW has blinking capabilities and up to 32 LEDs can be controlled.
 
 config LED_CORTINA
 	bool "LED Support for Cortina Access CAxxxx SoCs"
-	depends on LED && (CORTINA_PLATFORM)
+	depends on CORTINA_PLATFORM
 	help
 	  This option enables support for LEDs connected to the Cortina
 	  Access CAxxxx SOCs.
 
 config LED_LP5562
 	bool "LED Support for LP5562"
-	depends on LED && DM_I2C
+	depends on DM_I2C
 	help
 	  This option enables support for LEDs connected to the TI LP5562
 	  4 channel I2C LED controller.  Driver fully supports blink on the
@@ -83,14 +85,13 @@ config LED_LP5562
 
 config LED_PWM
 	bool "LED PWM"
-	depends on LED && DM_PWM
+	depends on DM_PWM
 	help
 	  Enable support for LEDs connected to PWM.
 	  Linux compatible ofdata.
 
 config LED_BLINK
 	bool "Support hardware LED blinking"
-	depends on LED
 	help
 	  Some drivers can support automatic blinking of LEDs with a given
 	  period, without needing timers or extra code to handle the timing.
@@ -99,7 +100,6 @@ config LED_BLINK
 
 config LED_SW_BLINK
 	bool "Support software LED blinking"
-	depends on LED
 	select CYCLIC
 	help
 	  Turns on led blinking implemented in the software, useful when
@@ -122,7 +122,7 @@ config SPL_LED
 
 config LED_GPIO
 	bool "LED support for GPIO-connected LEDs"
-	depends on LED && DM_GPIO
+	depends on DM_GPIO
 	help
 	  Enable support for LEDs which are connected to GPIO lines. These
 	  GPIOs may be on the SoC or some other device which provides GPIOs.
@@ -136,6 +136,8 @@ config SPL_LED_GPIO
 	  This option is an SPL-variant of the LED_GPIO option.
 	  See the help of LED_GPIO for details.
 
+endif # LED
+
 config LED_STATUS
 	bool "Enable status LED API"
 	help
Signature · 1 line
2.43.0
#20 lore raw

PATCH v3 10/25 led: Drop LED_STATUS from Kconfig

In reply to Simon Glass

Drop all of these configs, which are now unused.

---

(no changes since v1)

 drivers/led/Kconfig | 316 --------------------------------------------
 1 file changed, 316 deletions(-)
drivers/led/Kconfig +0 -316
index 789113a92b5..379b3ce49a5 100644
@@ -138,320 +138,4 @@ config SPL_LED_GPIO
 
 endif # LED
 
-config LED_STATUS
-	bool "Enable status LED API"
-	help
-	  Allows common u-boot commands to use a board's leds to
-	  provide status for activities like booting and downloading files.
-
-if LED_STATUS
-
-# Hidden constants
-
-config LED_STATUS_OFF
-	int
-	default 0
-
-config LED_STATUS_BLINKING
-	int
-	default 1
-
-config LED_STATUS_ON
-	int
-	default 2
-
-# Hidden constants end
-
-config LED_STATUS_GPIO
-	bool "GPIO status LED implementation"
-	help
-	  The status LED can be connected to a GPIO pin. In such cases, the
-	  gpio_led driver can be used as a status LED backend implementation.
-
-comment "LEDs parameters"
-
-config LED_STATUS0
-	bool "Enable status LED 0"
-
-if LED_STATUS0
-
-config LED_STATUS_BIT
-	int "identification"
-	help
-	  CONFIG_LED_STATUS_BIT is passed into the __led_* functions to identify
-	  which LED is being acted on.  As such, the chosen value must be unique
-	  with respect to the other CONFIG_LED_STATUS_BIT's. Mapping the value
-	  to a physical LED is the responsibility of the __led_* function.
-
-config LED_STATUS_STATE
-	int "initial state"
-	range LED_STATUS_OFF LED_STATUS_ON
-	default LED_STATUS_OFF
-	help
-	  Should be set one of the following:
-	  0 - off
-	  1 - blinking
-	  2 - on
-
-config LED_STATUS_FREQ
-	int "blink frequency"
-	range 2 10
-	default 2
-	help
-	  The LED blink period calculated from LED_STATUS_FREQ:
-	  LED_STATUS_PERIOD = CONFIG_SYS_HZ/LED_STATUS_FREQ
-	  Values range: 2 - 10
-
-endif # LED_STATUS0
-
-config LED_STATUS1
-	bool "Enable status LED 1"
-
-if LED_STATUS1
-
-config LED_STATUS_BIT1
-	int "identification"
-	help
-	  CONFIG_LED_STATUS_BIT1 is passed into the __led_* functions to
-	  identify which LED is being acted on.  As such, the chosen value must
-	  be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
-	  the value to a physical LED is the responsibility of the __led_*
-	  function.
-
-config LED_STATUS_STATE1
-	int "initial state"
-	range LED_STATUS_OFF LED_STATUS_ON
-	default LED_STATUS_OFF
-	help
-	  Should be set one of the following:
-	  0 - off
-	  1 - blinking
-	  2 - on
-
-config LED_STATUS_FREQ1
-	int "blink frequency"
-	range 2 10
-	default 2
-	help
-	  The LED blink period calculated from LED_STATUS_FREQ1:
-	  LED_STATUS_PERIOD1 = CONFIG_SYS_HZ/LED_STATUS_FREQ1
-	  Values range: 2 - 10
-
-endif # LED_STATUS1
-
-config LED_STATUS2
-	bool "Enable status LED 2"
-
-if LED_STATUS2
-
-config LED_STATUS_BIT2
-	int "identification"
-	help
-	  CONFIG_LED_STATUS_BIT2 is passed into the __led_* functions to
-	  identify which LED is being acted on.  As such, the chosen value must
-	  be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
-	  the value to a physical LED is the responsibility of the __led_*
-	  function.
-
-config LED_STATUS_STATE2
-	int "initial state"
-	range LED_STATUS_OFF LED_STATUS_ON
-	default LED_STATUS_OFF
-	help
-	  Should be set one of the following:
-	  0 - off
-	  1 - blinking
-	  2 - on
-
-config LED_STATUS_FREQ2
-	int "blink frequency"
-	range 2 10
-	default 2
-	help
-	  The LED blink period calculated from LED_STATUS_FREQ2:
-	  LED_STATUS_PERIOD2 = CONFIG_SYS_HZ/LED_STATUS_FREQ2
-	  Values range: 2 - 10
-
-endif # LED_STATUS2
-
-config LED_STATUS3
-	bool "Enable status LED 3"
-
-if LED_STATUS3
-
-config LED_STATUS_BIT3
-	int "identification"
-	help
-	  CONFIG_LED_STATUS_BIT3 is passed into the __led_* functions to
-	  identify which LED is being acted on.  As such, the chosen value must
-	  be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
-	  the value to a physical LED is the responsibility of the __led_*
-	  function.
-
-config LED_STATUS_STATE3
-	int "initial state"
-	range LED_STATUS_OFF LED_STATUS_ON
-	default LED_STATUS_OFF
-	help
-	  Should be set one of the following:
-	  0 - off
-	  1 - blinking
-	  2 - on
-
-config LED_STATUS_FREQ3
-	int "blink frequency"
-	range 2 10
-	default 2
-	help
-	  The LED blink period calculated from LED_STATUS_FREQ3:
-	  LED_STATUS_PERIOD3 = CONFIG_SYS_HZ/LED_STATUS_FREQ3
-	  Values range: 2 - 10
-
-endif # LED_STATUS3
-
-config LED_STATUS4
-	bool "Enable status LED 4"
-
-if LED_STATUS4
-
-config LED_STATUS_BIT4
-	int "identification"
-	help
-	  CONFIG_LED_STATUS_BIT4 is passed into the __led_* functions to
-	  identify which LED is being acted on.  As such, the chosen value must
-	  be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
-	  the value to a physical LED is the responsibility of the __led_*
-	  function.
-
-config LED_STATUS_STATE4
-	int "initial state"
-	range LED_STATUS_OFF LED_STATUS_ON
-	default LED_STATUS_OFF
-	help
-	  Should be set one of the following:
-	  0 - off
-	  1 - blinking
-	  2 - on
-
-config LED_STATUS_FREQ4
-	int "blink frequency"
-	range 2 10
-	default 2
-	help
-	  The LED blink period calculated from LED_STATUS_FREQ4:
-	  LED_STATUS_PERIOD4 = CONFIG_SYS_HZ/LED_STATUS_FREQ4
-	  Values range: 2 - 10
-
-endif # LED_STATUS4
-
-config LED_STATUS5
-	bool "Enable status LED 5"
-
-if LED_STATUS5
-
-config LED_STATUS_BIT5
-	int "identification"
-	help
-	  CONFIG_LED_STATUS_BIT5 is passed into the __led_* functions to
-	  identify which LED is being acted on.  As such, the chosen value must
-	  be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
-	  the value to a physical LED is the responsibility of the __led_*
-	  function.
-
-config LED_STATUS_STATE5
-	int "initial state"
-	range LED_STATUS_OFF LED_STATUS_ON
-	default LED_STATUS_OFF
-	help
-	  Should be set one of the following:
-	  0 - off
-	  1 - blinking
-	  2 - on
-
-config LED_STATUS_FREQ5
-	int "blink frequency"
-	range 2 10
-	default 2
-	help
-	  The LED blink period calculated from LED_STATUS_FREQ5:
-	  LED_STATUS_PERIOD5 = CONFIG_SYS_HZ/LED_STATUS_FREQ5
-	  Values range: 2 - 10
-
-endif # LED_STATUS5
-
-config LED_STATUS_BOOT_ENABLE
-	bool "Enable BOOT LED"
-	help
-	  Enable to turn an LED on when the board is booting.
-
-if LED_STATUS_BOOT_ENABLE
-
-config LED_STATUS_BOOT
-	int "LED to light when the board is booting"
-	help
-	  Valid enabled LED device number.
-
-endif # LED_STATUS_BOOT_ENABLE
-
-config LED_STATUS_RED_ENABLE
-	bool "Enable red LED"
-	help
-	  Enable red status LED.
-
-if LED_STATUS_RED_ENABLE
-
-config LED_STATUS_RED
-	int "Red LED identification"
-	help
-	  Valid enabled LED device number.
-
-endif # LED_STATUS_RED_ENABLE
-
-config LED_STATUS_YELLOW_ENABLE
-	bool "Enable yellow LED"
-	help
-	  Enable yellow status LED.
-
-if LED_STATUS_YELLOW_ENABLE
-
-config LED_STATUS_YELLOW
-	int "Yellow LED identification"
-	help
-	  Valid enabled LED device number.
-
-endif # LED_STATUS_YELLOW_ENABLE
-
-config LED_STATUS_BLUE_ENABLE
-	bool "Enable blue LED"
-	help
-	  Enable blue status LED.
-
-if LED_STATUS_BLUE_ENABLE
-
-config LED_STATUS_BLUE
-	int "Blue LED identification"
-	help
-	  Valid enabled LED device number.
-
-endif # LED_STATUS_BLUE_ENABLE
-
-config LED_STATUS_GREEN_ENABLE
-	bool "Enable green LED"
-	help
-	  Enable green status LED.
-
-if LED_STATUS_GREEN_ENABLE
-
-config LED_STATUS_GREEN
-	int "Green LED identification"
-	help
-	  Valid enabled LED device number (0-5).
-
-endif # LED_STATUS_GREEN_ENABLE
-
-config LED_STATUS_CMD
-	bool "Enable status LED commands"
-
-endif # LED_STATUS
-
 endmenu
Signature · 1 line
2.43.0
#21 lore raw

PATCH v3 11/25 led: Drop the legacy LED command

In reply to Simon Glass

This is not used by any board. Drop it.

---

(no changes since v1)

 cmd/Makefile     |   1 -
 cmd/legacy_led.c | 145 -----------------------------------------------
 2 files changed, 146 deletions(-)
 delete mode 100644 cmd/legacy_led.c
cmd/Makefile +0 -1
index d1f369deec0..6052c1dd096 100644
@@ -101,7 +101,6 @@ obj-$(CONFIG_CMD_IRQ) += irq.o
 obj-$(CONFIG_CMD_ITEST) += itest.o
 obj-$(CONFIG_CMD_JFFS2) += jffs2.o
 obj-$(CONFIG_CMD_CRAMFS) += cramfs.o
-obj-$(CONFIG_LED_STATUS_CMD) += legacy_led.o
 obj-$(CONFIG_CMD_LED) += led.o
 obj-$(CONFIG_CMD_LICENSE) += license.o
 obj-y += load.o
cmd/legacy_led.c deleted +0 -145

145 lines not on this page · raw message

Signature · 1 line
2.43.0
author Applied
#22 lore raw

Re: [PATCH v3 11/25] led: Drop the legacy LED command

This is not used by any board. Drop it.

---

(no changes since v1)

 cmd/Makefile     |   1 -
 cmd/legacy_led.c | 145 -----------------------------------------------
 2 files changed, 146 deletions(-)
 delete mode 100644 cmd/legacy_led.c

Applied to ci/master, thanks!

#23 lore raw

PATCH v3 12/25 misc: Drop gpio_led driver

In reply to Simon Glass

This is not used anymore, so drop it.

---

(no changes since v1)

 drivers/misc/Makefile   |   1 -
 drivers/misc/gpio_led.c | 106 ----------------------------------------
 2 files changed, 107 deletions(-)
 delete mode 100644 drivers/misc/gpio_led.c
drivers/misc/Makefile +0 -1
index dac805e4cdd..b7332587faa 100644
@@ -49,7 +49,6 @@ obj-$(CONFIG_IHS_FPGA) += ihs_fpga.o
 obj-$(CONFIG_IMX8) += imx8/
 obj-$(CONFIG_IMX_ELE) += imx_ele/
 obj-$(CONFIG_LED_STATUS) += status_led.o
-obj-$(CONFIG_LED_STATUS_GPIO) += gpio_led.o
 obj-$(CONFIG_MPC83XX_SERDES) += mpc83xx_serdes.o
 obj-$(CONFIG_$(PHASE_)LS2_SFP) += ls2_sfp.o
 obj-$(CONFIG_$(XPL_)MXC_OCOTP) += mxc_ocotp.o
drivers/misc/gpio_led.c deleted +0 -106

106 lines not on this page · raw message

Signature · 1 line
2.43.0
author Applied
#24 lore raw

Re: [PATCH v3 12/25] misc: Drop gpio_led driver

This is not used anymore, so drop it.

---

(no changes since v1)

 drivers/misc/Makefile   |   1 -
 drivers/misc/gpio_led.c | 106 ----------------------------------------
 2 files changed, 107 deletions(-)
 delete mode 100644 drivers/misc/gpio_led.c

Applied to ci/master, thanks!

#25 lore raw

PATCH v3 13/25 pca9551_led: Delete driver

In reply to Simon Glass

This driver is not used anymore. Drop it.

---

(no changes since v1)

 drivers/misc/Kconfig       |  13 ---
 drivers/misc/Makefile      |   1 -
 drivers/misc/pca9551_led.c | 170 -------------------------------------
 3 files changed, 184 deletions(-)
 delete mode 100644 drivers/misc/pca9551_led.c
drivers/misc/Kconfig +0 -13
index 6009d55f400..23eb509d974 100644
@@ -446,19 +446,6 @@ config SPL_PWRSEQ
 	  device. When the device is started up, its power sequence can be
 	  initiated.
 
-config PCA9551_LED
-	bool "Enable PCA9551 LED driver"
-	help
-	  Enable driver for PCA9551 LED controller. This controller
-	  is connected via I2C. So I2C needs to be enabled.
-
-config PCA9551_I2C_ADDR
-	hex "I2C address of PCA9551 LED controller"
-	depends on PCA9551_LED
-	default 0x60
-	help
-	  The I2C address of the PCA9551 LED controller.
-
 config STM32MP_FUSE
 	bool "Enable STM32MP fuse wrapper providing the fuse API"
 	depends on ARCH_STM32MP && MISC
drivers/misc/Makefile +0 -1
index b7332587faa..e8f48228084 100644
@@ -57,7 +57,6 @@ obj-$(CONFIG_NPCM_OTP) += npcm_otp.o
 obj-$(CONFIG_NPCM_HOST) += npcm_host_intf.o
 obj-$(CONFIG_NUVOTON_NCT6102D) += nuvoton_nct6102d.o
 obj-$(CONFIG_P2SB) += p2sb-uclass.o
-obj-$(CONFIG_PCA9551_LED) += pca9551_led.o
 obj-$(CONFIG_$(XPL_)PWRSEQ) += pwrseq-uclass.o
 ifdef CONFIG_QFW
 obj-y += qfw.o
drivers/misc/pca9551_led.c deleted +0 -170

170 lines not on this page · raw message

Signature · 1 line
2.43.0
author Applied
#26 lore raw

Re: [PATCH v3 13/25] pca9551_led: Delete driver

This driver is not used anymore. Drop it.

---

(no changes since v1)

 drivers/misc/Kconfig       |  13 ---
 drivers/misc/Makefile      |   1 -
 drivers/misc/pca9551_led.c | 170 -------------------------------------
 3 files changed, 184 deletions(-)
 delete mode 100644 drivers/misc/pca9551_led.c

Applied to ci/master, thanks!

#27 lore raw

PATCH v3 14/25 misc: status_led: Delete driver

In reply to Simon Glass

This driver is not used anymore. Drop it.

---

(no changes since v1)

 drivers/misc/Makefile     |   1 -
 drivers/misc/status_led.c | 124 --------------------------------------
 2 files changed, 125 deletions(-)
 delete mode 100644 drivers/misc/status_led.c
drivers/misc/Makefile +0 -1
index e8f48228084..e975559fd75 100644
@@ -48,7 +48,6 @@ obj-$(CONFIG_$(XPL_)I2C_EEPROM) += i2c_eeprom.o
 obj-$(CONFIG_IHS_FPGA) += ihs_fpga.o
 obj-$(CONFIG_IMX8) += imx8/
 obj-$(CONFIG_IMX_ELE) += imx_ele/
-obj-$(CONFIG_LED_STATUS) += status_led.o
 obj-$(CONFIG_MPC83XX_SERDES) += mpc83xx_serdes.o
 obj-$(CONFIG_$(PHASE_)LS2_SFP) += ls2_sfp.o
 obj-$(CONFIG_$(XPL_)MXC_OCOTP) += mxc_ocotp.o
drivers/misc/status_led.c deleted +0 -124

124 lines not on this page · raw message

Signature · 1 line
2.43.0
author Applied
#28 lore raw

Re: [PATCH v3 14/25] misc: status_led: Delete driver

This driver is not used anymore. Drop it.

---

(no changes since v1)

 drivers/misc/Makefile     |   1 -
 drivers/misc/status_led.c | 124 --------------------------------------
 2 files changed, 125 deletions(-)
 delete mode 100644 drivers/misc/status_led.c

Applied to ci/master, thanks!

#29 lore raw

PATCH v3 15/25 m68k: Drop unused status_led.h header file

In reply to Simon Glass

This header file is not used, so drop it.

---

(no changes since v1)

 arch/m68k/lib/bootm.c | 3 ---
 1 file changed, 3 deletions(-)
arch/m68k/lib/bootm.c +0 -3
index 3dcff8076e3..1fa112f8dbf 100644
@@ -15,9 +15,6 @@
 #include <bzlib.h>
 #include <watchdog.h>
 #include <asm/byteorder.h>
-#ifdef CONFIG_SHOW_BOOT_PROGRESS
-# include <status_led.h>
-#endif
 
 DECLARE_GLOBAL_DATA_PTR;
 
Signature · 1 line
2.43.0
#30 lore raw

PATCH v3 16/25 powerpc: Drop status-LED code

In reply to Simon Glass

This is not used anymore, so drop it.

---

(no changes since v1)

 arch/powerpc/lib/interrupts.c | 6 ------
 1 file changed, 6 deletions(-)
arch/powerpc/lib/interrupts.c +0 -6
index 46208ae4c71..a2e7101a9d1 100644
@@ -11,9 +11,6 @@
 #include <irq_func.h>
 #include <asm/processor.h>
 #include <watchdog.h>
-#ifdef CONFIG_LED_STATUS
-#include <status_led.h>
-#endif
 #include <asm/ptrace.h>
 
 #ifndef CONFIG_MPC83XX_TIMER
@@ -83,9 +80,6 @@ void timer_interrupt(struct pt_regs *regs)
 		schedule();
 #endif    /* CONFIG_WATCHDOG || CONFIG_HW_WATCHDOG */
 
-#ifdef CONFIG_LED_STATUS
-	status_led_tick(timestamp);
-#endif /* CONFIG_LED_STATUS */
 }
 
 ulong get_timer (ulong base)
Signature · 1 line
2.43.0
author Applied
#31 lore raw

Re: [PATCH v3 16/25] powerpc: Drop status-LED code

This is not used anymore, so drop it.

---

(no changes since v1)

 arch/powerpc/lib/interrupts.c | 6 ------
 1 file changed, 6 deletions(-)

Applied to ci/master, thanks!

#32 lore raw

PATCH v3 17/25 igep00x0: Drop unused status_led.h header file

In reply to Simon Glass

This header file is not used, so drop it.

---

(no changes since v1)

 board/isee/igep00x0/igep00x0.c | 1 -
 1 file changed, 1 deletion(-)
board/isee/igep00x0/igep00x0.c +0 -1
index a35a7cd3b1f..35bb8c55806 100644
@@ -8,7 +8,6 @@
 #include <init.h>
 #include <malloc.h>
 #include <net.h>
-#include <status_led.h>
 #include <dm.h>
 #include <ns16550.h>
 #include <twl4030.h>
Signature · 1 line
2.43.0
#34 lore raw

PATCH v3 18/25 sunxi: Drop status-LED code

In reply to Simon Glass

This is not used anymore, so drop it.

---

(no changes since v1)

 board/sunxi/board.c | 6 ------
 1 file changed, 6 deletions(-)
board/sunxi/board.c +0 -6
index 824c322a0dc..cff7b8eb247 100644
@@ -49,7 +49,6 @@
 #include <spl.h>
 #include <sy8106a.h>
 #include <asm/setup.h>
-#include <status_led.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -550,11 +549,6 @@ void sunxi_board_init(void)
 {
 	int power_failed = 0;
 
-#ifdef CONFIG_LED_STATUS
-	if (IS_ENABLED(CONFIG_SPL_DRIVERS_MISC))
-		status_led_init();
-#endif
-
 #ifdef CONFIG_SY8106A_POWER
 	power_failed = sy8106a_set_vout1(CONFIG_SY8106A_VOUT1_VOLT);
 #endif
Signature · 1 line
2.43.0
author Applied
#35 lore raw

Re: [PATCH v3 18/25] sunxi: Drop status-LED code

This is not used anymore, so drop it.

---

(no changes since v1)

 board/sunxi/board.c | 6 ------
 1 file changed, 6 deletions(-)

Applied to ci/master, thanks!

#36 lore raw

PATCH v3 19/25 common: Drop status-LED code in board_r

In reply to Simon Glass

This is not used anymore, so drop it.

---

(no changes since v1)

 common/board_r.c | 27 ---------------------------
 1 file changed, 27 deletions(-)
common/board_r.c +0 -27
index 62228a723e1..caac092c8e7 100644
@@ -53,7 +53,6 @@
 #include <pvblock.h>
 #include <scsi.h>
 #include <serial.h>
-#include <status_led.h>
 #include <stdio_dev.h>
 #include <timer.h>
 #include <trace.h>
@@ -459,29 +458,6 @@ static int initr_malloc_bootparams(void)
 }
 #endif
 
-static int initr_status_led(void)
-{
-	status_led_init();
-
-	return 0;
-}
-
-static int initr_boot_led_blink(void)
-{
-	status_led_boot_blink();
-
-	led_boot_blink();
-
-	return 0;
-}
-
-static int initr_boot_led_on(void)
-{
-	led_boot_on();
-
-	return 0;
-}
-
 #if defined(CONFIG_CMD_NET)
 static int initr_net(void)
 {
@@ -735,8 +711,6 @@ static init_fnc_t init_sequence_r[] = {
 #if defined(CONFIG_MICROBLAZE) || defined(CONFIG_M68K)
 	timer_init,		/* initialize timer */
 #endif
-	initr_status_led,
-	initr_boot_led_blink,
 	/* PPC has a udelay(20) here dating from 2002. Why? */
 #ifdef CONFIG_BOARD_LATE_INIT
 	board_late_init,
@@ -759,7 +733,6 @@ static init_fnc_t init_sequence_r[] = {
 #if defined(CFG_PRAM)
 	initr_mem,
 #endif
-	initr_boot_led_on,
 	run_main_loop,
 };
 
Signature · 1 line
2.43.0
author Applied
#37 lore raw

Re: [PATCH v3 19/25] common: Drop status-LED code in board_r

This is not used anymore, so drop it.

---

(no changes since v1)

 common/board_r.c | 27 ---------------------------
 1 file changed, 27 deletions(-)

Applied to ci/master, thanks!

#38 lore raw

PATCH v3 20/25 image: Drop unused status_led.h header file

In reply to Simon Glass

This header file is not used, so drop it.

---

(no changes since v1)

 boot/image.c | 4 ----
 1 file changed, 4 deletions(-)
boot/image.c +0 -4
index abac254e026..7bed8ba4b1f 100644
@@ -15,10 +15,6 @@
 #include <malloc.h>
 #include <u-boot/crc.h>
 
-#ifdef CONFIG_SHOW_BOOT_PROGRESS
-#include <status_led.h>
-#endif
-
 #if CONFIG_IS_ENABLED(FIT) || CONFIG_IS_ENABLED(OF_LIBFDT)
 #include <linux/libfdt.h>
 #include <fdt_support.h>
Signature · 1 line
2.43.0
author Applied
#39 lore raw

Re: [PATCH v3 20/25] image: Drop unused status_led.h header file

Quoted 11 lines · Simon Glass

This header file is not used, so drop it.

---

(no changes since v1)

 boot/image.c | 4 ----
 1 file changed, 4 deletions(-)

Applied to ci/master, thanks!

#40 lore raw

PATCH v3 21/25 ide: Drop unused status_led.h header file

In reply to Simon Glass

This header file is not used, so drop it.

---

(no changes since v1)

 cmd/ide.c | 4 ----
 1 file changed, 4 deletions(-)
cmd/ide.c +0 -4
index 036489fda97..be3078ae88b 100644
@@ -22,10 +22,6 @@
 #include <ide.h>
 #include <ata.h>
 
-#ifdef CONFIG_LED_STATUS
-# include <status_led.h>
-#endif
-
 /* Current I/O Device	*/
 static int curr_device;
 
Signature · 1 line
2.43.0
author Applied
#41 lore raw

Re: [PATCH v3 21/25] ide: Drop unused status_led.h header file

This header file is not used, so drop it.

---

(no changes since v1)

 cmd/ide.c | 4 ----
 1 file changed, 4 deletions(-)

Applied to ci/master, thanks!

#42 lore raw

PATCH v3 22/25 mpc83xx: Drop status-LED code

In reply to Simon Glass

This is not used anymore, so drop it.

---

(no changes since v1)

 drivers/timer/mpc83xx_timer.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/timer/mpc83xx_timer.c +0 -5
index 9da74479aaa..aefc18898e9 100644
@@ -9,7 +9,6 @@
 #include <dm.h>
 #include <irq_func.h>
 #include <log.h>
-#include <status_led.h>
 #include <sysinfo.h>
 #include <time.h>
 #include <timer.h>
@@ -178,10 +177,6 @@ void timer_interrupt(struct pt_regs *regs)
 	if (CFG_SYS_WATCHDOG_FREQ && (priv->timestamp % (CFG_SYS_WATCHDOG_FREQ)) == 0)
 		schedule();
 #endif    /* CONFIG_WATCHDOG || CONFIG_HW_WATCHDOG */
-
-#ifdef CONFIG_LED_STATUS
-	status_led_tick(priv->timestamp);
-#endif /* CONFIG_LED_STATUS */
 }
 
 void wait_ticks(ulong ticks)
Signature · 1 line
2.43.0
author Applied
#43 lore raw

Re: [PATCH v3 22/25] mpc83xx: Drop status-LED code

This is not used anymore, so drop it.

---

(no changes since v1)

 drivers/timer/mpc83xx_timer.c | 5 -----
 1 file changed, 5 deletions(-)

Applied to ci/master, thanks!

#44 lore raw

PATCH v3 23/25 net: Drop status-LED code

In reply to Simon Glass

This is not used anymore, so drop it.

---

(no changes since v1)

 net/bootp.c |  7 -------
 net/net.c   | 33 ---------------------------------
 2 files changed, 40 deletions(-)
net/bootp.c +0 -7
index afd5b48094a..42462afda3e 100644
@@ -19,9 +19,6 @@
 #include <linux/delay.h>
 #include <net/tftp.h>
 #include "bootp.h"
-#ifdef CONFIG_LED_STATUS
-#include <status_led.h>
-#endif
 #ifdef CONFIG_BOOTP_RANDOM_DELAY
 #include "net_rand.h"
 #endif
@@ -370,10 +367,6 @@ static void bootp_handler(uchar *pkt, unsigned dest, struct in_addr sip,
 	/*
 	 *	Got a good BOOTP reply.	 Copy the data into our variables.
 	 */
-#if defined(CONFIG_LED_STATUS) && defined(CONFIG_LED_STATUS_BOOT_ENABLE)
-	status_led_set(CONFIG_LED_STATUS_BOOT, CONFIG_LED_STATUS_OFF);
-#endif
-
 	store_net_params(bp);		/* Store net parameters from reply */
 
 	/* Retrieve extended information (we must parse the vendor area) */
net/net.c +0 -33
index f47e9fbe33a..fc869d8bd48 100644
@@ -100,10 +100,6 @@
 #include <net/pcap.h>
 #endif
 #include <net/udp.h>
-#if defined(CONFIG_LED_STATUS)
-#include <miiphy.h>
-#include <status_led.h>
-#endif
 #include <watchdog.h>
 #include <linux/compiler.h>
 #include <test/test.h>
@@ -614,19 +610,6 @@ restart:
 		break;
 	}
 
-#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
-#if	defined(CONFIG_SYS_FAULT_ECHO_LINK_DOWN)	&& \
-	defined(CONFIG_LED_STATUS)			&& \
-	defined(CONFIG_LED_STATUS_RED)
-	/*
-	 * Echo the inverted link state to the fault LED.
-	 */
-	if (miiphy_link(eth_get_dev()->name, CONFIG_SYS_FAULT_MII_ADDR))
-		status_led_set(CONFIG_LED_STATUS_RED, CONFIG_LED_STATUS_OFF);
-	else
-		status_led_set(CONFIG_LED_STATUS_RED, CONFIG_LED_STATUS_ON);
-#endif /* CONFIG_SYS_FAULT_ECHO_LINK_DOWN, ... */
-#endif /* CONFIG_MII, ... */
 #ifdef CONFIG_USB_KEYBOARD
 	net_busy_flag = 1;
 #endif
@@ -684,22 +667,6 @@ restart:
 		    ((get_timer(0) - time_start) > time_delta)) {
 			thand_f *x;
 
-#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
-#if	defined(CONFIG_SYS_FAULT_ECHO_LINK_DOWN)	&& \
-	defined(CONFIG_LED_STATUS)			&& \
-	defined(CONFIG_LED_STATUS_RED)
-			/*
-			 * Echo the inverted link state to the fault LED.
-			 */
-			if (miiphy_link(eth_get_dev()->name,
-					CONFIG_SYS_FAULT_MII_ADDR))
-				status_led_set(CONFIG_LED_STATUS_RED,
-					       CONFIG_LED_STATUS_OFF);
-			else
-				status_led_set(CONFIG_LED_STATUS_RED,
-					       CONFIG_LED_STATUS_ON);
-#endif /* CONFIG_SYS_FAULT_ECHO_LINK_DOWN, ... */
-#endif /* CONFIG_MII, ... */
 			debug_cond(DEBUG_INT_STATE, "--- net_loop timeout\n");
 			x = time_handler;
 			time_handler = (thand_f *)0;
Signature · 1 line
2.43.0
author Applied
#45 lore raw

Re: [PATCH v3 23/25] net: Drop status-LED code

This is not used anymore, so drop it.

---

(no changes since v1)

 net/bootp.c |  7 -------
 net/net.c   | 33 ---------------------------------
 2 files changed, 40 deletions(-)

Applied to ci/master, thanks!

#46 lore raw

PATCH v3 24/25 led: Drop status_led header file

In reply to Simon Glass

This is not needed anymore. Drop it.

---

(no changes since v1)

 include/status_led.h | 104 -------------------------------------------
 1 file changed, 104 deletions(-)
 delete mode 100644 include/status_led.h
include/status_led.h deleted +0 -104
deleted file mode 100644
index 59cf9f89956..00000000000
@@ -1,104 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2000-2004
- * Wolfgang Denk, DENX Software Engineering, [email protected].
- */
-
-/*
- * The purpose of this code is to signal the operational status of a
- * target which usually boots over the network; while running in
- * PCBoot, a status LED is blinking. As soon as a valid BOOTP reply
- * message has been received, the LED is turned off. The Linux
- * kernel, once it is running, will start blinking the LED again,
- * with another frequency.
- */
-
-#ifndef _STATUS_LED_H_
-#define	_STATUS_LED_H_
-
-#ifdef CONFIG_LED_STATUS
-
-#define LED_STATUS_PERIOD	(CONFIG_SYS_HZ / CONFIG_LED_STATUS_FREQ)
-#ifdef CONFIG_LED_STATUS1
-#define LED_STATUS_PERIOD1	(CONFIG_SYS_HZ / CONFIG_LED_STATUS_FREQ1)
-#endif /* CONFIG_LED_STATUS1 */
-#ifdef CONFIG_LED_STATUS2
-#define LED_STATUS_PERIOD2	(CONFIG_SYS_HZ / CONFIG_LED_STATUS_FREQ2)
-#endif /* CONFIG_LED_STATUS2 */
-#ifdef CONFIG_LED_STATUS3
-#define LED_STATUS_PERIOD3	(CONFIG_SYS_HZ / CONFIG_LED_STATUS_FREQ3)
-#endif /* CONFIG_LED_STATUS3 */
-#ifdef CONFIG_LED_STATUS4
-#define LED_STATUS_PERIOD4	(CONFIG_SYS_HZ / CONFIG_LED_STATUS_FREQ4)
-#endif /* CONFIG_LED_STATUS4 */
-#ifdef CONFIG_LED_STATUS5
-#define LED_STATUS_PERIOD5	(CONFIG_SYS_HZ / CONFIG_LED_STATUS_FREQ5)
-#endif /* CONFIG_LED_STATUS5 */
-
-void status_led_init(void);
-void status_led_tick(unsigned long timestamp);
-void status_led_set(int led, int state);
-
-static inline void status_led_boot_blink(void)
-{
-#ifdef CONFIG_LED_STATUS_BOOT_ENABLE
-	status_led_set(CONFIG_LED_STATUS_BOOT, CONFIG_LED_STATUS_BLINKING);
-#endif
-}
-
-/*****  MVS v1  **********************************************************/
-#if (defined(CONFIG_MVS) && CONFIG_MVS < 2)
-# define STATUS_LED_PAR		im_ioport.iop_pdpar
-# define STATUS_LED_DIR		im_ioport.iop_pddir
-# undef  STATUS_LED_ODR
-# define STATUS_LED_DAT		im_ioport.iop_pddat
-
-# define STATUS_LED_ACTIVE	1		/* LED on for bit == 1	*/
-
-/*****  Someone else defines these  *************************************/
-#elif defined(STATUS_LED_PAR)
-  /*
-   * ADVICE: Define in your board configuration file rather than
-   * filling this file up with lots of custom board stuff.
-   */
-#else
-# error Status LED configuration missing
-#endif
-/************************************************************************/
-
-#include <asm/status_led.h>
-
-#else
-
-static inline void status_led_init(void) { }
-static inline void status_led_set(int led, int state) { }
-static inline void status_led_boot_blink(void) { }
-
-#endif	/* CONFIG_LED_STATUS	*/
-
-/*
- * Coloured LEDs API
- */
-#ifndef	__ASSEMBLY__
-void coloured_LED_init(void);
-void red_led_on(void);
-void red_led_off(void);
-void green_led_on(void);
-void green_led_off(void);
-void yellow_led_on(void);
-void yellow_led_off(void);
-void blue_led_on(void);
-void blue_led_off(void);
-#else
-	.extern LED_init
-	.extern red_led_on
-	.extern red_led_off
-	.extern yellow_led_on
-	.extern yellow_led_off
-	.extern green_led_on
-	.extern green_led_off
-	.extern blue_led_on
-	.extern blue_led_off
-#endif
-
-#endif	/* _STATUS_LED_H_	*/
Signature · 1 line
2.43.0
author Applied
#47 lore raw

Re: [PATCH v3 24/25] led: Drop status_led header file

This is not needed anymore. Drop it.

---

(no changes since v1)

 include/status_led.h | 104 -------------------------------------------
 1 file changed, 104 deletions(-)
 delete mode 100644 include/status_led.h

Applied to ci/master, thanks!

#48 lore raw

PATCH v3 25/25 doc: Add devicetree bindings for options

In reply to Simon Glass

Some of U-Boot's options have made it upstream, so bring in the binding file.

This is taken from dt-schema commit c9b4797

---

(no changes since v2)

Changes in v2:
- Enable LED on the 5 affected platforms
- Reorder patches for bisectability
- Add dt-schema bindings for LED

 doc/device-tree-bindings/options.yaml        |  79 +++++++++++
 doc/device-tree-bindings/options/u-boot.yaml | 136 +++++++++++++++++++
 2 files changed, 215 insertions(+)
 create mode 100644 doc/device-tree-bindings/options.yaml
 create mode 100644 doc/device-tree-bindings/options/u-boot.yaml
doc/device-tree-bindings/options.yaml new file +79 -0
new file mode 100644
index 00000000000..d6f5bbb00db
@@ -0,0 +1,79 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-clause
+# Copyright 2021 Google LLC
+#
+
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/options.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: /options Node
+
+maintainers:
+  - Simon Glass <[email protected]>
+
+description: |
+  The '/options' node does not represent a real device, but serves as a place
+  for passing data into and between firmware components, such as memory
+  mappings. Data in the '/options' node does not represent the hardware. It is
+  ignored by operating systems.
+
+  Properties in this node should be common to (and used by) at least two
+  firmware projects, such as U-Boot and TF-A. Project-specific subnodes can be
+  used for properties which are specific to a single project.
+
+  This is based on the precedent set by IEEE 1275-1994 IEEE Standard for Boot
+  (Initialization Configuration) Firmware: Core Requirements and Practices
+  at https://www.openfirmware.info/data/docs/of1275.pdf
+
+  Purpose of '/options' node
+  --------------------------
+
+  A common problem with firmware is that many builds are needed to deal with the
+  slight variations between different, related models of the same hardware. For
+  example, one model may have a TPM and another may not. Devicetree provides an
+  excellent solution to this problem, in that the devicetree to actually use on
+  a platform can be injected in the factory based on which model is being
+  manufactured at the time.
+
+  A related problem causing build proliferation is dealing with the differences
+  between development firmware, developer-friendly firmware (e.g. with all
+  security features present but with the ability to access the command line),
+  test firmware (which runs tests used in the factory), final production
+  firmware (before signing), signed firmware (where the signatures have been
+  inserted) and the like. Ideally all or most of these should use the same
+  firmware build, with just some options to determine the features available.
+  For example, being able to control whether the UART console or JTAG are
+  available, on any image, is a great debugging aid.
+
+  When the firmware consists of multiple parts (various U-Boot phases, TF-A,
+  OP-TEE), it is helpful that all operate the same way at runtime, regardless of
+  how they were built. This can be achieved by passing the runtime configuration
+  (e.g. 'enable UART console', 'here are your public keys') along the chain
+  through each firmware stage. It is frustrating to have to replicate a bug on
+  production firmware which does not happen on developer firmware, because they
+  are completely different builds.
+
+  The '/options' node provides useful functionality for this. It allows the
+  different controls to be 'factored out' of the firmware binaries, so they can
+  be controlled separately from the initial source-code build. The node can be
+  easily updated by a build or factory tool and can control various features in
+  the firmware binaries. It is similar in concept to a Kconfig option, except
+  that it can be changed after firmware binaries are built.
+
+  The '/options' node is similar in concept to /chosen (see chosen.yaml) except
+  that it is for passing information *into* and *between*) firmware components,
+  instead of from firmware to the operating system. Also, while operating
+  systems typically have a (sometimes extremely long) command line, firmware
+  binaries typically do not support this. The devicetree provides a more
+  structured approach in any case.
+
+properties:
+  $nodename:
+    const: options
+
+  "#address-cells": true
+  "#size-cells": true
+
+additionalProperties:
+  type: object
doc/device-tree-bindings/options/u-boot.yaml new file +136 -0

136 lines not on this page · raw message

Signature · 1 line
2.43.0
author Applied
#49 lore raw

Re: [PATCH v3 25/25] doc: Add devicetree bindings for options

Some of U-Boot's options have made it upstream, so bring in the binding file.

This is taken from dt-schema commit c9b4797

---

(no changes since v2)

Changes in v2:
- Enable LED on the 5 affected platforms
- Reorder patches for bisectability
- Add dt-schema bindings for LED

 doc/device-tree-bindings/options.yaml        |  79 +++++++++++
 doc/device-tree-bindings/options/u-boot.yaml | 136 +++++++++++++++++++
 2 files changed, 215 insertions(+)
 create mode 100644 doc/device-tree-bindings/options.yaml
 create mode 100644 doc/device-tree-bindings/options/u-boot.yaml

Applied to ci/master, thanks!

#50 lore raw
In reply to Simon Glass
Quoted 5 lines · Simon Glass

There has been an LED framework in U-Boot which uses driver model for about 9 years now. Recent work is underway to improve it and provide more features. It is probably a good time to drop the old code, which is only used by 5 boards:

I don't believe, from what I can tell, they are feature comparable, at the very least I have not been able to get the Pinephone working with this so as it stands I still don't think this patch set is ready yet.

Quoted 101 lines

./tools/qconfig.py -f LED_STATUS
5 matches
eb_cpu5282 eb_cpu5282_internal mx23_olinuxino pinephone socfpga_vining_fpga

This series attempts that.

The new /options node provides a way to provide U-Boot settings, and LEDs are implemented there. For now I have brought into the options schema from upstream. We can update it once the LED additions land there.

Changes in v3:
- Update commit message
- Combine removal and enable patches
- Combine removal and enable patches
- Combine removal and enable patches

Changes in v2:
- Combine code-removal and defconfig changes
- Add a patch to enable LED and LED_BOOT for these boards
- Enable LED on the 5 affected platforms
- Reorder patches for bisectability
- Add dt-schema bindings for LED

Simon Glass (25):
eb_cpu5282: Drop status-LED code and enable LED
vining_fpga: Drop status-LED code and use LED
mx23_olinuxino: Drop status-LED code and use LED
pinephone: Drop status-LED code and use LED
led: Drop LED_STATUS_BOARD_SPECIFIC
arm: Drop old LED support
common: doc: Drop old LED support
st: stm32f429: Drop old LED code
led: Make the LED config common
led: Drop LED_STATUS from Kconfig
led: Drop the legacy LED command
misc: Drop gpio_led driver
pca9551_led: Delete driver
misc: status_led: Delete driver
m68k: Drop unused status_led.h header file
powerpc: Drop status-LED code
igep00x0: Drop unused status_led.h header file
sunxi: Drop status-LED code
common: Drop status-LED code in board_r
image: Drop unused status_led.h header file
ide: Drop unused status_led.h header file
mpc83xx: Drop status-LED code
net: Drop status-LED code
led: Drop status_led header file
doc: Add devicetree bindings for options

 arch/arm/lib/crt0.S                          |   4 -
 arch/m68k/lib/bootm.c                        |   3 -
 arch/powerpc/lib/interrupts.c                |   6 -
 board/BuS/eb_cpu5282/eb_cpu5282.c            |  20 --
 board/isee/igep00x0/igep00x0.c               |   1 -
 board/olimex/mx23_olinuxino/mx23_olinuxino.c |   7 -
 board/softing/vining_fpga/socfpga.c          |   4 -
 board/st/stm32f429-discovery/Makefile        |   1 -
 board/st/stm32f429-discovery/led.c           |  39 ---
 board/sunxi/board.c                          |   6 -
 boot/image.c                                 |   4 -
 cmd/Makefile                                 |   1 -
 cmd/ide.c                                    |   4 -
 cmd/legacy_led.c                             | 185 ----------
 common/board_f.c                             |  22 --
 common/board_r.c                             |  27 --
 configs/eb_cpu5282_defconfig                 |   8 +-
 configs/eb_cpu5282_internal_defconfig        |   8 +-
 configs/mx23_olinuxino_defconfig             |  10 +-
 configs/pinephone_defconfig                  |   7 +-
 configs/socfpga_vining_fpga_defconfig        |  13 +-
 doc/README.LED                               |  77 -----
 doc/device-tree-bindings/options.yaml        |  79 +++++
 doc/device-tree-bindings/options/u-boot.yaml | 136 ++++++++
 drivers/led/Kconfig                          | 342 +------------------
 drivers/misc/Kconfig                         |  13 -
 drivers/misc/Makefile                        |   3 -
 drivers/misc/gpio_led.c                      | 106 ------
 drivers/misc/pca9551_led.c                   | 170 ---------
 drivers/misc/status_led.c                    | 124 -------
 drivers/timer/mpc83xx_timer.c                |   5 -
 include/configs/eb_cpu5282.h                 |   6 -
 include/status_led.h                         | 115 -------
 net/bootp.c                                  |   7 -
 net/net.c                                    |  33 --
 35 files changed, 236 insertions(+), 1360 deletions(-)
 delete mode 100644 board/st/stm32f429-discovery/led.c
 delete mode 100644 cmd/legacy_led.c
 delete mode 100644 doc/README.LED
 create mode 100644 doc/device-tree-bindings/options.yaml
 create mode 100644 doc/device-tree-bindings/options/u-boot.yaml
 delete mode 100644 drivers/misc/gpio_led.c
 delete mode 100644 drivers/misc/pca9551_led.c
 delete mode 100644 drivers/misc/status_led.c
 delete mode 100644 include/status_led.h

--
2.43.0

#51 lore raw

Hi Peter,

Quoted 11 lines · Peter Robinson
Quoted 5 lines · Simon Glass

There has been an LED framework in U-Boot which uses driver model for about 9 years now. Recent work is underway to improve it and provide more features. It is probably a good time to drop the old code, which is only used by 5 boards:

I don't believe, from what I can tell, they are feature comparable, at the very least I have not been able to get the Pinephone working with this so as it stands I still don't think this patch set is ready yet.

I don't have that hardware, nor the other 4, so cannot do anything with this feedback.

Can you please be clear what you are asking me to do?

Regards,
Simon

#52 lore raw

Hi Simon,

Quoted 9 lines · Peter Robinson
Quoted 8 lines · Simon Glass
Quoted 5 lines

There has been an LED framework in U-Boot which uses driver model for about 9 years now. Recent work is underway to improve it and provide more features. It is probably a good time to drop the old code, which is only used by 5 boards:

Quoted 6 lines
Quoted 3 lines

I don't believe, from what I can tell, they are feature comparable, at the very least I have not been able to get the Pinephone working with this so as it stands I still don't think this patch set is ready yet.

I don't have that hardware, nor the other 4, so cannot do anything with this feedback.

Don't you have any HW that has a LED on it that you can substitute to see what it does?

Quoted 1 line

Can you please be clear what you are asking me to do?

Either produce patches that work on the the pinephone, or docs I, or other developers, can use to implement the functionality.

Currently on the Pinephone the green LED lights up in the TPL/SPL (very early before ATF) stage and is lit up right through the the various FW stages, with your patch set I get no LED what so ever.

Peter

#53 lore raw
Quoted 21 lines · Peter Robinson

Hi Simon,

Quoted 9 lines · Peter Robinson
Quoted 8 lines · Simon Glass
Quoted 5 lines

There has been an LED framework in U-Boot which uses driver model for about 9 years now. Recent work is underway to improve it and provide more features. It is probably a good time to drop the old code, which is only used by 5 boards:

Quoted 6 lines
Quoted 3 lines

I don't believe, from what I can tell, they are feature comparable, at the very least I have not been able to get the Pinephone working with this so as it stands I still don't think this patch set is ready yet.

I don't have that hardware, nor the other 4, so cannot do anything with this feedback.

Don't you have any HW that has a LED on it that you can substitute to see what it does?

Quoted 8 lines
Quoted 1 line

Can you please be clear what you are asking me to do?

Either produce patches that work on the the pinephone, or docs I, or other developers, can use to implement the functionality.

Currently on the Pinephone the green LED lights up in the TPL/SPL (very early before ATF) stage and is lit up right through the the various FW stages, with your patch set I get no LED what so ever.

Please note that needing to confirm that we have equivalent functionality between old and new frameworks (and
https://lore.kernel.org/all/[email protected]/
might cover that) is why this series isn't ready for -next at this time.

Signature · 1 line
Tom
#54 lore raw

Hi Tom,

Quoted 28 lines · Tom Rini
Quoted 26 lines · Peter Robinson

Hi Simon,

Quoted 9 lines · Peter Robinson
Quoted 8 lines · Simon Glass
Quoted 5 lines

There has been an LED framework in U-Boot which uses driver model for about 9 years now. Recent work is underway to improve it and provide more features. It is probably a good time to drop the old code, which is only used by 5 boards:

Quoted 6 lines
Quoted 3 lines

I don't believe, from what I can tell, they are feature comparable, at the very least I have not been able to get the Pinephone working with this so as it stands I still don't think this patch set is ready yet.

I don't have that hardware, nor the other 4, so cannot do anything with this feedback.

Don't you have any HW that has a LED on it that you can substitute to see what it does?

Quoted 1 line

Can you please be clear what you are asking me to do?

Either produce patches that work on the the pinephone, or docs I, or other developers, can use to implement the functionality.

Quoted 8 lines
Quoted 3 lines

Currently on the Pinephone the green LED lights up in the TPL/SPL (very early before ATF) stage and is lit up right through the the various FW stages, with your patch set I get no LED what so ever.

Please note that needing to confirm that we have equivalent functionality between old and new frameworks (and
https://lore.kernel.org/all/[email protected]/
might cover that) is why this series isn't ready for -next at this time.

Yes, I'm not sure if Peter saw that, so I sent him the link.

Regards,
Simon

#55 lore raw
Quoted 42 lines · Simon Glass

Hi Tom,

Quoted 5 lines · Tom Rini
Quoted 3 lines · Peter Robinson

Hi Simon,

Quoted 1 line

On Tue, 5 Nov 2024 at 07:18, Peter Robinson <[email protected]>

Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines · Simon Glass
Quoted 2 lines

There has been an LED framework in U-Boot which uses driver

model for

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

about 9 years now. Recent work is underway to improve it and

provide

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

more features. It is probably a good time to drop the old code,

which

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line

is only used by 5 boards:

I don't believe, from what I can tell, they are feature

comparable, at

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

the very least I have not been able to get the Pinephone working

with

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

this so as it stands I still don't think this patch set is ready

yet.

Quoted 16 lines
Quoted 15 lines
Quoted 3 lines

I don't have that hardware, nor the other 4, so cannot do anything with this feedback.

Don't you have any HW that has a LED on it that you can substitute to see what it does?

Quoted 1 line

Can you please be clear what you are asking me to do?

Either produce patches that work on the the pinephone, or docs I, or other developers, can use to implement the functionality.

Currently on the Pinephone the green LED lights up in the TPL/SPL (very early before ATF) stage and is lit up right through the the various FW stages, with your patch set I get no LED what so ever.

Quoted 7 lines
Quoted 4 lines

Please note that needing to confirm that we have equivalent functionality between old and new frameworks (and
https://lore.kernel.org/all/[email protected]/
might cover that) is why this series isn't ready for -next at this time.

Yes, I'm not sure if Peter saw that, so I sent him the link.

I have seen it, I have not had the chance to dig out my pinephone to test it again because I was traveling and had competing priorities on my time (and I do this as a hobby).

But also I think we have a little time on this, the new functionality only landed recently and we've had a LOT of deprecated functionality hang around for a lot longer than that. I think we should get this right rather than jam it through.

Peter

#56 lore raw

Hi Peter,

Quoted 45 lines · Peter Robinson
Quoted 41 lines · Simon Glass

Hi Tom,

Quoted 36 lines · Tom Rini
Quoted 21 lines · Peter Robinson

Hi Simon,

Quoted 9 lines · Peter Robinson
Quoted 8 lines · Simon Glass
Quoted 5 lines

There has been an LED framework in U-Boot which uses driver model for about 9 years now. Recent work is underway to improve it and provide more features. It is probably a good time to drop the old code, which is only used by 5 boards:

Quoted 6 lines
Quoted 3 lines

I don't believe, from what I can tell, they are feature comparable, at the very least I have not been able to get the Pinephone working with this so as it stands I still don't think this patch set is ready yet.

I don't have that hardware, nor the other 4, so cannot do anything with this feedback.

Don't you have any HW that has a LED on it that you can substitute to see what it does?

Quoted 8 lines
Quoted 1 line

Can you please be clear what you are asking me to do?

Either produce patches that work on the the pinephone, or docs I, or other developers, can use to implement the functionality.

Currently on the Pinephone the green LED lights up in the TPL/SPL (very early before ATF) stage and is lit up right through the the various FW stages, with your patch set I get no LED what so ever.

Please note that needing to confirm that we have equivalent functionality between old and new frameworks (and
https://lore.kernel.org/all/[email protected]/
might cover that) is why this series isn't ready for -next at this time.

Quoted 6 lines
Quoted 1 line

Yes, I'm not sure if Peter saw that, so I sent him the link.

I have seen it, I have not had the chance to dig out my pinephone to test it again because I was traveling and had competing priorities on my time (and I do this as a hobby).

But also I think we have a little time on this, the new functionality only landed recently and we've had a LOT of deprecated functionality hang around for a lot longer than that. I think we should get this right rather than jam it through.

There's plenty of time for you to test. But we're really not losing anything by applying these patches (and also [1]). It is more likely to work for your board, but if it doesn't, we can focus efforts on what is wrong rather than trying to keep the old code around.

One of the challenges I have, as someone who also does this as a hobby, is that few people are willing to take on deprecation efforts. This work is not very interesting, most of the time, and it is extremely hard to get things to actually land, since anyone can raise their hand and say that it doesn't solve a particular use case. I suppose most people do U-Boot things in their spare time and few have a lot of time to test or try things out. So there needs to be a balance struck, to encourage more people to help.

Regards,
Simon

[1] https://patchwork.ozlabs.org/project/uboot/list/?series=432093&state=*

#57 lore raw
Quoted 67 lines · Simon Glass

Hi Peter,

Quoted 13 lines · Peter Robinson
Quoted 9 lines · Simon Glass

Hi Tom,

Quoted 5 lines · Tom Rini
Quoted 3 lines · Peter Robinson

Hi Simon,

Quoted 1 line

On Tue, 5 Nov 2024 at 07:18, Peter Robinson <[email protected]>

Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

On Sun, 3 Nov 2024 at 00:34, Simon Glass <[email protected]>

Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

There has been an LED framework in U-Boot which uses driver

model for

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

about 9 years now. Recent work is underway to improve it and

provide

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

more features. It is probably a good time to drop the old

code, which

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line

is only used by 5 boards:

I don't believe, from what I can tell, they are feature

comparable, at

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

the very least I have not been able to get the Pinephone

working with

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

this so as it stands I still don't think this patch set is

ready yet.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines

I don't have that hardware, nor the other 4, so cannot do anything with this feedback.

Don't you have any HW that has a LED on it that you can substitute

to

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

see what it does?

Quoted 1 line

Can you please be clear what you are asking me to do?

Either produce patches that work on the the pinephone, or docs I, or other developers, can use to implement the functionality.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines

Currently on the Pinephone the green LED lights up in the TPL/SPL (very early before ATF) stage and is lit up right through the the various FW stages, with your patch set I get no LED what so ever.

Please note that needing to confirm that we have equivalent functionality between old and new frameworks (and

https://lore.kernel.org/all/[email protected]/

Quoted 1 line
Quoted 1 line
Quoted 1 line

might cover that) is why this series isn't ready for -next at this

time.

Quoted 5 lines
Quoted 2 lines

Yes, I'm not sure if Peter saw that, so I sent him the link.

I have seen it, I have not had the chance to dig out my pinephone to

test it again because I was traveling and had competing priorities on my time (and I do this as a hobby).

Quoted 2 lines

But also I think we have a little time on this, the new functionality

Quoted 9 lines

only landed recently and we've had a LOT of deprecated functionality hang around for a lot longer than that. I think we should get this right rather than jam it through.

There's plenty of time for you to test. But we're really not losing anything by applying these patches (and also [1]). It is more likely to work for your board, but if it doesn't, we can focus efforts on what is wrong rather than trying to keep the old code around.

I'm sorry but I disagree, bulldozing patches in just because it's suitable for you but breaks actual usecases is not the right way to do thing, at the moment this works and it useful features for users. Actively breaking valid UX Is hostile and not the right way to do things!

Quoted 3 lines

One of the challenges I have, as someone who also does this as a hobby, is that few people are willing to take on deprecation efforts.

I do this as a hobby too, you are not unique here.

Quoted 7 lines

This work is not very interesting, most of the time, and it is extremely hard to get things to actually land, since anyone can raise their hand and say that it doesn't solve a particular use case. I suppose most people do U-Boot things in their spare time and few have a lot of time to test or try things out. So there needs to be a balance struck, to encourage more people to help.

I'm sorry, I do feel for you, I have the same problem and I end up spending most of my spare of late reading emails due to the deluge.

But actively breaking valid usecases by bulldozing things through, it NOT the way to handle things, I'm sorry here what role you perceive you play whether it be a full time employee, paid contractor or hobbyist isn't a valid reason for forcing through patches, please do not use that as a reason.

#58 lore raw
In reply to Tom Rini

Hi Tom,

Quoted 28 lines · Tom Rini
Quoted 26 lines · Peter Robinson

Hi Simon,

Quoted 9 lines · Peter Robinson
Quoted 8 lines · Simon Glass
Quoted 5 lines

There has been an LED framework in U-Boot which uses driver model for about 9 years now. Recent work is underway to improve it and provide more features. It is probably a good time to drop the old code, which is only used by 5 boards:

Quoted 6 lines
Quoted 3 lines

I don't believe, from what I can tell, they are feature comparable, at the very least I have not been able to get the Pinephone working with this so as it stands I still don't think this patch set is ready yet.

I don't have that hardware, nor the other 4, so cannot do anything with this feedback.

Don't you have any HW that has a LED on it that you can substitute to see what it does?

Quoted 1 line

Can you please be clear what you are asking me to do?

Either produce patches that work on the the pinephone, or docs I, or other developers, can use to implement the functionality.

Quoted 8 lines
Quoted 3 lines

Currently on the Pinephone the green LED lights up in the TPL/SPL (very early before ATF) stage and is lit up right through the the various FW stages, with your patch set I get no LED what so ever.

Please note that needing to confirm that we have equivalent functionality between old and new frameworks (and
https://lore.kernel.org/all/[email protected]/
might cover that) is why this series isn't ready for -next at this time.

Link to series:
https://patchwork.ozlabs.org/project/uboot/list/?series=431000&state=*

Current status: marked 'changed requested' in patchwork. Applied to sjg tree.

Peter, if you would like to retest this series now that [1] is in -next, please do. Or if you can make time for some development with your device, that would be welcome.

Regards,
Simon

[1] https://patchwork.ozlabs.org/project/uboot/list/?series=432093&state=*