Home
last modified time | relevance | path

Searched refs:ref_clk (Results 1 – 25 of 110) sorted by relevance

12345

/Linux-v5.10/drivers/phy/broadcom/
Dphy-bcm-ns-usb2.c21 struct clk *ref_clk; member
34 err = clk_prepare_enable(usb2->ref_clk); in bcm_ns_usb2_phy_init()
40 ref_clk_rate = clk_get_rate(usb2->ref_clk); in bcm_ns_usb2_phy_init()
72 clk_disable_unprepare(usb2->ref_clk); in bcm_ns_usb2_phy_init()
101 usb2->ref_clk = devm_clk_get(dev, "phy-ref-clk"); in bcm_ns_usb2_probe()
102 if (IS_ERR(usb2->ref_clk)) { in bcm_ns_usb2_probe()
104 return PTR_ERR(usb2->ref_clk); in bcm_ns_usb2_probe()
/Linux-v5.10/arch/arm/boot/dts/
Dpicoxcell-pc3x3.dtsi42 ref-clock = <&ref_clk>, "ref";
50 ref-clock = <&ref_clk>, "ref";
58 ref-clock = <&ref_clk>, "ref";
66 ref-clock = <&ref_clk>, "ref";
74 ref-clock = <&ref_clk>, "ref";
82 ref-clock = <&ref_clk>, "ref";
90 ref-clock = <&ref_clk>, "ref";
98 ref-clock = <&ref_clk>, "ref";
106 ref-clock = <&ref_clk>, "ref";
114 ref-clock = <&ref_clk>, "ref";
[all …]
/Linux-v5.10/drivers/phy/hisilicon/
Dphy-hisi-inno-usb2.c38 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()
Dphy-histb-combphy.c47 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-v5.10/drivers/phy/samsung/
Dphy-samsung-usb2.c38 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()
199 drv->ref_clk = devm_clk_get(dev, "ref"); in samsung_usb2_phy_probe()
200 if (IS_ERR(drv->ref_clk)) { in samsung_usb2_phy_probe()
202 return PTR_ERR(drv->ref_clk); in samsung_usb2_phy_probe()
205 drv->ref_rate = clk_get_rate(drv->ref_clk); in samsung_usb2_phy_probe()
Dphy-samsung-ufs.c187 phy->ref_clk = devm_clk_get(phy->dev, "ref_clk"); in samsung_ufs_phy_clks_init()
188 if (IS_ERR(phy->ref_clk)) in samsung_ufs_phy_clks_init()
191 ret = clk_prepare_enable(phy->ref_clk); in samsung_ufs_phy_clks_init()
197 dev_dbg(phy->dev, "UFS MPHY ref_clk_rate = %ld\n", clk_get_rate(phy->ref_clk)); in samsung_ufs_phy_clks_init()
260 clk_disable_unprepare(ss_phy->ref_clk); in samsung_ufs_phy_exit()
/Linux-v5.10/drivers/clk/imx/
Dclk-pllv2.c81 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-v5.10/drivers/spi/
Dspi-cadence.c116 struct clk *ref_clk; member
253 frequency = clk_get_rate(xspi->ref_clk); in cdns_spi_config_clock_freq()
500 xspi->ref_clk = devm_clk_get(&pdev->dev, "ref_clk"); in cdns_spi_probe()
501 if (IS_ERR(xspi->ref_clk)) { in cdns_spi_probe()
503 ret = PTR_ERR(xspi->ref_clk); in cdns_spi_probe()
513 ret = clk_prepare_enable(xspi->ref_clk); in cdns_spi_probe()
562 master->max_speed_hz = clk_get_rate(xspi->ref_clk) / 4; in cdns_spi_probe()
578 clk_disable_unprepare(xspi->ref_clk); in cdns_spi_probe()
603 clk_disable_unprepare(xspi->ref_clk); in cdns_spi_remove()
666 ret = clk_prepare_enable(xspi->ref_clk); in cnds_runtime_resume()
[all …]
Dspi-axi-spi-engine.c83 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()
498 spi_engine->ref_clk = devm_clk_get(&pdev->dev, "spi_clk"); in spi_engine_probe()
499 if (IS_ERR(spi_engine->ref_clk)) { in spi_engine_probe()
500 ret = PTR_ERR(spi_engine->ref_clk); in spi_engine_probe()
508 ret = clk_prepare_enable(spi_engine->ref_clk); in spi_engine_probe()
539 master->max_speed_hz = clk_get_rate(spi_engine->ref_clk) / 2; in spi_engine_probe()
553 clk_disable_unprepare(spi_engine->ref_clk); in spi_engine_probe()
577 clk_disable_unprepare(spi_engine->ref_clk); in spi_engine_remove()
/Linux-v5.10/drivers/gpu/drm/msm/hdmi/
Dhdmi_phy_8996.c103 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-v5.10/drivers/phy/qualcomm/
Dphy-qcom-ipq806x-usb.c118 struct clk *ref_clk; member
266 ret = clk_prepare_enable(phy_dwc3->ref_clk); in qcom_ipq806x_usb_hs_phy_init()
299 clk_disable_unprepare(phy_dwc3->ref_clk); in qcom_ipq806x_usb_hs_phy_exit()
315 ret = clk_prepare_enable(phy_dwc3->ref_clk); in qcom_ipq806x_usb_ss_phy_init()
452 clk_disable_unprepare(phy_dwc3->ref_clk); in qcom_ipq806x_usb_ss_phy_exit()
513 phy_dwc3->ref_clk = devm_clk_get(phy_dwc3->dev, "ref"); in qcom_ipq806x_usb_phy_probe()
514 if (IS_ERR(phy_dwc3->ref_clk)) { in qcom_ipq806x_usb_phy_probe()
516 return PTR_ERR(phy_dwc3->ref_clk); in qcom_ipq806x_usb_phy_probe()
519 clk_set_rate(phy_dwc3->ref_clk, data->clk_rate); in qcom_ipq806x_usb_phy_probe()
Dphy-qcom-usb-hs.c32 struct clk *ref_clk; member
114 ret = clk_prepare_enable(uphy->ref_clk); in qcom_usb_hs_phy_power_on()
175 clk_disable_unprepare(uphy->ref_clk); in qcom_usb_hs_phy_power_on()
189 clk_disable_unprepare(uphy->ref_clk); in qcom_usb_hs_phy_power_off()
231 uphy->ref_clk = clk = devm_clk_get(&ulpi->dev, "ref"); in qcom_usb_hs_phy_probe()
/Linux-v5.10/drivers/rtc/
Drtc-cadence.c82 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-v5.10/drivers/clk/
Dclk-moxart.c23 struct clk *ref_clk; in moxart_of_pll_clk_init() local
40 ref_clk = of_clk_get(node, 0); in moxart_of_pll_clk_init()
41 if (IS_ERR(ref_clk)) { in moxart_of_pll_clk_init()
Dclk-cs2000-cp.c78 struct clk *ref_clk; member
399 struct clk *clk_in, *ref_clk; in cs2000_clk_get() local
406 ref_clk = devm_clk_get(dev, "ref_clk"); in cs2000_clk_get()
408 if (IS_ERR(ref_clk)) in cs2000_clk_get()
412 priv->ref_clk = ref_clk; in cs2000_clk_get()
435 rate = clk_get_rate(priv->ref_clk); in cs2000_clk_register()
441 parent_names[REF_CLK] = __clk_get_name(priv->ref_clk); in cs2000_clk_register()
/Linux-v5.10/drivers/phy/mediatek/
Dphy-mtk-hdmi.c103 struct clk *ref_clk; in mtk_hdmi_phy_probe() local
126 ref_clk = devm_clk_get(dev, "pll_ref"); in mtk_hdmi_phy_probe()
127 if (IS_ERR(ref_clk)) { in mtk_hdmi_phy_probe()
128 ret = PTR_ERR(ref_clk); in mtk_hdmi_phy_probe()
133 ref_clk_name = __clk_get_name(ref_clk); in mtk_hdmi_phy_probe()
/Linux-v5.10/drivers/gpu/drm/mediatek/
Dmtk_mipi_tx.c135 struct clk *ref_clk; in mtk_mipi_tx_probe() local
159 ref_clk = devm_clk_get(dev, NULL); in mtk_mipi_tx_probe()
160 if (IS_ERR(ref_clk)) { in mtk_mipi_tx_probe()
161 ret = PTR_ERR(ref_clk); in mtk_mipi_tx_probe()
180 ref_clk_name = __clk_get_name(ref_clk); in mtk_mipi_tx_probe()
/Linux-v5.10/arch/mips/netlogic/xlp/
Dnlm_hal.c312 u64 sysbase, pll_out_freq_num, ref_clk_select, clockbase, ref_clk; in nlm_xlp2_get_pic_frequency() local
327 ref_clk = 200000000ULL; in nlm_xlp2_get_pic_frequency()
331 ref_clk = 100000000ULL; in nlm_xlp2_get_pic_frequency()
335 ref_clk = 125000000ULL; in nlm_xlp2_get_pic_frequency()
339 ref_clk = 400000000ULL; in nlm_xlp2_get_pic_frequency()
431 pll_out_freq_num = ((ref_clk >> 1) * (6 + mdiv)) + fdiv; in nlm_xlp2_get_pic_frequency()
/Linux-v5.10/include/linux/platform_data/
Dnet-cw1200.h13 u16 ref_clk; /* REQUIRED (in KHz) */ member
28 u16 ref_clk; /* REQUIRED (in KHz) */ member
/Linux-v5.10/Documentation/devicetree/bindings/clock/
Dcs2000-cp.txt8 - clock-names: CLK_IN : clk_in, XTI/REF_CLK : ref_clk
20 clock-names = "clk_in", "ref_clk";
/Linux-v5.10/Documentation/devicetree/bindings/fpga/
Dxilinx-zynq-fpga-mgr.txt8 - clock-names: name for the clock, should be "ref_clk"
17 clock-names = "ref_clk";
/Linux-v5.10/Documentation/devicetree/bindings/usb/
Drockchip,dwc3.txt8 "ref_clk" Controller reference clk, have to be 24 MHz
28 clock-names = "ref_clk", "suspend_clk",
45 clock-names = "ref_clk", "suspend_clk",
/Linux-v5.10/drivers/gpu/drm/mgag200/
Dmgag200_drv.c197 mdev->model.g200.ref_clk = 14318; in mgag200_g200_interpret_bios()
203 mdev->model.g200.ref_clk = 14318; in mgag200_g200_interpret_bios()
212 mdev->model.g200.ref_clk = 14318; in mgag200_g200_interpret_bios()
228 mdev->model.g200.ref_clk = 27050; in mgag200_g200_init_refclk()
244 mdev->model.g200.ref_clk); in mgag200_g200_init_refclk()
/Linux-v5.10/Documentation/devicetree/bindings/spi/
Dspi-zynq-qspi.txt9 - clock-names : List of input clock names - "ref_clk", "pclk"
22 clock-names = "ref_clk", "pclk";
Dspi-zynqmp-qspi.txt9 - clock-names : List of input clock names - "ref_clk", "pclk"
19 clock-names = "ref_clk", "pclk";

12345