/linux/drivers/iio/adc/ |
H A D | mt6577_auxadc.c | 44 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() 280 adc_dev->adc_clk = devm_clk_get_enabled(&pdev->dev, "main"); in mt6577_auxadc_probe() 281 if (IS_ERR(adc_dev->adc_clk)) in mt6577_auxadc_probe() 282 return dev_err_probe(&pdev->dev, PTR_ERR(adc_dev->adc_clk), in mt6577_auxadc_probe() 285 adc_clk_rate = clk_get_rate(adc_dev->adc_clk); in mt6577_auxadc_probe()
|
H A D | npcm_adc.c | 32 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()
|
H A 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() 592 clk_disable_unprepare(adc_priv->adc_clk); in iproc_adc_probe() 604 clk_disable_unprepare(adc_priv->adc_clk); in iproc_adc_remove()
|
H A D | cc10001_adc.c | 56 struct clk *adc_clk; member 357 adc_dev->adc_clk = devm_clk_get_enabled(dev, "adc"); in cc10001_adc_probe() 358 if (IS_ERR(adc_dev->adc_clk)) { in cc10001_adc_probe() 360 return PTR_ERR(adc_dev->adc_clk); in cc10001_adc_probe() 363 adc_clk_rate = clk_get_rate(adc_dev->adc_clk); in cc10001_adc_probe()
|
H A D | at91_adc.c | 216 struct clk *adc_clk; member 897 dev_dbg(&idev->dev, "adc_clk at: %d KHz, tssctim at: %d\n", in at91_ts_hw_init() 993 unsigned int prsc, mstrclk, ticks, adc_clk, adc_clk_khz, shtim; in at91_adc_probe() local 1082 st->clk = devm_clk_get_enabled(&pdev->dev, "adc_clk"); in at91_adc_probe() 1087 st->adc_clk = devm_clk_get_enabled(&pdev->dev, "adc_op_clk"); in at91_adc_probe() 1088 if (IS_ERR(st->adc_clk)) in at91_adc_probe() 1089 return dev_err_probe(&pdev->dev, PTR_ERR(st->adc_clk), in at91_adc_probe() 1098 adc_clk = clk_get_rate(st->adc_clk); in at91_adc_probe() 1099 adc_clk_khz = adc_clk / 1000; in at91_adc_probe() 1101 dev_dbg(&pdev->dev, "Master clock is set as: %d Hz, adc_clk should set as: %d Hz\n", in at91_adc_probe() [all …]
|
H A D | meson_saradc.c | 345 struct clk *adc_clk; member 775 priv->adc_clk = devm_clk_register(dev, &priv->clk_gate.hw); in meson_sar_adc_clk_init() 776 if (WARN_ON(IS_ERR(priv->adc_clk))) in meson_sar_adc_clk_init() 777 return PTR_ERR(priv->adc_clk); in meson_sar_adc_clk_init() 1006 ret = clk_set_rate(priv->adc_clk, priv->param->clock_rate); in meson_sar_adc_init() 1058 ret = clk_prepare_enable(priv->adc_clk); in meson_sar_adc_hw_enable() 1092 clk_disable_unprepare(priv->adc_clk); in meson_sar_adc_hw_disable() 1378 priv->adc_clk = devm_clk_get_optional(dev, "adc_clk"); in meson_sar_adc_probe() 1379 if (IS_ERR(priv->adc_clk)) in meson_sar_adc_probe() 1380 return dev_err_probe(dev, PTR_ERR(priv->adc_clk), "failed to get adc clk\n"); in meson_sar_adc_probe() [all …]
|
H A D | ti-ads131e08.c | 94 struct clk *adc_clk; member 888 st->adc_clk = devm_clk_get_enabled(&spi->dev, "adc-clk"); in ads131e08_probe() 889 if (IS_ERR(st->adc_clk)) in ads131e08_probe() 890 return dev_err_probe(&spi->dev, PTR_ERR(st->adc_clk), in ads131e08_probe() 893 adc_clk_hz = clk_get_rate(st->adc_clk); in ads131e08_probe()
|
/linux/Documentation/devicetree/bindings/iio/adc/ |
H A D | atmel,sama5d2-adc.yaml | 29 const: adc_clk 87 clocks = <&adc_clk>; 88 clock-names = "adc_clk";
|
H A D | atmel,sama9260-adc.yaml | 33 - const: adc_clk 112 clocks = <&adc_clk>, <&adc_op_clk>; 113 clock-names = "adc_clk", "adc_op_clk";
|
H A D | amlogic,meson-saradc.yaml | 47 - const: adc_clk 137 clock-names = "clkin", "core", "adc_clk", "adc_sel";
|
H A D | cosmic,10001-adc.yaml | 55 clocks = <&adc_clk>;
|
H A D | adi,ad9467.yaml | 75 clocks = <&adc_clk>;
|
/linux/drivers/input/touchscreen/ |
H A D | imx6ul_tsc.c | 88 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/drivers/media/dvb-frontends/ |
H A D | stv0367.c | 46 u32 adc_clk; member 2298 cab_state->adc_clk = stv0367cab_get_adc_freq(fe, state->config->xtal); in stv0367cab_init() 2395 stv0367cab_set_derot_freq(state, cab_state->adc_clk, in stv0367cab_algo() 2465 tmp = stv0367cab_get_derot_freq(state, cab_state->adc_clk); in stv0367cab_algo() 2486 if (ifkhz > cab_state->adc_clk / 1000) { in stv0367cab_algo() 2489 - stv0367cab_get_derot_freq(state, cab_state->adc_clk) in stv0367cab_algo() 2490 - cab_state->adc_clk / 1000 + ifkhz; in stv0367cab_algo() 2494 - stv0367cab_get_derot_freq(state, cab_state->adc_clk) in stv0367cab_algo() 2501 cab_state->adc_clk) - in stv0367cab_algo() 2502 cab_state->adc_clk / 4000; in stv0367cab_algo() [all …]
|
H A D | si2165.c | 49 u32 adc_clk; member 241 /* adc_clk and sys_clk depend on xtal and pll settings */ in si2165_init_pll() 244 state->adc_clk = state->fvco_hz / (divm * 4u); in si2165_init_pll() 264 return state->adc_clk; in si2165_get_fe_clk()
|
/linux/drivers/mfd/ |
H A D | ti_am335x_tscadc.c | 222 * The TSC_ADC_Subsystem has 2 clock domains: OCP_CLK and ADC_CLK. in ti_tscadc_probe() 223 * ADCs produce a 12-bit sample every 15 ADC_CLK cycles. in ti_tscadc_probe()
|
/linux/Documentation/devicetree/bindings/input/touchscreen/ |
H A D | brcm,iproc-touchscreen.txt | 74 clocks = <&adc_clk>;
|
/linux/drivers/clk/at91/ |
H A D | at91sam9rl.c | 62 { .n = "adc_clk", .id = 20, },
|
H A D | at91sam9g45.c | 80 { .n = "adc_clk", .id = 20, },
|
H A D | at91sam9n12.c | 101 { .n = "adc_clk", .id = 19, },
|
H A D | at91sam9x5.c | 88 { .n = "adc_clk", .id = 19, },
|
H A D | sama5d4.c | 93 { .n = "adc_clk", .id = 44 },
|
H A D | sama5d3.c | 90 { .n = "adc_clk", .id = 29, .r = { .min = 0, .max = 83000000 }, },
|
/linux/sound/soc/codecs/ |
H A D | tlv320adc3xxx.c | 884 SND_SOC_DAPM_SUPPLY("ADC_CLK", ADC3XXX_ADC_NADC, ADC3XXX_ENABLE_NADC_SHIFT, 942 { "ADC_MOD_CLK", NULL, "ADC_CLK" }, 946 { "BCLK", NULL, "ADC_CLK" }, 950 { "ADC_CLK", NULL, "PLL_CLK" }, 1258 /* BCLK is (by default) set up to be derived from ADC_CLK */ in adc3xxx_hw_params()
|
/linux/drivers/clk/spear/ |
H A D | spear6xx_clock.c | 312 clk = clk_register_gate(NULL, "adc_clk", "apb_clk", 0, PERIP1_CLK_ENB, in spear6xx_clk_init()
|