Skip to content

led: Remove old status-LED code

Simon Glass u-boot 4 versions – Applied

Status from this message: Applied to ci/master, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 2/225 patches 33 repliesApplied
  2. v3 posting 1/28 of 25 patches 4 repliesApplied
  3. v225 patches 15 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v127 patches7 repliesSuperseded

Changes in v3 from the cover letter

- Update commit message
- Combine removal and enable patches
- Combine removal and enable patches
- Combine removal and enable patches

Patches in v3 posting 2/2 Applied

#Subject and filesSizeRepliesApplied
1/25eb_cpu5282: Drop status-LED code and enable LEDboard/BuS/eb_cpu5282/eb_cpu5282.c configs/eb_cpu5282_defconfig configs/eb_cpu5282_internal_defconfig +1 more+4 -381 reply
2/25vining_fpga: Drop status-LED code and use LEDboard/softing/vining_fpga/socfpga.c configs/socfpga_vining_fpga_defconfig+2 -151 reply
3/25mx23_olinuxino: Drop status-LED code and use LEDboard/olimex/mx23_olinuxino/mx23_olinuxino.c configs/mx23_olinuxino_defconfig+2 -150 replies
4/25pinephone: Drop status-LED code and use LEDconfigs/pinephone_defconfig+2 -54 replies
5/25led: Drop LED_STATUS_BOARD_SPECIFICcmd/legacy_led.c drivers/led/Kconfig include/status_led.h+1 -582 replies
6/25arm: Drop old LED supportarch/arm/lib/crt0.S+0 -41 reply
7/25common: doc: Drop old LED supportcommon/board_f.c doc/README.LED+0 -990 replies
8/25st: stm32f429: Drop old LED codeboard/st/stm32f429-discovery/Makefile board/st/stm32f429-discovery/led.c+0 -401 reply
9/25led: Make the LED config commondrivers/led/Kconfig+12 -100 replies
10/25led: Drop LED_STATUS from Kconfigdrivers/led/Kconfig+0 -3160 replies
11/25led: Drop the legacy LED commandcmd/Makefile cmd/legacy_led.c+0 -1461 reply
12/25misc: Drop gpio_led driverdrivers/misc/Makefile drivers/misc/gpio_led.c+0 -1071 reply
13/25pca9551_led: Delete driverdrivers/misc/Kconfig drivers/misc/Makefile drivers/misc/pca9551_led.c+0 -1841 reply
14/25misc: status_led: Delete driverdrivers/misc/Makefile drivers/misc/status_led.c+0 -1251 reply
15/25m68k: Drop unused status_led.h header filearch/m68k/lib/bootm.c+0 -30 replies
16/25powerpc: Drop status-LED codearch/powerpc/lib/interrupts.c+0 -61 reply
17/25igep00x0: Drop unused status_led.h header fileboard/isee/igep00x0/igep00x0.c+0 -11 reply
18/25sunxi: Drop status-LED codeboard/sunxi/board.c+0 -61 reply
19/25common: Drop status-LED code in board_rcommon/board_r.c+0 -271 reply
20/25image: Drop unused status_led.h header fileboot/image.c+0 -41 reply
21/25ide: Drop unused status_led.h header filecmd/ide.c+0 -41 reply
22/25mpc83xx: Drop status-LED codedrivers/timer/mpc83xx_timer.c+0 -51 reply
23/25net: Drop status-LED codenet/bootp.c net/net.c+0 -401 reply
24/25led: Drop status_led header fileinclude/status_led.h+0 -1041 reply
25/25doc: Add devicetree bindings for optionsdoc/device-tree-bindings/options.yaml doc/device-tree-bindings/options/u-boot.yaml+215 -01 reply

Reviews trailers per patch

2 of 25 patches have a Reviewed-by or Acked-by.

PatchJavier Martinez CanillasPatrice Chotard
1/25
2/25
3/25
4/25
5/25
6/25
7/25
8/25R-b
9/25
10/25
11/25
12/25
13/25
14/25
15/25
16/25
17/25R-b R-b
18/25
19/25
20/25
21/25
22/25
23/25
24/25
25/25

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 00/25] 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