Home
last modified time | relevance | path

Searched refs:adc_clk (Results 1 – 25 of 29) sorted by relevance

12

/linux-6.3-rc2/drivers/iio/adc/
A Dmt6577_auxadc.c44 struct clk *adc_clk; member
224 ret = clk_prepare_enable(adc_dev->adc_clk); in mt6577_auxadc_resume()
244 clk_disable_unprepare(adc_dev->adc_clk); in mt6577_auxadc_suspend()
273 adc_dev->adc_clk = devm_clk_get(&pdev->dev, "main"); in mt6577_auxadc_probe()
274 if (IS_ERR(adc_dev->adc_clk)) { in mt6577_auxadc_probe()
276 return PTR_ERR(adc_dev->adc_clk); in mt6577_auxadc_probe()
279 ret = clk_prepare_enable(adc_dev->adc_clk); in mt6577_auxadc_probe()
285 adc_clk_rate = clk_get_rate(adc_dev->adc_clk); in mt6577_auxadc_probe()
314 clk_disable_unprepare(adc_dev->adc_clk); in mt6577_auxadc_probe()
328 clk_disable_unprepare(adc_dev->adc_clk); in mt6577_auxadc_remove()
A Dnpcm_adc.c32 struct clk *adc_clk; member
234 info->adc_clk = devm_clk_get(&pdev->dev, NULL); in npcm_adc_probe()
235 if (IS_ERR(info->adc_clk)) { in npcm_adc_probe()
237 return PTR_ERR(info->adc_clk); in npcm_adc_probe()
244 info->adc_sample_hz = clk_get_rate(info->adc_clk) / ((div + 1) * 2); in npcm_adc_probe()
318 clk_disable_unprepare(info->adc_clk); in npcm_adc_probe()
335 clk_disable_unprepare(info->adc_clk); in npcm_adc_remove()
A Dbcm_iproc_adc.c110 struct clk *adc_clk; member
534 adc_priv->adc_clk = devm_clk_get(&pdev->dev, "tsc_clk"); in iproc_adc_probe()
535 if (IS_ERR(adc_priv->adc_clk)) { in iproc_adc_probe()
538 ret = PTR_ERR(adc_priv->adc_clk); in iproc_adc_probe()
562 ret = clk_prepare_enable(adc_priv->adc_clk); in iproc_adc_probe()
592 clk_disable_unprepare(adc_priv->adc_clk); in iproc_adc_probe()
604 clk_disable_unprepare(adc_priv->adc_clk); in iproc_adc_remove()
A Dcc10001_adc.c57 struct clk *adc_clk; member
360 adc_dev->adc_clk = devm_clk_get_enabled(dev, "adc"); in cc10001_adc_probe()
361 if (IS_ERR(adc_dev->adc_clk)) { in cc10001_adc_probe()
363 return PTR_ERR(adc_dev->adc_clk); in cc10001_adc_probe()
366 adc_clk_rate = clk_get_rate(adc_dev->adc_clk); in cc10001_adc_probe()
A Dat91_adc.c216 struct clk *adc_clk; member
1105 st->adc_clk = devm_clk_get(&pdev->dev, "adc_op_clk"); in at91_adc_probe()
1106 if (IS_ERR(st->adc_clk)) { in at91_adc_probe()
1108 ret = PTR_ERR(st->adc_clk); in at91_adc_probe()
1112 ret = clk_prepare_enable(st->adc_clk); in at91_adc_probe()
1125 adc_clk = clk_get_rate(st->adc_clk); in at91_adc_probe()
1126 adc_clk_khz = adc_clk / 1000; in at91_adc_probe()
1129 mstrclk, adc_clk); in at91_adc_probe()
1131 prsc = (mstrclk / (2 * adc_clk)) - 1; in at91_adc_probe()
1212 clk_disable_unprepare(st->adc_clk); in at91_adc_probe()
[all …]
A Dmeson_saradc.c275 struct clk *adc_clk; member
687 priv->adc_clk = devm_clk_register(dev, &priv->clk_gate.hw); in meson_sar_adc_clk_init()
688 if (WARN_ON(IS_ERR(priv->adc_clk))) in meson_sar_adc_clk_init()
689 return PTR_ERR(priv->adc_clk); in meson_sar_adc_clk_init()
880 ret = clk_set_rate(priv->adc_clk, priv->param->clock_rate); in meson_sar_adc_init()
937 ret = clk_prepare_enable(priv->adc_clk); in meson_sar_adc_hw_enable()
969 clk_disable_unprepare(priv->adc_clk); in meson_sar_adc_hw_disable()
1215 priv->adc_clk = devm_clk_get_optional(dev, "adc_clk"); in meson_sar_adc_probe()
1216 if (IS_ERR(priv->adc_clk)) in meson_sar_adc_probe()
1217 return dev_err_probe(dev, PTR_ERR(priv->adc_clk), "failed to get adc clk\n"); in meson_sar_adc_probe()
[all …]
A Dti-ads131e08.c94 struct clk *adc_clk; member
894 st->adc_clk = devm_clk_get_enabled(&spi->dev, "adc-clk"); in ads131e08_probe()
895 if (IS_ERR(st->adc_clk)) in ads131e08_probe()
896 return dev_err_probe(&spi->dev, PTR_ERR(st->adc_clk), in ads131e08_probe()
899 adc_clk_hz = clk_get_rate(st->adc_clk); in ads131e08_probe()
/linux-6.3-rc2/drivers/input/touchscreen/
A Dimx6ul_tsc.c88 struct clk *adc_clk; member
321 err = clk_prepare_enable(tsc->adc_clk); in imx6ul_tsc_start()
346 clk_disable_unprepare(tsc->adc_clk); in imx6ul_tsc_start()
355 clk_disable_unprepare(tsc->adc_clk); in imx6ul_tsc_stop()
436 tsc->adc_clk = devm_clk_get(&pdev->dev, "adc"); in imx6ul_tsc_probe()
437 if (IS_ERR(tsc->adc_clk)) { in imx6ul_tsc_probe()
438 err = PTR_ERR(tsc->adc_clk); in imx6ul_tsc_probe()
/linux-6.3-rc2/Documentation/devicetree/bindings/iio/adc/
A Datmel,sama5d2-adc.yaml29 const: adc_clk
87 clocks = <&adc_clk>;
88 clock-names = "adc_clk";
A Datmel,sama9260-adc.yaml33 - const: adc_clk
112 clocks = <&adc_clk>, <&adc_op_clk>;
113 clock-names = "adc_clk", "adc_op_clk";
A Damlogic,meson-saradc.yaml47 - const: adc_clk
134 clock-names = "clkin", "core", "adc_clk", "adc_sel";
A Dcosmic,10001-adc.yaml55 clocks = <&adc_clk>;
A Dadi,ad9467.yaml69 clocks = <&adc_clk>;
/linux-6.3-rc2/drivers/media/dvb-frontends/
A Dstv0367.c46 u32 adc_clk; member
2413 stv0367cab_set_derot_freq(state, cab_state->adc_clk, in stv0367cab_algo()
2504 if (ifkhz > cab_state->adc_clk / 1000) { in stv0367cab_algo()
2508 - cab_state->adc_clk / 1000 + ifkhz; in stv0367cab_algo()
2519 cab_state->adc_clk) - in stv0367cab_algo()
2520 cab_state->adc_clk / 4000; in stv0367cab_algo()
2586 cab_state->adc_clk, in stv0367cab_set_frontend()
2637 cab_state->adc_clk / 4000); in stv0367cab_get_frontend()
2641 if (ifkhz > cab_state->adc_clk / 1000) in stv0367cab_get_frontend()
2643 - stv0367cab_get_derot_freq(state, cab_state->adc_clk) in stv0367cab_get_frontend()
[all …]
A Dsi2165.c49 u32 adc_clk; member
244 state->adc_clk = state->fvco_hz / (divm * 4u); in si2165_init_pll()
264 return state->adc_clk; in si2165_get_fe_clk()
/linux-6.3-rc2/Documentation/devicetree/bindings/input/touchscreen/
A Dbrcm,iproc-touchscreen.txt74 clocks = <&adc_clk>;
/linux-6.3-rc2/arch/arm64/boot/dts/amlogic/
A Dmeson-gxbb.dtsi787 clock-names = "clkin", "core", "adc_clk", "adc_sel";
A Dmeson-gxl.dtsi856 clock-names = "clkin", "core", "adc_clk", "adc_sel";
/linux-6.3-rc2/arch/arm/boot/dts/
A Dat91sam9rl.dtsi278 clock-names = "adc_clk", "adc_op_clk";
A Dat91sam9260.dtsi712 clock-names = "adc_clk", "adc_op_clk";
A Dat91sam9x5.dtsi810 clock-names = "adc_clk", "adc_op_clk";
A Dat91sam9g45.dtsi825 clock-names = "adc_clk", "adc_op_clk";
A Dsama5d2.dtsi1061 clock-names = "adc_clk";
A Dsama7g5.dtsi468 clock-names = "adc_clk";
A Dsama5d3.dtsi333 clock-names = "adc_clk", "adc_op_clk";

Completed in 74 milliseconds

12