/Linux-v6.1/drivers/iio/filter/ |
D | admv8818.c | 86 struct clk *clkin; member 244 st->cf_hz = clk_get_rate(st->clkin); in admv8818_rfin_band_select() 412 if (!st->clkin) { in admv8818_set_mode() 424 ret = clk_prepare_enable(st->clkin); in admv8818_set_mode() 428 ret = clk_notifier_register(st->clkin, &st->nb); in admv8818_set_mode() 430 clk_disable_unprepare(st->clkin); in admv8818_set_mode() 440 clk_disable_unprepare(st->clkin); in admv8818_set_mode() 442 ret = clk_notifier_unregister(st->clkin, &st->nb); in admv8818_set_mode() 513 clk_notifier_unregister(st->clkin, &st->nb); in admv8818_clk_notifier_unreg() 521 clk_disable_unprepare(st->clkin); in admv8818_clk_disable() [all …]
|
/Linux-v6.1/drivers/video/fbdev/omap2/omapfb/dss/ |
D | hdmi_pll.c | 46 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()
|
D | pll.c | 72 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()
|
D | video-pll.c | 154 /* CLKIN */ in dss_video_pll_init() 158 DSSERR("can't get video pll clkin\n"); in dss_video_pll_init() 173 pll->clkin = clk; in dss_video_pll_init()
|
/Linux-v6.1/drivers/gpu/drm/omapdrm/dss/ |
D | pll.c | 127 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 …]
|
D | video-pll.c | 158 /* CLKIN */ in dss_video_pll_init() 162 DSSERR("can't get video pll clkin\n"); in dss_video_pll_init() 177 pll->clkin = clk; in dss_video_pll_init()
|
/Linux-v6.1/drivers/clk/ |
D | clk-aspeed.c | 55 [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 …]
|
D | clk-si5351.c | 59 struct clk_hw clkin; member 68 "xtal", "clkin" 241 * Si5351 clkin clock input (Si5351C only) 246 container_of(hw, struct si5351_driver_data, clkin); in si5351_clkin_prepare() 255 container_of(hw, struct si5351_driver_data, clkin); in si5351_clkin_unprepare() 263 * If CLKIN is >40MHz, the input divider must be used. 269 container_of(hw, struct si5351_driver_data, clkin); in si5351_clkin_recalc_rate() 290 dev_dbg(&drvdata->client->dev, "%s - clkin div = %d, rate = %lu\n", in si5351_clkin_recalc_rate() 1406 drvdata->pclkin = devm_clk_get(&client->dev, "clkin"); in si5351_i2c_probe() 1414 * VARIANT_C can have CLKIN instead. in si5351_i2c_probe() [all …]
|
/Linux-v6.1/drivers/iio/frequency/ |
D | adf4350.c | 40 unsigned long clkin; member 129 st->fpfd = (st->clkin * (pdata->ref_doubler_en ? 2 : 1)) / in adf4350_tune_r_cnt() 286 st->clkin = readin; in adf4350_write() 335 st->clkin = clk_get_rate(st->clk); in adf4350_read() 337 val = st->clkin; in adf4350_read() 493 if (!pdata->clkin) { in adf4350_probe() 494 clk = devm_clk_get(&spi->dev, "clkin"); in adf4350_probe() 535 st->clkin = clk_get_rate(clk); in adf4350_probe() 537 st->clkin = pdata->clkin; in adf4350_probe()
|
D | admv1013.c | 95 struct clk *clkin; member 329 u64 rate = clk_get_rate(st->clkin); in admv1013_update_quad_filters() 562 st->clkin = devm_clk_get(&spi->dev, "lo_in"); in admv1013_properties_parse() 563 if (IS_ERR(st->clkin)) in admv1013_properties_parse() 564 return dev_err_probe(&spi->dev, PTR_ERR(st->clkin), in admv1013_properties_parse() 604 ret = clk_prepare_enable(st->clkin); in admv1013_probe() 608 ret = devm_add_action_or_reset(&spi->dev, admv1013_clk_disable, st->clkin); in admv1013_probe() 613 ret = devm_clk_notifier_register(&spi->dev, st->clkin, &st->nb); in admv1013_probe()
|
D | admv1014.c | 121 struct clk *clkin; member 223 u64 rate = clk_get_rate(st->clkin); in admv1014_update_quad_filters() 625 ret = clk_prepare_enable(st->clkin); in admv1014_init() 629 ret = devm_add_action_or_reset(&spi->dev, admv1014_clk_disable, st->clkin); in admv1014_init() 634 ret = devm_clk_notifier_register(&spi->dev, st->clkin, &st->nb); in admv1014_init() 754 st->clkin = devm_clk_get(&spi->dev, "lo_in"); in admv1014_properties_parse() 755 if (IS_ERR(st->clkin)) in admv1014_properties_parse() 756 return dev_err_probe(&spi->dev, PTR_ERR(st->clkin), in admv1014_properties_parse()
|
D | adf4371.c | 160 struct clk *clkin; member 575 st->clkin = devm_clk_get_enabled(&spi->dev, "clkin"); in adf4371_probe() 576 if (IS_ERR(st->clkin)) in adf4371_probe() 577 return PTR_ERR(st->clkin); in adf4371_probe() 579 st->clkin_freq = clk_get_rate(st->clkin); in adf4371_probe()
|
D | adrf6780.c | 76 struct clk *clkin; member 471 st->clkin = devm_clk_get_enabled(&spi->dev, "lo_in"); in adrf6780_probe() 472 if (IS_ERR(st->clkin)) in adrf6780_probe() 473 return dev_err_probe(&spi->dev, PTR_ERR(st->clkin), in adrf6780_probe()
|
/Linux-v6.1/include/linux/platform_data/ |
D | si5351.h | 13 * @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
|
/Linux-v6.1/Documentation/devicetree/bindings/iio/adc/ |
D | amlogic,meson-saradc.yaml | 45 - const: clkin 134 clock-names = "clkin", "core", "adc_clk", "adc_sel"; 142 clock-names = "clkin", "core";
|
D | st,stm32-dfsdm-adc.yaml | 131 - "CLKIN": external SPI clock (CLKIN x) 136 enum: [ CLKIN, CLKOUT, CLKOUT_F, CLKOUT_R ]
|
/Linux-v6.1/drivers/thermal/ |
D | sun8i_thermal.c | 394 * clkin = 24MHz in sun8i_h3_thermal_init() 398 * x = period * clkin / 4096 / filter_samples - 1 in sun8i_h3_thermal_init() 406 * clkin = 24MHz in sun8i_h3_thermal_init() 408 * x = T_acq * clkin - 1 in sun8i_h3_thermal_init() 432 * clkin = 24MHz in sun50i_h6_thermal_init() 434 * x = T_acq * clkin - 1 in sun50i_h6_thermal_init() 444 * clkin = 24MHz in sun50i_h6_thermal_init() 448 * x = period * clkin / 4096 / filter_samples - 1 in sun50i_h6_thermal_init()
|
/Linux-v6.1/arch/arm/boot/dts/ |
D | stih407-pinctrl.dtsi | 739 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 …]
|
/Linux-v6.1/Documentation/devicetree/bindings/clock/ |
D | silabs,si5351.txt | 23 handles, shall be xtal reference clock or xtal and clkin for 25 "clkin" respectively. 47 3 = clkin (si5351c only)
|
/Linux-v6.1/arch/arm/mach-davinci/ |
D | clock.h | 47 * OMAP-L138 system reference guide recommends a wait for 4 OSCIN/CLKIN 49 * ensures we are good for all > 4MHz OSCIN/CLKIN inputs. Typically the input
|
/Linux-v6.1/Documentation/devicetree/bindings/iio/frequency/ |
D | adf4371.yaml | 33 Must be "clkin" 65 clock-names = "clkin";
|
D | adi,adf4350.yaml | 26 description: Clock to provide CLKIN reference clock signal. 29 const: clkin 181 clock-names = "clkin";
|
/Linux-v6.1/Documentation/devicetree/bindings/mmc/ |
D | amlogic,meson-mx-sdio.txt | 22 - clock-names : must contain "core" and "clkin" 46 clock-names = "core", "clkin";
|
/Linux-v6.1/include/linux/iio/frequency/ |
D | adf4350.h | 95 * @clkin: REFin frequency in Hz. 110 unsigned long clkin; member
|
/Linux-v6.1/drivers/i2c/busses/ |
D | i2c-s3c2410.c | 797 static int s3c24xx_i2c_calcdivisor(unsigned long clkin, unsigned int wanted, in s3c24xx_i2c_calcdivisor() argument 800 unsigned int calc_divs = clkin / wanted; in s3c24xx_i2c_calcdivisor() 819 return clkin / (calc_divs * calc_div1); in s3c24xx_i2c_calcdivisor() 830 unsigned long clkin = clk_get_rate(i2c->clk); in s3c24xx_i2c_clockrate() local 836 i2c->clkrate = clkin; in s3c24xx_i2c_clockrate() 837 clkin /= 1000; /* clkin now in KHz */ in s3c24xx_i2c_clockrate() 845 freq = s3c24xx_i2c_calcdivisor(clkin, target_frequency, &div1, &divs); in s3c24xx_i2c_clockrate() 872 sda_delay = clkin * pdata->sda_delay; in s3c24xx_i2c_clockrate()
|