-
Notifications
You must be signed in to change notification settings - Fork 7.7k
drivers: led: Added driver for PCA9533 LED dimmer #92752
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
drivers: led: Added driver for PCA9533 LED dimmer #92752
Conversation
7b6c157
to
23b320f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @petrosyan-van,
Thanks for this LED driver. Please find a preliminary review below. I'll read it more carefully at the next pass.
cf4641c
to
e917b96
Compare
Added DT binding for the PCA9533 LED Dimmer Signed-off-by: Van Petrosyan <van.petrosyan@sensirion.com>
e3c09e6
to
5094895
Compare
Thanks a lot for the feedback! |
5094895
to
0e97db4
Compare
• Supports led_on/off, led_set_brightness (0–100 %, 152 Hz default), and led_blink (7 ms – 1.685 s) with automatic sharing of the two on-chip PWM engines; returns –EBUSY when a third distinct pair is requested. • Includes basic runtime-PM boilerplate to honour power-domain control; the device itself has no dedicated low-power states. Signed-off-by: Van Petrosyan <van.petrosyan@sensirion.com>
PCA9533 is added to the overlay so the new driver is compiled by the automated “build all LED drivers” test Signed-off-by: Van Petrosyan <van.petrosyan@sensirion.com>
0e97db4
to
09a7c6e
Compare
|
This PR implements a driver for the PCA9533 I2C LED dimmer with support for:
Tested on STM32U585 on a custom board. The chip has no specific power management features, but the driver includes PM hooks to respect power-domain relationships.
The PCA9533 is a simple 4-channel LED controller with two PWM engines that can be shared among LEDs.
Originally I was thinking to combine PCA9533 with PCA9633, but they actually have some major differences, like PWM engine limitation and inability to use PWM on all LED outputs at the same time on PCA9533