| /linux/drivers/video/fbdev/omap2/omapfb/dss/ |
| H A 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()
|
| H A 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()
|
| H A 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/drivers/iio/filter/ |
| H A D | admv8818.c | 97 struct clk *clkin; member 297 st->cf_hz = clk_get_rate(st->clkin); in admv8818_rfin_band_select() 528 if (!st->clkin) { in admv8818_set_mode() 548 ret = clk_prepare_enable(st->clkin); in admv8818_set_mode() 552 ret = clk_notifier_register(st->clkin, &st->nb); in admv8818_set_mode() 554 clk_disable_unprepare(st->clkin); in admv8818_set_mode() 563 clk_disable_unprepare(st->clkin); in admv8818_set_mode() 565 ret = clk_notifier_unregister(st->clkin, &st->nb); in admv8818_set_mode() 645 clk_notifier_unregister(st->clkin, &st->nb); in admv8818_clk_notifier_unreg() 653 clk_disable_unprepare(st->clkin); in admv8818_clk_disable() [all …]
|
| /linux/drivers/gpu/drm/omapdrm/dss/ |
| H A 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 …]
|
| H A 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/drivers/clk/aspeed/ |
| H A 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() 511 hw = clk_hw_register_fixed_rate(NULL, "fixed-24m", "clkin", in aspeed_clk_probe() 588 u32 val, div, clkin, hpll; in aspeed_ast2400_cc() local 596 * CLKIN is the crystal oscillator, 24, 48 or 25MHz selected by in aspeed_ast2400_cc() 602 clkin = 25000000; in aspeed_ast2400_cc() 605 clkin = 48000000; in aspeed_ast2400_cc() 608 clkin = 24000000; in aspeed_ast2400_cc() [all …]
|
| /linux/drivers/net/phy/ |
| H A D | xilinx_gmii2rgmii.c | 90 struct clk *clkin; in xgmiitorgmii_probe() local 96 clkin = devm_clk_get_optional_enabled(dev, NULL); in xgmiitorgmii_probe() 97 if (IS_ERR(clkin)) in xgmiitorgmii_probe() 98 return dev_err_probe(dev, PTR_ERR(clkin), in xgmiitorgmii_probe()
|
| /linux/drivers/iio/frequency/ |
| H A D | adf4350.c | 42 unsigned long clkin; member 133 st->fpfd = (st->clkin * (pdata->ref_doubler_en ? 2 : 1)) / in adf4350_tune_r_cnt() 296 st->clkin = readin; in adf4350_write() 345 st->clkin = clk_get_rate(st->clk); in adf4350_read() 347 val = st->clkin; in adf4350_read() 423 st->clkin = parent_rate; in adf4350_clk_set_rate() 619 if (!pdata->clkin) { in adf4350_probe() 620 clk = devm_clk_get_enabled(&spi->dev, "clkin"); in adf4350_probe() 649 st->clkin = clk_get_rate(clk); in adf4350_probe() 651 st->clkin = pdata->clkin; in adf4350_probe()
|
| H A D | admv1014.c | 120 struct clk *clkin; member 222 u64 rate = clk_get_rate(st->clkin); in admv1014_update_quad_filters() 623 ret = clk_prepare_enable(st->clkin); in admv1014_init() 627 ret = devm_add_action_or_reset(dev, admv1014_clk_disable, st->clkin); in admv1014_init() 632 ret = devm_clk_notifier_register(dev, st->clkin, &st->nb); in admv1014_init() 736 st->clkin = devm_clk_get(dev, "lo_in"); in admv1014_properties_parse() 737 if (IS_ERR(st->clkin)) in admv1014_properties_parse() 738 return dev_err_probe(dev, PTR_ERR(st->clkin), in admv1014_properties_parse()
|
| H A D | admv1013.c | 94 struct clk *clkin; member 327 u64 rate = clk_get_rate(st->clkin); in admv1013_update_quad_filters() 598 st->clkin = devm_clk_get_enabled(dev, "lo_in"); in admv1013_probe() 599 if (IS_ERR(st->clkin)) in admv1013_probe() 600 return dev_err_probe(dev, PTR_ERR(st->clkin), in admv1013_probe() 604 ret = devm_clk_notifier_register(dev, st->clkin, &st->nb); in admv1013_probe()
|
| H A D | adrf6780.c | 74 struct clk *clkin; member 470 st->clkin = devm_clk_get_enabled(dev, "lo_in"); in adrf6780_probe() 471 if (IS_ERR(st->clkin)) in adrf6780_probe() 472 return dev_err_probe(dev, PTR_ERR(st->clkin), in adrf6780_probe()
|
| /linux/Documentation/devicetree/bindings/regulator/ |
| H A D | renesas,raa215300.yaml | 46 provided(either xin or clkin). 52 Use clkin, if connected to an external clock signal. 55 - clkin
|
| /linux/Documentation/devicetree/bindings/media/i2c/ |
| H A D | ti,ds90ub913.yaml | 32 Reference clock connected to the CLKIN pin. 36 - const: clkin 91 clock-names = "clkin";
|
| /linux/Documentation/devicetree/bindings/iio/adc/ |
| H A D | st,stm32-dfsdm-adc.yaml | 144 - "CLKIN": external SPI clock (CLKIN x) 149 enum: [ CLKIN, CLKOUT, CLKOUT_F, CLKOUT_R ] 210 - "CLKIN": external SPI clock (CLKIN x) 215 enum: [ CLKIN, CLKOUT, CLKOUT_F, CLKOUT_R ]
|
| H A D | amlogic,meson-saradc.yaml | 50 - const: clkin 143 clock-names = "clkin", "core", "adc_clk", "adc_sel"; 151 clock-names = "clkin", "core";
|
| /linux/include/linux/platform_data/ |
| H A 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/arch/arm/boot/dts/st/ |
| H A 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/arch/arm/mach-davinci/ |
| H A 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/Documentation/devicetree/bindings/rtc/ |
| H A D | isil,isl1208.yaml | 34 Use clkin, if connected to an external clock signal. 37 - clkin
|
| /linux/Documentation/devicetree/bindings/iio/frequency/ |
| H A D | adi,adf4350.yaml | 26 description: Clock to provide CLKIN reference clock signal. 29 const: clkin 190 clock-names = "clkin";
|
| /linux/Documentation/devicetree/bindings/clock/ |
| H A D | silabs,si5351.yaml | 51 - const: clkin 62 - description: PLL source, XTAL (0) or CLKIN (1, Si5351C only). 107 3 - use CLKIN for this output (Si5351C only)
|
| /linux/drivers/clk/ |
| H A 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() 1463 drvdata->pclkin = devm_clk_get(&client->dev, "clkin"); in si5351_i2c_probe() 1471 * VARIANT_C can have CLKIN instead. in si5351_i2c_probe() [all …]
|
| /linux/drivers/thermal/ |
| H A D | sun8i_thermal.c | 448 * clkin = 24MHz in sun8i_h3_thermal_init() 452 * x = period * clkin / 4096 / filter_samples - 1 in sun8i_h3_thermal_init() 460 * clkin = 24MHz in sun8i_h3_thermal_init() 462 * x = T_acq * clkin - 1 in sun8i_h3_thermal_init() 504 * clkin = 24MHz in sun50i_h6_thermal_init() 508 * x = period * clkin / 4096 / filter_samples - 1 in sun50i_h6_thermal_init()
|
| /linux/drivers/input/touchscreen/ |
| H A D | sun4i-ts.c | 104 #define TEMP_PERIOD(x) ((x) << 0) /* t = x * 256 * 16 / clkin */ 314 * Select HOSC clk, clkin = clk / 6, adc samplefreq = clkin / 8192, in sun4i_ts_probe() 315 * t_acq = clkin / (16 * 64) in sun4i_ts_probe()
|