Lines Matching defs:pwm
9 * Also based on pwm-samsung.c
15 * reloaded with the load value and the pwm output goes up.
25 * is updated while the pwm pin is high, current pwm period/duty_cycle
29 * - PWM OMAP DM timer cannot change the polarity when pwm is active. When
47 #include <linux/pwm.h>
55 * struct pwm_omap_dmtimer_chip - Structure representing a pwm chip
58 * @mutex: Mutex to protect pwm apply state
65 /* Mutex to protect pwm apply state */
80 * @clk_rate: pwm timer clock rate
91 * pwm_omap_dmtimer_start() - Start the pwm omap dm timer in pwm mode
92 * @omap: Pointer to pwm omap dm timer chip
112 * pwm_omap_dmtimer_is_enabled() - Detect if the pwm is enabled.
113 * @omap: Pointer to pwm omap dm timer chip
115 * Return true if pwm is enabled else false.
127 * pwm_omap_dmtimer_polarity() - Detect the polarity of pwm.
128 * @omap: Pointer to pwm omap dm timer chip
130 * Return the polarity of pwm.
142 * pwm_omap_dmtimer_config() - Update the configuration of pwm omap dm timer
144 * @pwm: Pointer to PWM channel
152 struct pwm_device *pwm,
164 if (duty_ns == pwm_get_duty_cycle(pwm) &&
165 period_ns == pwm_get_period(pwm))
241 * pwm_omap_dmtimer_set_polarity() - Changes the polarity of the pwm dm timer.
243 * @pwm: Pointer to PWM channel
244 * @polarity: New pwm polarity to be set
247 struct pwm_device *pwm,
268 * pwm_omap_dmtimer_apply() - Changes the state of the pwm omap dm timer.
270 * @pwm: Pointer to PWM channel
276 struct pwm_device *pwm,
290 pwm_omap_dmtimer_set_polarity(chip, pwm, state->polarity);
292 ret = pwm_omap_dmtimer_config(chip, pwm, state->duty_cycle,
368 if (!of_get_property(timer, "ti,timer-pwm", NULL)) {
369 dev_err(&pdev->dev, "Missing ti,timer-pwm capability\n");
461 {.compatible = "ti,omap-dmtimer-pwm"},
468 .name = "omap-dmtimer-pwm",