Skip to content

Commit 348fb6f

Browse files
lokeshvutlathierryreding
authored andcommitted
pwm: omap-dmtimer: Update description for PWM OMAP DM timer
Update the description with a brief about how PWM is generated using OMAP DM timer and add limitations for the PWM generations. Also add a link to the reference manual. Suggested-by: Uwe Kleine-König <[email protected]> Acked-by: Tony Lindgren <[email protected]> Signed-off-by: Lokesh Vutla <[email protected]> Acked-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 54091b5 commit 348fb6f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

drivers/pwm/pwm-omap-dmtimer.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,15 @@
1010
*
1111
* Description:
1212
* This file is the core OMAP support for the generic, Linux
13-
* PWM driver / controller, using the OMAP's dual-mode timers.
13+
* PWM driver / controller, using the OMAP's dual-mode timers
14+
* with a timer counter that goes up. When it overflows it gets
15+
* reloaded with the load value and the pwm output goes up.
16+
* When counter matches with match register, the output goes down.
17+
* Reference Manual: http://www.ti.com/lit/ug/spruh73q/spruh73q.pdf
18+
*
19+
* Limitations:
20+
* - When PWM is stopped, timer counter gets stopped immediately. This
21+
* doesn't allow the current PWM period to complete and stops abruptly.
1422
*/
1523

1624
#include <linux/clk.h>

0 commit comments

Comments
 (0)