Home
last modified time | relevance | path

Searched refs:pwm_clk (Results 1 – 10 of 10) sorted by relevance

/linux-6.1.9/drivers/pwm/ !
Dpwm-sti.c86 struct clk *pwm_clk; member
130 clk_rate = clk_get_rate(pc->pwm_clk); in sti_pwm_get_prescale()
195 ret = clk_enable(pc->pwm_clk); in sti_pwm_config()
245 clk_disable(pc->pwm_clk); in sti_pwm_config()
263 ret = clk_enable(pc->pwm_clk); in sti_pwm_enable()
299 clk_disable(pc->pwm_clk); in sti_pwm_disable()
616 pc->pwm_clk = of_clk_get_by_name(dev->of_node, "pwm"); in sti_pwm_probe()
617 if (IS_ERR(pc->pwm_clk)) { in sti_pwm_probe()
619 return PTR_ERR(pc->pwm_clk); in sti_pwm_probe()
622 ret = clk_prepare(pc->pwm_clk); in sti_pwm_probe()
[all …]
Dpwm-img.c64 struct clk *pwm_clk; member
106 input_clk_hz = clk_get_rate(imgchip->pwm_clk); in img_pwm_config()
231 clk_disable_unprepare(imgchip->pwm_clk); in img_pwm_runtime_suspend()
248 ret = clk_prepare_enable(imgchip->pwm_clk); in img_pwm_runtime_resume()
292 imgchip->pwm_clk = devm_clk_get(&pdev->dev, "imgchip"); in img_pwm_probe()
293 if (IS_ERR(imgchip->pwm_clk)) { in img_pwm_probe()
295 return PTR_ERR(imgchip->pwm_clk); in img_pwm_probe()
309 clk_rate = clk_get_rate(imgchip->pwm_clk); in img_pwm_probe()
Dpwm-lpc18xx-sct.c97 struct clk *pwm_clk; member
369 lpc18xx_pwm->pwm_clk = devm_clk_get(&pdev->dev, "pwm"); in lpc18xx_pwm_probe()
370 if (IS_ERR(lpc18xx_pwm->pwm_clk)) in lpc18xx_pwm_probe()
371 return dev_err_probe(&pdev->dev, PTR_ERR(lpc18xx_pwm->pwm_clk), in lpc18xx_pwm_probe()
374 ret = clk_prepare_enable(lpc18xx_pwm->pwm_clk); in lpc18xx_pwm_probe()
379 lpc18xx_pwm->clk_rate = clk_get_rate(lpc18xx_pwm->pwm_clk); in lpc18xx_pwm_probe()
448 clk_disable_unprepare(lpc18xx_pwm->pwm_clk); in lpc18xx_pwm_probe()
463 clk_disable_unprepare(lpc18xx_pwm->pwm_clk); in lpc18xx_pwm_remove()
Dpwm-imx27.c125 u32 period, prescaler, pwm_clk, val; in pwm_imx27_get_state() local
152 pwm_clk = clk_get_rate(imx->clk_per); in pwm_imx27_get_state()
158 state->period = DIV_ROUND_UP_ULL(tmp, pwm_clk); in pwm_imx27_get_state()
170 state->duty_cycle = DIV_ROUND_UP_ULL(tmp, pwm_clk); in pwm_imx27_get_state()
/linux-6.1.9/Documentation/devicetree/bindings/pwm/ !
Dbrcm,kona-pwm.txt19 clocks = <&pwm_clk>;
Dimg-pwm.txt20 clocks = <&pwm_clk>, <&system_clk>;
/linux-6.1.9/drivers/hwmon/ !
Dnpcm750-pwm-fan.c196 struct clk *pwm_clk; member
678 data->pwm_clk_freq = clk_get_rate(data->pwm_clk); in npcm7xx_pwm_init()
937 data->pwm_clk = devm_clk_get(dev, "pwm"); in npcm7xx_pwm_fan_probe()
938 if (IS_ERR(data->pwm_clk)) { in npcm7xx_pwm_fan_probe()
940 return PTR_ERR(data->pwm_clk); in npcm7xx_pwm_fan_probe()
Dvt1211.c124 u8 pwm_clk; member
301 data->pwm_clk = vt1211_read8(data, VT1211_REG_PWM_CLK); in vt1211_update_device()
614 res = 90000 >> (data->pwm_clk & 7); in show_pwm()
692 data->pwm_clk = (reg & 0xf8) | tmp; in set_pwm()
693 vt1211_write8(data, VT1211_REG_PWM_CLK, data->pwm_clk); in set_pwm()
/linux-6.1.9/arch/arm/boot/dts/ !
Dat91sam9rl.dtsi256 clock-names = "pwm_clk";
Dat91sam9263.dtsi723 clock-names = "pwm_clk";