/linux-6.1.9/drivers/phy/broadcom/ |
D | phy-bcm-ns-usb2.c | 23 struct clk *ref_clk; member 39 err = clk_prepare_enable(usb2->ref_clk); in bcm_ns_usb2_phy_init() 45 ref_clk_rate = clk_get_rate(usb2->ref_clk); in bcm_ns_usb2_phy_init() 89 clk_disable_unprepare(usb2->ref_clk); in bcm_ns_usb2_phy_init() 133 usb2->ref_clk = devm_clk_get(dev, "phy-ref-clk"); in bcm_ns_usb2_probe() 134 if (IS_ERR(usb2->ref_clk)) { in bcm_ns_usb2_probe() 135 dev_err_probe(dev, PTR_ERR(usb2->ref_clk), "failed to get ref clk\n"); in bcm_ns_usb2_probe() 136 return PTR_ERR(usb2->ref_clk); in bcm_ns_usb2_probe()
|
/linux-6.1.9/drivers/phy/hisilicon/ |
D | phy-hisi-inno-usb2.c | 38 struct clk *ref_clk; member 75 ret = clk_prepare_enable(priv->ref_clk); in hisi_inno_phy_init() 99 clk_disable_unprepare(priv->ref_clk); in hisi_inno_phy_exit() 130 priv->ref_clk = devm_clk_get(dev, NULL); in hisi_inno_phy_probe() 131 if (IS_ERR(priv->ref_clk)) in hisi_inno_phy_probe() 132 return PTR_ERR(priv->ref_clk); in hisi_inno_phy_probe()
|
D | phy-histb-combphy.c | 47 struct clk *ref_clk; member 120 ret = clk_prepare_enable(priv->ref_clk); in histb_combphy_init() 153 clk_disable_unprepare(priv->ref_clk); in histb_combphy_exit() 243 priv->ref_clk = devm_clk_get(dev, NULL); in histb_combphy_probe() 244 if (IS_ERR(priv->ref_clk)) { in histb_combphy_probe() 246 return PTR_ERR(priv->ref_clk); in histb_combphy_probe()
|
/linux-6.1.9/drivers/phy/samsung/ |
D | phy-samsung-usb2.c | 38 ret = clk_prepare_enable(drv->ref_clk); in samsung_usb2_phy_power_on() 52 clk_disable_unprepare(drv->ref_clk); in samsung_usb2_phy_power_on() 77 clk_disable_unprepare(drv->ref_clk); in samsung_usb2_phy_power_off() 201 drv->ref_clk = devm_clk_get(dev, "ref"); in samsung_usb2_phy_probe() 202 if (IS_ERR(drv->ref_clk)) { in samsung_usb2_phy_probe() 204 return PTR_ERR(drv->ref_clk); in samsung_usb2_phy_probe() 207 drv->ref_rate = clk_get_rate(drv->ref_clk); in samsung_usb2_phy_probe()
|
/linux-6.1.9/drivers/clk/imx/ |
D | clk-pllv2.c | 81 long mfi, mfn, mfd, pdf, ref_clk; in __clk_pllv2_recalc_rate() local 94 ref_clk = 2 * parent_rate; in __clk_pllv2_recalc_rate() 96 ref_clk *= 2; in __clk_pllv2_recalc_rate() 98 ref_clk /= (pdf + 1); in __clk_pllv2_recalc_rate() 99 temp = (u64) ref_clk * abs(mfn); in __clk_pllv2_recalc_rate() 102 temp = (ref_clk * mfi) - temp; in __clk_pllv2_recalc_rate() 104 temp = (ref_clk * mfi) + temp; in __clk_pllv2_recalc_rate()
|
/linux-6.1.9/drivers/phy/mediatek/ |
D | phy-mtk-hdmi.c | 70 struct clk *ref_clk; in mtk_hdmi_phy_probe() local 89 ref_clk = devm_clk_get(dev, "pll_ref"); in mtk_hdmi_phy_probe() 90 if (IS_ERR(ref_clk)) in mtk_hdmi_phy_probe() 91 return dev_err_probe(dev, PTR_ERR(ref_clk), in mtk_hdmi_phy_probe() 94 ref_clk_name = __clk_get_name(ref_clk); in mtk_hdmi_phy_probe()
|
D | phy-mtk-mipi-dsi.c | 110 struct clk *ref_clk; in mtk_mipi_tx_probe() local 132 ref_clk = devm_clk_get(dev, NULL); in mtk_mipi_tx_probe() 133 if (IS_ERR(ref_clk)) in mtk_mipi_tx_probe() 134 return dev_err_probe(dev, PTR_ERR(ref_clk), in mtk_mipi_tx_probe() 151 ref_clk_name = __clk_get_name(ref_clk); in mtk_mipi_tx_probe()
|
D | phy-mtk-xsphy.c | 87 struct clk *ref_clk; /* reference clock of anolog phy */ member 314 ret = clk_prepare_enable(inst->ref_clk); in mtk_phy_init() 330 clk_disable_unprepare(inst->ref_clk); in mtk_phy_init() 365 clk_disable_unprepare(inst->ref_clk); in mtk_phy_exit() 512 inst->ref_clk = devm_clk_get(&phy->dev, "ref"); in mtk_xsphy_probe() 513 if (IS_ERR(inst->ref_clk)) { in mtk_xsphy_probe() 515 retval = PTR_ERR(inst->ref_clk); in mtk_xsphy_probe()
|
/linux-6.1.9/drivers/gpu/drm/rockchip/ |
D | dw_hdmi-rockchip.c | 77 struct clk *ref_clk; member 211 hdmi->ref_clk = devm_clk_get_optional(hdmi->dev, "ref"); in rockchip_hdmi_parse_dt() 212 if (!hdmi->ref_clk) in rockchip_hdmi_parse_dt() 213 hdmi->ref_clk = devm_clk_get_optional(hdmi->dev, "vpll"); in rockchip_hdmi_parse_dt() 215 if (PTR_ERR(hdmi->ref_clk) == -EPROBE_DEFER) { in rockchip_hdmi_parse_dt() 217 } else if (IS_ERR(hdmi->ref_clk)) { in rockchip_hdmi_parse_dt() 219 return PTR_ERR(hdmi->ref_clk); in rockchip_hdmi_parse_dt() 281 clk_set_rate(hdmi->ref_clk, adj_mode->clock * 1000); in dw_hdmi_rockchip_encoder_mode_set() 593 ret = clk_prepare_enable(hdmi->ref_clk); in dw_hdmi_rockchip_bind() 628 clk_disable_unprepare(hdmi->ref_clk); in dw_hdmi_rockchip_bind() [all …]
|
/linux-6.1.9/drivers/gpu/drm/mgag200/ |
D | mgag200_g200.c | 83 long ref_clk = g200->ref_clk; in mgag200_g200_pixpllc_atomic_check() local 106 computed = ref_clk * (testn + 1) / (testm + 1); in mgag200_g200_pixpllc_atomic_check() 118 f_vco = ref_clk * n / m; in mgag200_g200_pixpllc_atomic_check() 341 g200->ref_clk = 14318; in mgag200_g200_interpret_bios() 347 g200->ref_clk = 14318; in mgag200_g200_interpret_bios() 356 g200->ref_clk = 14318; in mgag200_g200_interpret_bios() 374 g200->ref_clk = 27050; in mgag200_g200_init_refclk() 389 g200->pclk_min, g200->pclk_max, g200->ref_clk); in mgag200_g200_init_refclk()
|
/linux-6.1.9/drivers/gpu/drm/msm/hdmi/ |
D | hdmi_phy_8996.c | 103 static inline u32 pll_get_cpctrl(u64 frac_start, unsigned long ref_clk, in pll_get_cpctrl() argument 107 return (11000000 / (ref_clk / 20)); in pll_get_cpctrl() 128 static inline u32 pll_get_integloop_gain(u64 frac_start, u64 bclk, u32 ref_clk, in pll_get_integloop_gain() argument 135 base = (64 * ref_clk) / HDMI_DEFAULT_REF_CLOCK; in pll_get_integloop_gain() 137 base = (1022 * ref_clk) / 100; in pll_get_integloop_gain() 144 static inline u32 pll_get_pll_cmp(u64 fdata, unsigned long ref_clk) in pll_get_pll_cmp() argument 147 u32 divisor = ref_clk * 10; in pll_get_pll_cmp() 157 static inline u64 pll_cmp_to_fdata(u32 pll_cmp, unsigned long ref_clk) in pll_cmp_to_fdata() argument 159 u64 fdata = ((u64)pll_cmp) * ref_clk * 10; in pll_cmp_to_fdata() 218 static int pll_calculate(unsigned long pix_clk, unsigned long ref_clk, in pll_calculate() argument [all …]
|
/linux-6.1.9/drivers/spi/ |
D | spi-cadence.c | 115 struct clk *ref_clk; member 525 xspi->ref_clk = devm_clk_get(&pdev->dev, "ref_clk"); in cdns_spi_probe() 526 if (IS_ERR(xspi->ref_clk)) { in cdns_spi_probe() 528 ret = PTR_ERR(xspi->ref_clk); in cdns_spi_probe() 538 ret = clk_prepare_enable(xspi->ref_clk); in cdns_spi_probe() 589 xspi->clk_rate = clk_get_rate(xspi->ref_clk); in cdns_spi_probe() 610 clk_disable_unprepare(xspi->ref_clk); in cdns_spi_probe() 635 clk_disable_unprepare(xspi->ref_clk); in cdns_spi_remove() 698 ret = clk_prepare_enable(xspi->ref_clk); in cdns_spi_runtime_resume() 720 clk_disable_unprepare(xspi->ref_clk); in cdns_spi_runtime_suspend()
|
D | spi-axi-spi-engine.c | 83 struct clk *ref_clk; member 135 clk_div = DIV_ROUND_UP(clk_get_rate(spi_engine->ref_clk), in spi_engine_get_clk_div() 169 unsigned int spi_clk = clk_get_rate(spi_engine->ref_clk); in spi_engine_gen_sleep() 494 spi_engine->ref_clk = devm_clk_get(&pdev->dev, "spi_clk"); in spi_engine_probe() 495 if (IS_ERR(spi_engine->ref_clk)) { in spi_engine_probe() 496 ret = PTR_ERR(spi_engine->ref_clk); in spi_engine_probe() 504 ret = clk_prepare_enable(spi_engine->ref_clk); in spi_engine_probe() 535 master->max_speed_hz = clk_get_rate(spi_engine->ref_clk) / 2; in spi_engine_probe() 549 clk_disable_unprepare(spi_engine->ref_clk); in spi_engine_probe() 573 clk_disable_unprepare(spi_engine->ref_clk); in spi_engine_remove()
|
/linux-6.1.9/drivers/phy/qualcomm/ |
D | phy-qcom-ipq806x-usb.c | 122 struct clk *ref_clk; member 262 ret = clk_prepare_enable(phy_dwc3->ref_clk); in qcom_ipq806x_usb_hs_phy_init() 295 clk_disable_unprepare(phy_dwc3->ref_clk); in qcom_ipq806x_usb_hs_phy_exit() 311 ret = clk_prepare_enable(phy_dwc3->ref_clk); in qcom_ipq806x_usb_ss_phy_init() 448 clk_disable_unprepare(phy_dwc3->ref_clk); in qcom_ipq806x_usb_ss_phy_exit() 509 phy_dwc3->ref_clk = devm_clk_get(phy_dwc3->dev, "ref"); in qcom_ipq806x_usb_phy_probe() 510 if (IS_ERR(phy_dwc3->ref_clk)) { in qcom_ipq806x_usb_phy_probe() 512 return PTR_ERR(phy_dwc3->ref_clk); in qcom_ipq806x_usb_phy_probe() 515 clk_set_rate(phy_dwc3->ref_clk, data->clk_rate); in qcom_ipq806x_usb_phy_probe()
|
D | phy-qcom-usb-hs.c | 32 struct clk *ref_clk; member 115 ret = clk_prepare_enable(uphy->ref_clk); in qcom_usb_hs_phy_power_on() 176 clk_disable_unprepare(uphy->ref_clk); in qcom_usb_hs_phy_power_on() 190 clk_disable_unprepare(uphy->ref_clk); in qcom_usb_hs_phy_power_off() 232 uphy->ref_clk = clk = devm_clk_get(&ulpi->dev, "ref"); in qcom_usb_hs_phy_probe()
|
/linux-6.1.9/Documentation/devicetree/bindings/phy/ |
D | amlogic,g12a-usb3-pcie-phy.yaml | 26 - const: ref_clk 54 clocks = <&ref_clk>; 55 clock-names = "ref_clk";
|
D | samsung,ufs-phy.yaml | 77 - const: ref_clk 90 - const: ref_clk 108 clock-names = "ref_clk", "rx1_symbol_clk",
|
/linux-6.1.9/drivers/rtc/ |
D | rtc-cadence.c | 82 struct clk *ref_clk; member 281 crtc->ref_clk = devm_clk_get(&pdev->dev, "ref_clk"); in cdns_rtc_probe() 282 if (IS_ERR(crtc->ref_clk)) { in cdns_rtc_probe() 283 ret = PTR_ERR(crtc->ref_clk); in cdns_rtc_probe() 302 ret = clk_prepare_enable(crtc->ref_clk); in cdns_rtc_probe() 309 ref_clk_freq = clk_get_rate(crtc->ref_clk); in cdns_rtc_probe() 349 clk_disable_unprepare(crtc->ref_clk); in cdns_rtc_probe() 365 clk_disable_unprepare(crtc->ref_clk); in cdns_rtc_remove()
|
/linux-6.1.9/drivers/clk/ |
D | clk-moxart.c | 20 struct clk *ref_clk; in moxart_of_pll_clk_init() local 37 ref_clk = of_clk_get(node, 0); in moxart_of_pll_clk_init() 38 if (IS_ERR(ref_clk)) { in moxart_of_pll_clk_init()
|
D | clk-cs2000-cp.c | 106 struct clk *ref_clk; member 442 struct clk *clk_in, *ref_clk; in cs2000_clk_get() local 449 ref_clk = devm_clk_get(dev, "ref_clk"); in cs2000_clk_get() 451 if (IS_ERR(ref_clk)) in cs2000_clk_get() 455 priv->ref_clk = ref_clk; in cs2000_clk_get() 486 ref_clk_rate = clk_get_rate(priv->ref_clk); in cs2000_clk_register() 506 parent_names[REF_CLK] = __clk_get_name(priv->ref_clk); in cs2000_clk_register()
|
/linux-6.1.9/Documentation/devicetree/bindings/i2c/ |
D | apple,i2c.yaml | 43 Allowed values are between ref_clk/(16*4) and ref_clk/(16*255). 63 clocks = <&ref_clk>;
|
/linux-6.1.9/include/linux/platform_data/ |
D | net-cw1200.h | 13 u16 ref_clk; /* REQUIRED (in KHz) */ member 28 u16 ref_clk; /* REQUIRED (in KHz) */ member
|
/linux-6.1.9/drivers/net/wireless/ath/ath10k/ |
D | ahb.c | 96 ar_ahb->ref_clk = devm_clk_get(dev, "wifi_wcss_ref"); in ath10k_ahb_clock_init() 97 if (IS_ERR_OR_NULL(ar_ahb->ref_clk)) { in ath10k_ahb_clock_init() 99 PTR_ERR(ar_ahb->ref_clk)); in ath10k_ahb_clock_init() 100 return ar_ahb->ref_clk ? PTR_ERR(ar_ahb->ref_clk) : -ENODEV; in ath10k_ahb_clock_init() 118 ar_ahb->ref_clk = NULL; in ath10k_ahb_clock_deinit() 128 IS_ERR_OR_NULL(ar_ahb->ref_clk) || in ath10k_ahb_clock_enable() 141 ret = clk_prepare_enable(ar_ahb->ref_clk); in ath10k_ahb_clock_enable() 156 clk_disable_unprepare(ar_ahb->ref_clk); in ath10k_ahb_clock_enable() 171 clk_disable_unprepare(ar_ahb->ref_clk); in ath10k_ahb_clock_disable()
|
/linux-6.1.9/Documentation/devicetree/bindings/clock/ |
D | cirrus,cs2000-cp.yaml | 31 - const: ref_clk 44 - 0 # CS2000CP_AUX_OUTPUT_REF_CLK: ref_clk input 87 clock-names = "clk_in", "ref_clk";
|
/linux-6.1.9/drivers/phy/marvell/ |
D | phy-mvebu-a3700-comphy.c | 533 u32 mask, data, ref_clk; in mvebu_a3700_comphy_sata_power_on() local 560 ref_clk = REF_FREF_SEL_SERDES_40MHZ; in mvebu_a3700_comphy_sata_power_on() 562 ref_clk = REF_FREF_SEL_SERDES_25MHZ; in mvebu_a3700_comphy_sata_power_on() 564 data = ref_clk | COMPHY_MODE_SATA; in mvebu_a3700_comphy_sata_power_on() 821 u32 mask, data, cfg, ref_clk; in mvebu_a3700_comphy_usb3_power_on() local 899 ref_clk = REF_FREF_SEL_PCIE_USB3_40MHZ; in mvebu_a3700_comphy_usb3_power_on() 902 ref_clk = REF_FREF_SEL_PCIE_USB3_25MHZ; in mvebu_a3700_comphy_usb3_power_on() 907 PU_TX_INTP_BIT | PU_DFE_BIT | COMPHY_MODE_USB3 | ref_clk; in mvebu_a3700_comphy_usb3_power_on() 986 u32 mask, data, ref_clk; in mvebu_a3700_comphy_pcie_power_on() local 1032 ref_clk = REF_FREF_SEL_PCIE_USB3_40MHZ; in mvebu_a3700_comphy_pcie_power_on() [all …]
|