| /linux-6.15/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
| H A D | pllgt215.c | 42 lM = (info->refclk + info->vco1.max_inputfreq) / info->vco1.max_inputfreq; in gt215_pll_calc() 44 hM = (info->refclk + info->vco1.min_inputfreq) / info->vco1.min_inputfreq; in gt215_pll_calc() 50 N = tmp / info->refclk; in gt215_pll_calc() 51 fN = tmp % info->refclk; in gt215_pll_calc() 54 if (fN >= info->refclk / 2) in gt215_pll_calc() 57 if (fN < info->refclk / 2) in gt215_pll_calc() 59 fN = tmp - (N * info->refclk); in gt215_pll_calc() 67 err = abs(freq - (info->refclk * N / M / *P)); in gt215_pll_calc() 75 *pfN = ((fN << 13) + info->refclk / 2) / info->refclk; in gt215_pll_calc() 86 return info->refclk * *pN / *pM / *P; in gt215_pll_calc()
|
| /linux-6.15/drivers/gpu/drm/i915/display/ |
| H A D | intel_cdclk.c | 1281 u16 refclk; member 1287 { .refclk = 19200, .cdclk = 144000, .ratio = 60 }, 1288 { .refclk = 19200, .cdclk = 288000, .ratio = 60 }, 1289 { .refclk = 19200, .cdclk = 384000, .ratio = 60 }, 1290 { .refclk = 19200, .cdclk = 576000, .ratio = 60 }, 1522 for (i = 0; table[i].refclk; i++) in bxt_calc_cdclk() 1523 if (table[i].refclk == display->cdclk.hw.ref && in bxt_calc_cdclk() 1541 for (i = 0; table[i].refclk; i++) in bxt_calc_cdclk_pll_vco() 1542 if (table[i].refclk == display->cdclk.hw.ref && in bxt_calc_cdclk_pll_vco() 1896 for (i = 0; table[i].refclk; i++) in cdclk_squash_waveform() [all …]
|
| H A D | intel_dpll.c | 521 int refclk = 100000; in vlv_crtc_clock_get() local 551 int refclk = 100000; in chv_crtc_clock_get() local 981 int refclk = 100000; in bxt_find_best_dpll() local 1546 int refclk = 96000; in g4x_crtc_compute_clock() local 1553 refclk); in g4x_crtc_compute_clock() 1596 int refclk = 96000; in pnv_crtc_compute_clock() local 1603 refclk); in pnv_crtc_compute_clock() 1635 int refclk = 96000; in i9xx_crtc_compute_clock() local 1642 refclk); in i9xx_crtc_compute_clock() 1676 int refclk = 48000; in i8xx_crtc_compute_clock() local [all …]
|
| /linux-6.15/drivers/phy/ti/ |
| H A D | phy-dm816x-usb.c | 46 struct clk *refclk; member 76 if (clk_get_rate(phy->refclk) != 24000000) in dm816x_usb_phy_init() 123 clk_disable(phy->refclk); in dm816x_usb_phy_runtime_suspend() 134 error = clk_enable(phy->refclk); in dm816x_usb_phy_runtime_resume() 151 clk_disable(phy->refclk); in dm816x_usb_phy_runtime_resume() 218 phy->refclk = devm_clk_get(phy->dev, "refclk"); in dm816x_usb_phy_probe() 219 if (IS_ERR(phy->refclk)) in dm816x_usb_phy_probe() 220 return PTR_ERR(phy->refclk); in dm816x_usb_phy_probe() 221 error = clk_prepare(phy->refclk); in dm816x_usb_phy_probe() 247 clk_unprepare(phy->refclk); in dm816x_usb_phy_probe() [all …]
|
| H A D | phy-ti-pipe3.c | 172 struct clk *refclk; member 609 if (IS_ERR(phy->refclk)) { in ti_pipe3_get_clk() 615 return PTR_ERR(phy->refclk); in ti_pipe3_get_clk() 820 if (!IS_ERR(phy->refclk)) { in ti_pipe3_probe() 821 clk_prepare_enable(phy->refclk); in ti_pipe3_probe() 843 clk_disable_unprepare(phy->refclk); in ti_pipe3_remove() 853 if (!IS_ERR(phy->refclk)) { in ti_pipe3_enable_clocks() 884 if (!IS_ERR(phy->refclk)) in ti_pipe3_enable_clocks() 885 clk_disable_unprepare(phy->refclk); in ti_pipe3_enable_clocks() 894 if (!IS_ERR(phy->refclk)) in ti_pipe3_disable_clocks() [all …]
|
| /linux-6.15/drivers/phy/xilinx/ |
| H A D | phy-zynqmp.c | 215 unsigned int refclk; member 414 if (gtr_phy->refclk == gtr_phy->lane) in xpsgtr_configure_pll() 795 unsigned int refclk; in xpsgtr_xlate() local 825 refclk = args->args[3]; in xpsgtr_xlate() 827 !gtr_dev->refclk_sscs[refclk]) { in xpsgtr_xlate() 832 gtr_phy->refclk = refclk; in xpsgtr_xlate() 929 unsigned int refclk; in xpsgtr_get_ref_clocks() local 931 for (refclk = 0; refclk < ARRAY_SIZE(gtr_dev->refclk_sscs); ++refclk) { in xpsgtr_get_ref_clocks() 942 refclk); in xpsgtr_get_ref_clocks() 948 gtr_dev->clk[refclk] = clk; in xpsgtr_get_ref_clocks() [all …]
|
| /linux-6.15/drivers/net/ethernet/arc/ |
| H A D | emac_rockchip.c | 32 struct clk *refclk; member 147 priv->refclk = devm_clk_get(dev, "macref"); in emac_rockchip_probe() 148 if (IS_ERR(priv->refclk)) { in emac_rockchip_probe() 150 PTR_ERR(priv->refclk)); in emac_rockchip_probe() 151 err = PTR_ERR(priv->refclk); in emac_rockchip_probe() 155 err = clk_prepare_enable(priv->refclk); in emac_rockchip_probe() 195 err = clk_set_rate(priv->refclk, 50000000); in emac_rockchip_probe() 241 clk_disable_unprepare(priv->refclk); in emac_rockchip_probe() 254 clk_disable_unprepare(priv->refclk); in emac_rockchip_remove()
|
| /linux-6.15/Documentation/devicetree/bindings/pinctrl/ |
| H A D | mediatek,mt7620-pinctrl.yaml | 39 pa, pcie refclk, pcie rst, pcm gpio, pcm i2s, pcm uartf, 40 refclk, rgmii1, rgmii2, sd, spi, spi refclk, uartf, uartlite, 41 wdt refclk, wdt rst, wled] 70 spi refclk, uartf, uartlite, wdt, wled] 138 const: pcie refclk 183 const: refclk 228 const: spi refclk 232 enum: [spi refclk] 255 const: wdt refclk
|
| /linux-6.15/drivers/gpu/drm/gma500/ |
| H A D | gma_display.h | 44 int target, int refclk, 49 void (*clock)(int refclk, struct gma_clock_t *clock); 50 const struct gma_limit_t *(*limit)(struct drm_crtc *crtc, int refclk); 83 extern const struct gma_limit_t *gma_limit(struct drm_crtc *crtc, int refclk); 88 struct drm_crtc *crtc, int target, int refclk,
|
| H A D | cdv_intel_display.c | 365 int refclk) in cdv_intel_limit() argument 373 if (refclk == 96000) in cdv_intel_limit() 379 if (refclk == 27000) in cdv_intel_limit() 384 if (refclk == 27000) in cdv_intel_limit() 403 int refclk, in cdv_intel_find_dp_pll() argument 411 switch (refclk) { in cdv_intel_find_dp_pll() 582 int refclk; in cdv_intel_crtc_mode_set() local 629 refclk = 96000; in cdv_intel_crtc_mode_set() 632 refclk = 27000; in cdv_intel_crtc_mode_set() 643 refclk = 27000; in cdv_intel_crtc_mode_set() [all …]
|
| H A D | oaktrail_crtc.c | 41 int refclk, struct gma_clock_t *best_clock); 45 int refclk, struct gma_clock_t *best_clock); 84 int refclk) in mrst_limit() argument 116 clock->dot = (refclk * clock->m) / (14 * clock->p1); in mrst_lvds_clock() 128 int refclk, struct gma_clock_t *best_clock) in mrst_sdvo_find_best_pll() argument 153 actual_freq = (refclk * clock.m) / in mrst_sdvo_find_best_pll() 186 int refclk, struct gma_clock_t *best_clock) in mrst_lvds_find_best_pll() argument 199 mrst_lvds_clock(refclk, &clock); in mrst_lvds_find_best_pll() 370 int refclk = 0; in oaktrail_crtc_mode_set() local 506 limit = mrst_limit(crtc, refclk); in oaktrail_crtc_mode_set() [all …]
|
| /linux-6.15/Documentation/devicetree/bindings/phy/ |
| H A D | fsl,imx8-pcie-phy.yaml | 43 fsl,refclk-pad-mode: 45 Specifies the mode of the refclk pad used. It can be UNUSED(PHY 47 is provided externally via the refclk pad) or OUTPUT(PHY refclock 48 is derived from SoC internal source and provided on the refclk pad). 79 - fsl,refclk-pad-mode 99 fsl,refclk-pad-mode = <IMX8_PCIE_REFCLK_PAD_INPUT>;
|
| /linux-6.15/Documentation/devicetree/bindings/usb/ |
| H A D | octeon-usb.txt | 24 - cavium,refclk-type: type of the USB reference clock. Allowed values are 27 - refclk-frequency: deprecated, use "clock-frequency". 29 - refclk-type: deprecated, use "cavium,refclk-type". 54 cavium,refclk-type = "crystal";
|
| H A D | dwc3-cavium.txt | 18 refclk-frequency = <0x05f5e100>; 19 refclk-type-ss = "dlmc_ref_clk0"; 20 refclk-type-hs = "dlmc_ref_clk0";
|
| H A D | smsc,usb3503.yaml | 70 const: refclk 72 refclk-frequency: 122 clock-names = "refclk"; 141 clock-names = "refclk"; 156 refclk-frequency = <19200000>;
|
| /linux-6.15/Documentation/devicetree/bindings/mips/cavium/ |
| H A D | uctl.txt | 16 - refclk-frequency: A single cell containing the reference clock 19 - refclk-type: A string describing the reference clock connection 30 refclk-frequency = <24000000>; 32 refclk-type = "crystal";
|
| /linux-6.15/Documentation/devicetree/bindings/clock/ |
| H A D | ti,am62-audio-refclk.yaml | 4 $id: http://devicetree.org/schemas/clock/ti,am62-audio-refclk.yaml# 15 - const: ti,am62-audio-refclk 37 compatible = "ti,am62-audio-refclk";
|
| H A D | marvell,berlin.txt | 18 "refclk" for the SoCs oscillator input on all SoCs, 29 clocks = <&refclk>; 30 clock-names = "refclk";
|
| /linux-6.15/drivers/spi/ |
| H A D | spi-zynq-qspi.c | 136 struct clk *refclk; member 350 (clk_get_rate(xqspi->refclk) / (2 << baud_rate_val)) > in zynq_qspi_config_op() 389 ret = clk_enable(qspi->refclk); in zynq_qspi_setup_op() 395 clk_disable(qspi->refclk); in zynq_qspi_setup_op() 673 xqspi->refclk = devm_clk_get(&pdev->dev, "ref_clk"); in zynq_qspi_probe() 674 if (IS_ERR(xqspi->refclk)) { in zynq_qspi_probe() 676 ret = PTR_ERR(xqspi->refclk); in zynq_qspi_probe() 686 ret = clk_prepare_enable(xqspi->refclk); in zynq_qspi_probe() 722 ctlr->max_speed_hz = clk_get_rate(xqspi->refclk) / 2; in zynq_qspi_probe() 737 clk_disable_unprepare(xqspi->refclk); in zynq_qspi_probe() [all …]
|
| /linux-6.15/sound/soc/meson/ |
| H A D | axg-spdifin.c | 55 struct clk *refclk; member 165 ret = clk_set_rate(priv->refclk, priv->conf->ref_rate); in axg_spdifin_sample_mode_config() 175 rate = clk_get_rate(priv->refclk); in axg_spdifin_sample_mode_config() 229 ret = clk_prepare_enable(priv->refclk); in axg_spdifin_dai_probe() 251 clk_disable_unprepare(priv->refclk); in axg_spdifin_dai_remove() 470 priv->refclk = devm_clk_get(dev, "refclk"); in axg_spdifin_probe() 471 if (IS_ERR(priv->refclk)) in axg_spdifin_probe() 472 return dev_err_probe(dev, PTR_ERR(priv->refclk), "failed to get mclk\n"); in axg_spdifin_probe()
|
| /linux-6.15/arch/arm/boot/dts/synaptics/ |
| H A D | berlin2cd.dtsi | 51 refclk: oscillator { label 389 clocks = <&refclk>; 446 clocks = <&refclk>; 453 clocks = <&refclk>; 461 clocks = <&refclk>; 486 clocks = <&refclk>; 497 clocks = <&refclk>; 507 clocks = <&refclk>; 532 clocks = <&refclk>; 544 clocks = <&refclk>; [all …]
|
| /linux-6.15/drivers/phy/ |
| H A D | phy-pistachio-usb.c | 38 unsigned int refclk; member 68 p_phy->refclk << USB_PHY_STRAP_CONTROL_REFCLK_SHIFT); in pistachio_usb_phy_power_on() 71 if (p_phy->refclk == REFCLK_XO_CRYSTAL && rate != 12000000) { in pistachio_usb_phy_power_on() 161 &p_phy->refclk); in pistachio_usb_phy_probe()
|
| /linux-6.15/arch/arm/boot/dts/ti/keystone/ |
| H A D | keystone-k2hk-evm.dts | 59 clock-output-names = "refclk-sys"; 66 clock-output-names = "refclk-pass"; 73 clock-output-names = "refclk-arm"; 80 clock-output-names = "refclk-ddr3a"; 87 clock-output-names = "refclk-ddr3b";
|
| /linux-6.15/drivers/net/ethernet/ti/ |
| H A D | cpts.c | 559 err = clk_enable(cpts->refclk); in cpts_register() 580 clk_disable(cpts->refclk); in cpts_register() 600 clk_disable(cpts->refclk); in cpts_unregister() 609 freq = clk_get_rate(cpts->refclk); in cpts_calc_mult_shift() 768 if (IS_ERR(cpts->refclk)) in cpts_create() 772 if (IS_ERR(cpts->refclk)) { in cpts_create() 774 PTR_ERR(cpts->refclk)); in cpts_create() 775 return ERR_CAST(cpts->refclk); in cpts_create() 778 ret = clk_prepare(cpts->refclk); in cpts_create() 805 if (WARN_ON(!cpts->refclk)) in cpts_release() [all …]
|
| /linux-6.15/arch/arm64/boot/dts/ti/ |
| H A D | k3-am62p-main.dtsi | 15 ti,syscon-phy-pll-refclk = <&usb1_phy_ctrl 0x0>; 47 compatible = "ti,am62-audio-refclk"; 56 compatible = "ti,am62-audio-refclk";
|