/Linux-v5.4/drivers/iio/adc/ |
D | mt6577_auxadc.c | 44 struct clk *adc_clk; member 211 ret = clk_prepare_enable(adc_dev->adc_clk); in mt6577_auxadc_resume() 231 clk_disable_unprepare(adc_dev->adc_clk); in mt6577_auxadc_suspend() 263 adc_dev->adc_clk = devm_clk_get(&pdev->dev, "main"); in mt6577_auxadc_probe() 264 if (IS_ERR(adc_dev->adc_clk)) { in mt6577_auxadc_probe() 266 return PTR_ERR(adc_dev->adc_clk); in mt6577_auxadc_probe() 269 ret = clk_prepare_enable(adc_dev->adc_clk); in mt6577_auxadc_probe() 275 adc_clk_rate = clk_get_rate(adc_dev->adc_clk); in mt6577_auxadc_probe() 302 clk_disable_unprepare(adc_dev->adc_clk); in mt6577_auxadc_probe() 316 clk_disable_unprepare(adc_dev->adc_clk); in mt6577_auxadc_remove()
|
D | cc10001_adc.c | 57 struct clk *adc_clk; member 350 adc_dev->adc_clk = devm_clk_get(&pdev->dev, "adc"); in cc10001_adc_probe() 351 if (IS_ERR(adc_dev->adc_clk)) { in cc10001_adc_probe() 353 ret = PTR_ERR(adc_dev->adc_clk); in cc10001_adc_probe() 357 ret = clk_prepare_enable(adc_dev->adc_clk); in cc10001_adc_probe() 363 adc_clk_rate = clk_get_rate(adc_dev->adc_clk); in cc10001_adc_probe() 404 clk_disable_unprepare(adc_dev->adc_clk); in cc10001_adc_probe() 418 clk_disable_unprepare(adc_dev->adc_clk); in cc10001_adc_remove()
|
D | npcm_adc.c | 23 struct clk *adc_clk; member 204 info->adc_clk = devm_clk_get(&pdev->dev, NULL); in npcm_adc_probe() 205 if (IS_ERR(info->adc_clk)) { in npcm_adc_probe() 207 return PTR_ERR(info->adc_clk); in npcm_adc_probe() 214 info->adc_sample_hz = clk_get_rate(info->adc_clk) / ((div + 1) * 2); in npcm_adc_probe() 299 clk_disable_unprepare(info->adc_clk); in npcm_adc_probe() 316 clk_disable_unprepare(info->adc_clk); in npcm_adc_remove()
|
D | bcm_iproc_adc.c | 110 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() 594 clk_disable_unprepare(adc_priv->adc_clk); in iproc_adc_probe() 606 clk_disable_unprepare(adc_priv->adc_clk); in iproc_adc_remove()
|
D | meson_saradc.c | 274 struct clk *adc_clk; member 695 priv->adc_clk = devm_clk_register(&indio_dev->dev, &priv->clk_gate.hw); in meson_sar_adc_clk_init() 696 if (WARN_ON(IS_ERR(priv->adc_clk))) in meson_sar_adc_clk_init() 697 return PTR_ERR(priv->adc_clk); in meson_sar_adc_clk_init() 902 ret = clk_set_rate(priv->adc_clk, priv->param->clock_rate); in meson_sar_adc_init() 962 ret = clk_prepare_enable(priv->adc_clk); in meson_sar_adc_hw_enable() 994 clk_disable_unprepare(priv->adc_clk); in meson_sar_adc_hw_disable() 1248 priv->adc_clk = devm_clk_get(&pdev->dev, "adc_clk"); in meson_sar_adc_probe() 1249 if (IS_ERR(priv->adc_clk)) { in meson_sar_adc_probe() 1250 if (PTR_ERR(priv->adc_clk) == -ENOENT) { in meson_sar_adc_probe() [all …]
|
D | at91_adc.c | 194 struct clk *adc_clk; member 1151 unsigned int prsc, mstrclk, ticks, adc_clk, adc_clk_khz, shtim; in at91_adc_probe() local 1223 st->adc_clk = devm_clk_get(&pdev->dev, "adc_op_clk"); in at91_adc_probe() 1224 if (IS_ERR(st->adc_clk)) { in at91_adc_probe() 1226 ret = PTR_ERR(st->adc_clk); in at91_adc_probe() 1230 ret = clk_prepare_enable(st->adc_clk); in at91_adc_probe() 1243 adc_clk = clk_get_rate(st->adc_clk); in at91_adc_probe() 1244 adc_clk_khz = adc_clk / 1000; in at91_adc_probe() 1247 mstrclk, adc_clk); in at91_adc_probe() 1249 prsc = (mstrclk / (2 * adc_clk)) - 1; in at91_adc_probe() [all …]
|
/Linux-v5.4/drivers/input/touchscreen/ |
D | imx6ul_tsc.c | 88 struct clk *adc_clk; member 323 err = clk_prepare_enable(tsc->adc_clk); in imx6ul_tsc_open() 348 clk_disable_unprepare(tsc->adc_clk); in imx6ul_tsc_open() 359 clk_disable_unprepare(tsc->adc_clk); in imx6ul_tsc_close() 425 tsc->adc_clk = devm_clk_get(&pdev->dev, "adc"); in imx6ul_tsc_probe() 426 if (IS_ERR(tsc->adc_clk)) { in imx6ul_tsc_probe() 427 err = PTR_ERR(tsc->adc_clk); in imx6ul_tsc_probe() 516 clk_disable_unprepare(tsc->adc_clk); in imx6ul_tsc_suspend() 534 retval = clk_prepare_enable(tsc->adc_clk); in imx6ul_tsc_resume() 540 clk_disable_unprepare(tsc->adc_clk); in imx6ul_tsc_resume()
|
/Linux-v5.4/Documentation/devicetree/bindings/iio/adc/ |
D | at91-sama5d2_adc.txt | 8 - clock-names: Must be "adc_clk". 39 clocks = <&adc_clk>; 40 clock-names = "adc_clk";
|
D | at91_adc.txt | 9 Required elements: "adc_clk", "adc_op_clk". 52 clocks = <&adc_clk>, <&adc_op_clk>; 53 clock-names = "adc_clk", "adc_op_clk";
|
D | amlogic,meson-saradc.txt | 21 - "adc_clk" for the ADC (sampling) clock 47 clock-names = "clkin", "core", "sana", "adc_clk", "adc_sel";
|
D | cc10001_adc.txt | 19 clocks = <&adc_clk>;
|
/Linux-v5.4/drivers/media/dvb-frontends/ |
D | stv0367.c | 46 u32 adc_clk; member 2320 cab_state->adc_clk = stv0367cab_get_adc_freq(fe, state->config->xtal); in stv0367cab_init() 2417 stv0367cab_set_derot_freq(state, cab_state->adc_clk, in stv0367cab_algo() 2487 tmp = stv0367cab_get_derot_freq(state, cab_state->adc_clk); in stv0367cab_algo() 2508 if (ifkhz > cab_state->adc_clk / 1000) { in stv0367cab_algo() 2511 - stv0367cab_get_derot_freq(state, cab_state->adc_clk) in stv0367cab_algo() 2512 - cab_state->adc_clk / 1000 + ifkhz; in stv0367cab_algo() 2516 - stv0367cab_get_derot_freq(state, cab_state->adc_clk) in stv0367cab_algo() 2523 cab_state->adc_clk) - in stv0367cab_algo() 2524 cab_state->adc_clk / 4000; in stv0367cab_algo() [all …]
|
D | si2165.c | 49 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-v5.4/Documentation/devicetree/bindings/input/touchscreen/ |
D | brcm,iproc-touchscreen.txt | 74 clocks = <&adc_clk>;
|
/Linux-v5.4/arch/arm/boot/dts/ |
D | at91sam9g45.dtsi | 341 adc_clk: adc_clk { label 1078 clocks = <&adc_clk>, <&adc_op_clk>; 1079 clock-names = "adc_clk", "adc_op_clk";
|
D | sama5d3.dtsi | 320 clocks = <&adc_clk>, 322 clock-names = "adc_clk", "adc_op_clk"; 1269 adc_clk: adc_clk { label
|
D | at91sam9n12.dtsi | 346 adc_clk: adc_clk { label
|
D | at91sam9260.dtsi | 703 clock-names = "adc_clk", "adc_op_clk";
|
D | at91sam9rl.dtsi | 271 clock-names = "adc_clk", "adc_op_clk";
|
D | sama5d2.dtsi | 852 clock-names = "adc_clk";
|
D | at91sam9x5.dtsi | 803 clock-names = "adc_clk", "adc_op_clk";
|
D | sama5d4.dtsi | 764 clock-names = "adc_clk", "adc_op_clk";
|
/Linux-v5.4/arch/arm64/boot/dts/amlogic/ |
D | meson-gxl.dtsi | 775 clock-names = "clkin", "core", "adc_clk", "adc_sel";
|
D | meson-gxbb.dtsi | 775 clock-names = "clkin", "core", "adc_clk", "adc_sel";
|
D | meson-axg.dtsi | 1552 clock-names = "clkin", "core", "adc_clk", "adc_sel";
|