summaryrefslogtreecommitdiffstats
path: root/Documentation/driver-api/pwm.rst
diff options
context:
space:
mode:
authorClemens Gruber <clemens.gruber@pqgruber.com>2021-05-07 15:18:42 +0200
committerThierry Reding <thierry.reding@gmail.com>2021-06-04 11:43:52 +0200
commit9e40ee18a1dc1623a5368d6232aaed52fd29dada (patch)
tree64b448d33a1be29dc1543c7679cbe58ffc99643b /Documentation/driver-api/pwm.rst
parent98761ce4b91b77e0602b1551d11925e817e8a9a5 (diff)
downloadlinux-9e40ee18a1dc1623a5368d6232aaed52fd29dada.tar.bz2
pwm: core: Support new usage_power setting in PWM state
If usage_power is set, the PWM driver is only required to maintain the power output but has more freedom regarding signal form. If supported, the signal can be optimized, for example to improve EMI by phase shifting individual channels. Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'Documentation/driver-api/pwm.rst')
-rw-r--r--Documentation/driver-api/pwm.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/driver-api/pwm.rst b/Documentation/driver-api/pwm.rst
index a7ca4f58305a..750734a7f874 100644
--- a/Documentation/driver-api/pwm.rst
+++ b/Documentation/driver-api/pwm.rst
@@ -48,6 +48,10 @@ After being requested, a PWM has to be configured using::
This API controls both the PWM period/duty_cycle config and the
enable/disable state.
+There is also a usage_power setting: If set, the PWM driver is only required to
+maintain the power output but has more freedom regarding signal form.
+If supported by the driver, the signal can be optimized, for example to improve
+EMI by phase shifting the individual channels of a chip.
The pwm_config(), pwm_enable() and pwm_disable() functions are just wrappers
around pwm_apply_state() and should not be used if the user wants to change