This patch series adds support for Kinetic KTD3137 backlight IC. It supports linear brightness range from 0 to 2047.
While the chip supports PWM and MSB modes, they weren't included, since MSB mode supports only 8-bit brightness range, and PWM is not enabled on this board. I have checked other Xiaomi vendor kernels, and their configuration appear to be the same as on my board. I'm not aware if any device uses PWM mode with this chip. This series was developed and tested on the Xiaomi Redmi Note 9 board. Signed-off-by: Roman Vivchar <[email protected]> --- Changes in v3: - dt-bindings: bring back vin-supply (Krzysztof) - Driver: - Move enable_gpio from the struct to local variable - Use .name for i2c match (Sashiko) - Link to v2: https://patch.msgid.link/[email protected] Changes in v2: - dt-bindings: drop vin-supply from required list (Daniel) - Driver: - Drop val variable in ktd3137_init() (Daniel) - Replace KTD3137_DEFAULT_BRIGHTNESS with KTD3137_MAX_BRIGHTNESS (Daniel) - Drop gpiod_set_value_cansleep() in ktd3137_remove() (Daniel) - Link to v1: https://patch.msgid.link/[email protected] --- Roman Vivchar (2): dt-bindings: leds: backlight: add Kinetic KTD3137 backlight: add ktd3137 support .../bindings/leds/backlight/kinetic,ktd3137.yaml | 64 +++++ MAINTAINERS | 6 + drivers/video/backlight/Kconfig | 11 + drivers/video/backlight/Makefile | 1 + drivers/video/backlight/ktd3137.c | 257 +++++++++++++++++++++ 5 files changed, 339 insertions(+) --- base-commit: 5e6de6a2b522f659defacb1551d0465ba6ce13cf change-id: 20261102-6768-ktd3137-4ec95068fb6a Best regards, -- rva3 <[email protected]>
