summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorClemens Gruber <clemens.gruber@pqgruber.com>2021-04-15 14:14:48 +0200
committerThierry Reding <thierry.reding@gmail.com>2021-04-23 18:44:55 +0200
commit9af1fba33b5751d71c0e6727a875b9fd7d8a99de (patch)
tree0696057e620fb2715c380d3cafc169723bdaccbf /tools
parent64d7d074acd52e1bdff621f2cb86c0aae9bcef80 (diff)
downloadlinux-9af1fba33b5751d71c0e6727a875b9fd7d8a99de.tar.bz2
pwm: pca9685: Switch to atomic API
The switch to the atomic API goes hand in hand with a few fixes to previously experienced issues: - The duty cycle is no longer lost after disable/enable (previously the OFF registers were cleared in disable and the user was required to call config to restore the duty cycle settings) - If one sets a period resulting in the same prescale register value, the sleep and write to the register is now skipped - Previously, only the full ON bit was toggled in GPIO mode (and full OFF cleared if set to high), which could result in both full OFF and full ON not being set and on=0, off=0, which is not allowed according to the datasheet - The OFF registers were reset to 0 in probe, which could lead to the forbidden on=0, off=0. Fixed by resetting to POR default (full OFF) Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions