Skip to content

Commit 36dbcd2

Browse files
ukleineknunojsa
authored andcommitted
pwm: Drop documentation for time_unit
This was dropped in commit 4246bc9 ("pwm: Drop support for time units other than nanoseconds"). Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
1 parent 08b7d17 commit 36dbcd2

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

Documentation/driver-api/pwm.rst

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -115,34 +115,23 @@ channel that was exported. The following properties will then be available:
115115

116116
period
117117
The total period of the PWM signal (read/write).
118-
Value the sum of the active and inactive time of the PWM, using the
119-
time_unit property as a measurment unit.
118+
Value is in nanoseconds and is the sum of the active and inactive
119+
time of the PWM.
120120

121121
duty_cycle
122122
The active time of the PWM signal (read/write).
123-
Value must be less than the period and uses the time_unit property as
124-
a measurment unit.
123+
Value is in nanoseconds and must be less than the period.
125124

126125
phase
127126
The phase difference between the actual PWM signal and the reference one.
128-
The value must be lower than period and uses the time_unit property as a
129-
measurment unit.
127+
The value is expressed in nanoseconds and must be lower than period.
130128

131129
polarity
132130
Changes the polarity of the PWM signal (read/write).
133131
Writes to this property only work if the PWM chip supports changing
134132
the polarity. The polarity can only be changed if the PWM is not
135133
enabled. Value is the string "normal" or "inversed".
136134

137-
time_unit
138-
The time unit used to measure the pwm period, duty_cycle and phase.
139-
140-
- 1 - seconds
141-
- 2 - miliseconds
142-
- 3 - microseconds
143-
- 4 - nanoseconds
144-
- 5 - picoseconds
145-
146135
enable
147136
Enable/disable the PWM signal (read/write).
148137

0 commit comments

Comments
 (0)