pwm: pca9685: Support new usage_power setting in PWM state
authorClemens Gruber <clemens.gruber@pqgruber.com>
Fri, 7 May 2021 13:18:43 +0000 (15:18 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 4 Jun 2021 09:43:52 +0000 (11:43 +0200)
commitae16db1fd3a1b8d1713ba6af5cf27be32918d2b8
tree2c18741985407aa78da2a4ccd46de93563f75c63
parent9e40ee18a1dc1623a5368d6232aaed52fd29dada
pwm: pca9685: Support new usage_power setting in PWM state

If usage_power is set, the pca9685 driver will phase shift the
individual channels relative to their channel number. This improves EMI
because the enabled channels no longer turn on at the same time, while
still maintaining the configured duty cycle / power output.

Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-pca9685.c