Skip to content

Add WLED support to TPS68470 LED driver

Daniel Scally linux-leds platform-driver-x86 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8platform/x86: int3472: Add platform data for LEDsdrivers/platform/x86/intel/int3472/tps68470.c drivers/platform/x86/intel/int3472/tps68470.h include/linux/platform_data/tps68470.h+15 -01 reply
2/8platform/x86: int3472: Init LED registers using platform datadrivers/leds/leds-tps68470.c+51 -01 reply
3/8platform/x86: int3472: Add TPS68470 LED Board Datadrivers/platform/x86/intel/int3472/tps68470_board_data.c+13 -01 reply
4/8platform/x86: int3472: Add tps68470-led as clock consumerdrivers/platform/x86/intel/int3472/tps68470.c+13 -81 reply
5/8leds: tps68470: Refactor tps68470_brightness_get()drivers/leds/leds-tps68470.c+9 -84 replies
6/8leds: tps68470: Support the WLED driverdrivers/leds/leds-tps68470.c include/linux/mfd/tps68470.h+113 -14 replies
7/8platform/x86: int3472: Support LED lookups in board datadrivers/platform/x86/intel/int3472/tps68470.c drivers/platform/x86/intel/int3472/tps68470.h+16 -01 reply
8/8platform/x86: int3472: Define LED lookup data for MS Surface Godrivers/platform/x86/intel/int3472/tps68470_board_data.c+18 -03 replies

Reviews trailers per patch

5 of 8 patches have a Reviewed-by or Acked-by.

PatchHans de Goede
1/8
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8
7/8R-b
8/8

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

Read the v1 thread

Cover letter [PATCH 0/8] Add WLED support to TPS68470 LED driver

This series relies on the recent "leds: tps68470: LED driver for TPS68470" set from Kate Hsuan [1]

The TPS68470 provides two additional LED outputs on top of the indicator LEDs. Add support for those to the driver. The configuration of the chip is drawn from platform data which is expected to be passed to the driver. Additionally update the int3472-tps68470 driver to register led lookups from platform data so that the right LED is driven for each sensor, and finally define those lookups for the Microsoft Surface Go line.

Kate, Hans, this is the changes I made on top of the tps68470-led series to enable the IR LED on my Go2 (plus one additional patch to media). #5 could probably just be squashed into the other series though. The last two patches cover how I think the LED lookup should work - I unfortunately can't see an automatic way to guarantee the right LED goes to the right sensor.

Thanks
Dan

[1] https://lore.kernel.org/platform-driver-x86/[email protected]/T/

Daniel Scally (8):
platform/x86: int3472: Add platform data for LEDs platform/x86: int3472: Init LED registers using platform data platform/x86: int3472: Add TPS68470 LED Board Data platform/x86: int3472: Add tps68470-led as clock consumer
leds: tps68470: Refactor tps68470_brightness_get()
leds: tps68470: Support the WLED driver
platform/x86: int3472: Support LED lookups in board data platform/x86: int3472: Define LED lookup data for MS Surface Go

 drivers/leds/leds-tps68470.c                  | 170 +++++++++++++++++-
 drivers/platform/x86/intel/int3472/tps68470.c |  31 +++-
 drivers/platform/x86/intel/int3472/tps68470.h |  10 ++
 .../x86/intel/int3472/tps68470_board_data.c   |  31 ++++
 include/linux/mfd/tps68470.h                  |  12 ++
 include/linux/platform_data/tps68470.h        |  11 ++
 6 files changed, 248 insertions(+), 17 deletions(-)
Signature · 1 line
2.34.1