leds: pca9532: Use PWM1 for hardware blinking
authorBastien Curutchet <bastien.curutchet@bootlin.com>
Mon, 17 Jun 2024 14:39:08 +0000 (16:39 +0200)
committerLee Jones <lee@kernel.org>
Wed, 26 Jun 2024 16:04:36 +0000 (17:04 +0100)
commit48ca7f302cfcfa3d957e2305775532b1d67f5872
tree5eaf8a265e1da9aa7430e0998850f344978f7145
parent0e69c9062b406d9381eff8b6f585ce2a92c442f0
leds: pca9532: Use PWM1 for hardware blinking

PSC0/PWM0 are used by all LEDs for brightness and blinking. This causes
conflicts when you set a brightness of a new LED while an other one is
already using PWM0 for blinking.

Use PSC1/PWM1 for blinking.
Check that no other LED is already blinking with a different PSC1/PWM1
configuration to avoid conflict.

Signed-off-by: Bastien Curutchet <bastien.curutchet@bootlin.com>
Link: https://lore.kernel.org/r/20240617143910.154546-3-bastien.curutchet@bootlin.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/leds-pca9532.c