Re: [PATCH] leds: flash: Add driver for the TI LM3554
From: Volodymyr Chapman
Date: Tue Nov 17 2026 - 12:58:23 EST
Hi Lee, Pavel,
Andy Shevchenko pointed out, in review of a related camera series, that
drivers/leds/leds-lm355x.c already lists the LM3554. I should have
mentioned it in the commit message.
It can't be used on the Lenovo ThinkPad 10 as it is: it only probes with
platform data (no ACPI or DT matching, and nothing in the tree provides
the platform data), it does not drive the HWEN enable line, which has to
be raised here before the chip responds, and it registers three plain
LED class devices rather than a flash LED class device, so there is no
flash timeout or fault reporting.
This patch follows commit f1aa35ab5943 ("media: atomisp: Drop the
atomisp custom lm3554 flash driver"), which removed the atomisp-specific
LM3554 driver for the same hardware and said that it should be
re-implemented with the led-class-flash API if needed.
Would you prefer a separate flash class driver for the LM3554 as in this
patch, or extending leds-lm355x (fwnode/ACPI matching, the enable GPIO
and the flash class)? I'll do whichever you prefer in v2, together with
the fixes for the issues the Sashiko review found.
Thanks,
Volodymyr