pwm: Adapt sysfs API documentation to reality

Most low-level PWM drivers support duty_cycle == period, and so does the
sysfs API. Also polarity can be changed for enabled PWMs since commit
39100ceea7 ("pwm: Switch to the atomic API").

Reported-by: Jens Gehrlein <J.Gehrlein@eckelmann.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20230911154454.675057-1-u.kleine-koenig@pengutronix.de
This commit is contained in:
Uwe Kleine-König 2023-09-11 17:44:54 +02:00 committed by Jonathan Corbet
parent 02f9998754
commit 3240c37567
1 changed files with 3 additions and 3 deletions

View File

@ -111,13 +111,13 @@ channel that was exported. The following properties will then be available:
duty_cycle duty_cycle
The active time of the PWM signal (read/write). The active time of the PWM signal (read/write).
Value is in nanoseconds and must be less than the period. Value is in nanoseconds and must be less than or equal to the period.
polarity polarity
Changes the polarity of the PWM signal (read/write). Changes the polarity of the PWM signal (read/write).
Writes to this property only work if the PWM chip supports changing Writes to this property only work if the PWM chip supports changing
the polarity. The polarity can only be changed if the PWM is not the polarity.
enabled. Value is the string "normal" or "inversed". Value is the string "normal" or "inversed".
enable enable
Enable/disable the PWM signal (read/write). Enable/disable the PWM signal (read/write).