Lines Matching refs:pwm
16 #include <linux/pwm.h>
75 static void rockchip_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, struct pwm_state *state)
108 static void rockchip_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, const struct pwm_state *state)
184 static int rockchip_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm, bool enable)
228 static int rockchip_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, const struct pwm_state *state)
240 pwm_get_state(pwm, &curstate);
244 ret = rockchip_pwm_enable(chip, pwm, false);
251 rockchip_pwm_config(chip, pwm, state);
253 ret = rockchip_pwm_enable(chip, pwm, state->enabled);
338 static const struct of_device_id rockchip_pwm_dt_ids[] = {{.compatible = "rockchip,rk2928-pwm", .data = &pwm_data_v1},
339 {.compatible = "rockchip,rk3288-pwm", .data = &pwm_data_v2},
340 {.compatible = "rockchip,vop-pwm", .data = &pwm_data_vop},
341 {.compatible = "rockchip,rk3328-pwm", .data = &pwm_data_v3},
370 pc->clk = devm_clk_get(&pdev->dev, "pwm");
473 .name = "rockchip-pwm",