Home
last modified time | relevance | path

Searched full:clkin (Results 1 – 25 of 179) sorted by relevance

12345678

/kernel/linux/linux-5.10/drivers/video/fbdev/omap2/omapfb/dss/
Dhdmi_pll.c46 unsigned long clkin; in hdmi_pll_compute() local
49 clkin = clk_get_rate(pll->pll.clkin); in hdmi_pll_compute()
51 DSSDBG("clkin %lu, target tmds %lu\n", clkin, target_tmds); in hdmi_pll_compute()
56 n = DIV_ROUND_UP(clkin, hw->fint_max); in hdmi_pll_compute()
57 fint = clkin / n; in hdmi_pll_compute()
192 pll->clkin = clk; in dsi_init_pll_data()
Dpll.c72 r = clk_prepare_enable(pll->clkin); in dss_pll_enable()
92 clk_disable_unprepare(pll->clkin); in dss_pll_enable()
103 clk_disable_unprepare(pll->clkin); in dss_pll_disable()
146 bool dss_pll_calc(const struct dss_pll *pll, unsigned long clkin, in dss_pll_calc() argument
162 n_start = max(DIV_ROUND_UP(clkin, fint_hw_max), 1ul); in dss_pll_calc()
163 n_stop = min((unsigned)(clkin / fint_hw_min), hw->n_max); in dss_pll_calc()
168 fint = clkin / n; in dss_pll_calc()
/kernel/linux/linux-6.6/drivers/video/fbdev/omap2/omapfb/dss/
Dhdmi_pll.c46 unsigned long clkin; in hdmi_pll_compute() local
49 clkin = clk_get_rate(pll->pll.clkin); in hdmi_pll_compute()
51 DSSDBG("clkin %lu, target tmds %lu\n", clkin, target_tmds); in hdmi_pll_compute()
56 n = DIV_ROUND_UP(clkin, hw->fint_max); in hdmi_pll_compute()
57 fint = clkin / n; in hdmi_pll_compute()
186 pll->clkin = clk; in dsi_init_pll_data()
Dpll.c72 r = clk_prepare_enable(pll->clkin); in dss_pll_enable()
92 clk_disable_unprepare(pll->clkin); in dss_pll_enable()
103 clk_disable_unprepare(pll->clkin); in dss_pll_disable()
146 bool dss_pll_calc(const struct dss_pll *pll, unsigned long clkin, in dss_pll_calc() argument
162 n_start = max(DIV_ROUND_UP(clkin, fint_hw_max), 1ul); in dss_pll_calc()
163 n_stop = min((unsigned)(clkin / fint_hw_min), hw->n_max); in dss_pll_calc()
168 fint = clkin / n; in dss_pll_calc()
/kernel/linux/linux-6.6/drivers/iio/filter/
Dadmv8818.c98 struct clk *clkin; member
298 st->cf_hz = clk_get_rate(st->clkin); in admv8818_rfin_band_select()
529 if (!st->clkin) { in admv8818_set_mode()
549 ret = clk_prepare_enable(st->clkin); in admv8818_set_mode()
553 ret = clk_notifier_register(st->clkin, &st->nb); in admv8818_set_mode()
555 clk_disable_unprepare(st->clkin); in admv8818_set_mode()
564 clk_disable_unprepare(st->clkin); in admv8818_set_mode()
566 ret = clk_notifier_unregister(st->clkin, &st->nb); in admv8818_set_mode()
646 clk_notifier_unregister(st->clkin, &st->nb); in admv8818_clk_notifier_unreg()
654 clk_disable_unprepare(st->clkin); in admv8818_clk_disable()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/dss/
Dpll.c127 r = clk_prepare_enable(pll->clkin); in dss_pll_enable()
147 clk_disable_unprepare(pll->clkin); in dss_pll_enable()
158 clk_disable_unprepare(pll->clkin); in dss_pll_disable()
202 * clkdco = clkin / n * m * 2
205 bool dss_pll_calc_a(const struct dss_pll *pll, unsigned long clkin, in dss_pll_calc_a() argument
221 n_start = max(DIV_ROUND_UP(clkin, fint_hw_max), 1ul); in dss_pll_calc_a()
222 n_stop = min((unsigned)(clkin / fint_hw_min), hw->n_max); in dss_pll_calc_a()
233 fint = clkin / n; in dss_pll_calc_a()
263 * clkdco = clkin / n * m + clkin / n * mf / 262144
266 bool dss_pll_calc_b(const struct dss_pll *pll, unsigned long clkin, in dss_pll_calc_b() argument
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/omapdrm/dss/
Dpll.c127 r = clk_prepare_enable(pll->clkin); in dss_pll_enable()
147 clk_disable_unprepare(pll->clkin); in dss_pll_enable()
158 clk_disable_unprepare(pll->clkin); in dss_pll_disable()
202 * clkdco = clkin / n * m * 2
205 bool dss_pll_calc_a(const struct dss_pll *pll, unsigned long clkin, in dss_pll_calc_a() argument
221 n_start = max(DIV_ROUND_UP(clkin, fint_hw_max), 1ul); in dss_pll_calc_a()
222 n_stop = min((unsigned)(clkin / fint_hw_min), hw->n_max); in dss_pll_calc_a()
236 fint = clkin / n; in dss_pll_calc_a()
269 * clkdco = clkin / n * m + clkin / n * mf / 262144
272 bool dss_pll_calc_b(const struct dss_pll *pll, unsigned long clkin, in dss_pll_calc_b() argument
[all …]
/kernel/linux/linux-5.10/drivers/clk/
Dclk-aspeed.c55 [ASPEED_CLK_GATE_REFCLK] = { 6, -1, "refclk-gate", "clkin", CLK_IS_CRITICAL },
145 return clk_hw_register_fixed_factor(NULL, name, "clkin", 0, in aspeed_ast2400_calc_pll()
157 /* F = clkin * [(M+1) / (N+1)] / (P + 1) */ in aspeed_ast2500_calc_pll()
166 return clk_hw_register_fixed_factor(NULL, name, "clkin", 0, in aspeed_ast2500_calc_pll()
509 hw = clk_hw_register_fixed_rate(NULL, "fixed-24m", "clkin", in aspeed_clk_probe()
586 u32 val, div, clkin, hpll; in aspeed_ast2400_cc() local
594 * CLKIN is the crystal oscillator, 24, 48 or 25MHz selected by in aspeed_ast2400_cc()
600 clkin = 25000000; in aspeed_ast2400_cc()
603 clkin = 48000000; in aspeed_ast2400_cc()
606 clkin = 24000000; in aspeed_ast2400_cc()
[all …]
/kernel/linux/linux-6.6/drivers/clk/
Dclk-aspeed.c55 [ASPEED_CLK_GATE_REFCLK] = { 6, -1, "refclk-gate", "clkin", CLK_IS_CRITICAL },
145 return clk_hw_register_fixed_factor(NULL, name, "clkin", 0, in aspeed_ast2400_calc_pll()
157 /* F = clkin * [(M+1) / (N+1)] / (P + 1) */ in aspeed_ast2500_calc_pll()
166 return clk_hw_register_fixed_factor(NULL, name, "clkin", 0, in aspeed_ast2500_calc_pll()
509 hw = clk_hw_register_fixed_rate(NULL, "fixed-24m", "clkin", in aspeed_clk_probe()
586 u32 val, div, clkin, hpll; in aspeed_ast2400_cc() local
594 * CLKIN is the crystal oscillator, 24, 48 or 25MHz selected by in aspeed_ast2400_cc()
600 clkin = 25000000; in aspeed_ast2400_cc()
603 clkin = 48000000; in aspeed_ast2400_cc()
606 clkin = 24000000; in aspeed_ast2400_cc()
[all …]
/kernel/linux/linux-6.6/drivers/iio/frequency/
Dadf4350.c39 unsigned long clkin; member
128 st->fpfd = (st->clkin * (pdata->ref_doubler_en ? 2 : 1)) / in adf4350_tune_r_cnt()
285 st->clkin = readin; in adf4350_write()
334 st->clkin = clk_get_rate(st->clk); in adf4350_read()
336 val = st->clkin; in adf4350_read()
501 if (!pdata->clkin) { in adf4350_probe()
502 clk = devm_clk_get_enabled(&spi->dev, "clkin"); in adf4350_probe()
533 st->clkin = clk_get_rate(clk); in adf4350_probe()
535 st->clkin = pdata->clkin; in adf4350_probe()
/kernel/linux/linux-5.10/drivers/iio/frequency/
Dadf4350.c39 unsigned long clkin; member
128 st->fpfd = (st->clkin * (pdata->ref_doubler_en ? 2 : 1)) / in adf4350_tune_r_cnt()
285 st->clkin = readin; in adf4350_write()
334 st->clkin = clk_get_rate(st->clk); in adf4350_read()
336 val = st->clkin; in adf4350_read()
512 if (!pdata->clkin) { in adf4350_probe()
513 clk = devm_clk_get(&spi->dev, "clkin"); in adf4350_probe()
554 st->clkin = clk_get_rate(clk); in adf4350_probe()
556 st->clkin = pdata->clkin; in adf4350_probe()
Dadf4371.c160 struct clk *clkin; member
547 clk_disable_unprepare(st->clkin); in adf4371_clk_disable()
582 st->clkin = devm_clk_get(&spi->dev, "clkin"); in adf4371_probe()
583 if (IS_ERR(st->clkin)) in adf4371_probe()
584 return PTR_ERR(st->clkin); in adf4371_probe()
586 ret = clk_prepare_enable(st->clkin); in adf4371_probe()
594 st->clkin_freq = clk_get_rate(st->clkin); in adf4371_probe()
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/regulator/
Drenesas,raa215300.yaml46 provided(either xin or clkin).
52 Use clkin, if connected to an external clock signal.
55 - clkin
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/media/i2c/
Dti,ds90ub913.yaml32 Reference clock connected to the CLKIN pin.
36 - const: clkin
91 clock-names = "clkin";
/kernel/linux/linux-5.10/include/linux/platform_data/
Dsi5351.h13 * @SI5351_PLL_SRC_CLKIN: pll source clock is CLKIN input (Si5351C only)
40 * @SI5351_CLKOUT_SRC_CLKIN: clkout N source clock is CLKIN (Si5351C only)
106 * @clk_clkin: clkin input clock
/kernel/linux/linux-6.6/include/linux/platform_data/
Dsi5351.h13 * @SI5351_PLL_SRC_CLKIN: pll source clock is CLKIN input (Si5351C only)
40 * @SI5351_CLKOUT_SRC_CLKIN: clkout N source clock is CLKIN (Si5351C only)
106 * @clk_clkin: clkin input clock
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/adc/
Damlogic,meson-saradc.yaml46 - const: clkin
135 clock-names = "clkin", "core", "adc_clk", "adc_sel";
143 clock-names = "clkin", "core";
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/iio/adc/
Damlogic,meson-saradc.yaml45 - const: clkin
134 clock-names = "clkin", "core", "adc_clk", "adc_sel";
142 clock-names = "clkin", "core";
/kernel/linux/linux-5.10/drivers/thermal/
Dsun8i_thermal.c386 * clkin = 24MHz in sun8i_h3_thermal_init()
390 * x = period * clkin / 4096 / filter_samples - 1 in sun8i_h3_thermal_init()
398 * clkin = 24MHz in sun8i_h3_thermal_init()
400 * x = T_acq * clkin - 1 in sun8i_h3_thermal_init()
424 * clkin = 24MHz in sun50i_h6_thermal_init()
426 * x = T_acq * clkin - 1 in sun50i_h6_thermal_init()
436 * clkin = 24MHz in sun50i_h6_thermal_init()
440 * x = period * clkin / 4096 / filter_samples - 1 in sun50i_h6_thermal_init()
/kernel/linux/linux-6.6/drivers/thermal/
Dsun8i_thermal.c387 * clkin = 24MHz in sun8i_h3_thermal_init()
391 * x = period * clkin / 4096 / filter_samples - 1 in sun8i_h3_thermal_init()
399 * clkin = 24MHz in sun8i_h3_thermal_init()
401 * x = T_acq * clkin - 1 in sun8i_h3_thermal_init()
425 * clkin = 24MHz in sun50i_h6_thermal_init()
427 * x = T_acq * clkin - 1 in sun50i_h6_thermal_init()
437 * clkin = 24MHz in sun50i_h6_thermal_init()
441 * x = period * clkin / 4096 / filter_samples - 1 in sun50i_h6_thermal_init()
/kernel/linux/linux-6.6/arch/arm/boot/dts/st/
Dstih407-pinctrl.dtsi739 CLKIN = <&pio10 3 ALT1 IN CLKNOTDATA 0 CLK_A>;
748 CLKIN = <&pio10 3 ALT1 IN CLKNOTDATA 0 CLK_A>;
767 CLKIN = <&pio11 7 ALT1 IN CLKNOTDATA 0 CLK_A>;
776 CLKIN = <&pio11 7 ALT1 IN CLKNOTDATA 0 CLK_A>;
795 CLKIN = <&pio13 3 ALT1 IN CLKNOTDATA 0 CLK_A>;
804 CLKIN = <&pio13 3 ALT1 IN CLKNOTDATA 0 CLK_A>;
816 CLKIN = <&pio14 0 ALT1 IN CLKNOTDATA 0 CLK_A>;
828 CLKIN = <&pio14 5 ALT3 IN CLKNOTDATA 0 CLK_A>;
840 CLKIN = <&pio18 3 ALT1 IN CLKNOTDATA 0 CLK_A>;
849 CLKIN = <&pio19 3 ALT2 IN CLKNOTDATA 0 CLK_A>;
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dstih407-pinctrl.dtsi739 CLKIN = <&pio10 3 ALT1 IN CLKNOTDATA 0 CLK_A>;
748 CLKIN = <&pio10 3 ALT1 IN CLKNOTDATA 0 CLK_A>;
767 CLKIN = <&pio11 7 ALT1 IN CLKNOTDATA 0 CLK_A>;
776 CLKIN = <&pio11 7 ALT1 IN CLKNOTDATA 0 CLK_A>;
795 CLKIN = <&pio13 3 ALT1 IN CLKNOTDATA 0 CLK_A>;
804 CLKIN = <&pio13 3 ALT1 IN CLKNOTDATA 0 CLK_A>;
816 CLKIN = <&pio14 0 ALT1 IN CLKNOTDATA 0 CLK_A>;
828 CLKIN = <&pio14 5 ALT3 IN CLKNOTDATA 0 CLK_A>;
840 CLKIN = <&pio18 3 ALT1 IN CLKNOTDATA 0 CLK_A>;
849 CLKIN = <&pio19 3 ALT2 IN CLKNOTDATA 0 CLK_A>;
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/clock/
Dsilabs,si5351.txt23 handles, shall be xtal reference clock or xtal and clkin for
25 "clkin" respectively.
47 3 = clkin (si5351c only)
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/frequency/
Dadf4371.yaml33 Must be "clkin"
64 clock-names = "clkin";
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/clock/
Dsilabs,si5351.txt23 handles, shall be xtal reference clock or xtal and clkin for
25 "clkin" respectively.
47 3 = clkin (si5351c only)

12345678