| /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
| 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()
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
| 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()
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/usb/ |
| D | usb3503.txt | 18 - refclk: Clock used for driving REFCLK signal (optional, if not provided 23 - refclk-frequency: Frequency of the REFCLK signal as defined by REF_SEL 25 REFCLK signal and assume that a value from the primary reference 38 clock-names = "refclk";
|
| 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";
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/usb/ |
| D | usb3503.txt | 18 - refclk: Clock used for driving REFCLK signal (optional, if not provided 23 - refclk-frequency: Frequency of the REFCLK signal as defined by REF_SEL 25 REFCLK signal and assume that a value from the primary reference 38 clock-names = "refclk";
|
| 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";
|
| /kernel/linux/linux-5.10/drivers/phy/ti/ |
| D | phy-dm816x-usb.c | 56 struct clk *refclk; member 86 if (clk_get_rate(phy->refclk) != 24000000) in dm816x_usb_phy_init() 87 dev_warn(phy->dev, "nonstandard phy refclk\n"); in dm816x_usb_phy_init() 133 clk_disable(phy->refclk); in dm816x_usb_phy_runtime_suspend() 144 error = clk_enable(phy->refclk); in dm816x_usb_phy_runtime_resume() 161 clk_disable(phy->refclk); in dm816x_usb_phy_runtime_resume() 236 phy->refclk = devm_clk_get(phy->dev, "refclk"); in dm816x_usb_phy_probe() 237 if (IS_ERR(phy->refclk)) in dm816x_usb_phy_probe() 238 return PTR_ERR(phy->refclk); in dm816x_usb_phy_probe() 239 error = clk_prepare(phy->refclk); in dm816x_usb_phy_probe() [all …]
|
| D | phy-ti-pipe3.c | 171 struct clk *refclk; member 607 phy->refclk = devm_clk_get(dev, "refclk"); in ti_pipe3_get_clk() 608 if (IS_ERR(phy->refclk)) { in ti_pipe3_get_clk() 609 dev_err(dev, "unable to get refclk\n"); in ti_pipe3_get_clk() 610 /* older DTBs have missing refclk in SATA PHY in ti_pipe3_get_clk() 614 return PTR_ERR(phy->refclk); in ti_pipe3_get_clk() 829 * Prevent auto-disable of refclk for SATA PHY due to Errata i783 in ti_pipe3_probe() 832 if (!IS_ERR(phy->refclk)) { in ti_pipe3_probe() 833 clk_prepare_enable(phy->refclk); in ti_pipe3_probe() 855 clk_disable_unprepare(phy->refclk); in ti_pipe3_remove() [all …]
|
| /kernel/linux/linux-4.19/drivers/phy/ti/ |
| D | phy-dm816x-usb.c | 56 struct clk *refclk; member 87 if (clk_get_rate(phy->refclk) != 24000000) in dm816x_usb_phy_init() 88 dev_warn(phy->dev, "nonstandard phy refclk\n"); in dm816x_usb_phy_init() 134 clk_disable(phy->refclk); in dm816x_usb_phy_runtime_suspend() 145 error = clk_enable(phy->refclk); in dm816x_usb_phy_runtime_resume() 162 clk_disable(phy->refclk); in dm816x_usb_phy_runtime_resume() 240 phy->refclk = devm_clk_get(phy->dev, "refclk"); in dm816x_usb_phy_probe() 241 if (IS_ERR(phy->refclk)) in dm816x_usb_phy_probe() 242 return PTR_ERR(phy->refclk); in dm816x_usb_phy_probe() 243 error = clk_prepare(phy->refclk); in dm816x_usb_phy_probe() [all …]
|
| D | phy-ti-pipe3.c | 134 struct clk *refclk; member 448 phy->refclk = devm_clk_get(dev, "refclk"); in ti_pipe3_get_clk() 449 if (IS_ERR(phy->refclk)) { in ti_pipe3_get_clk() 450 dev_err(dev, "unable to get refclk\n"); in ti_pipe3_get_clk() 451 /* older DTBs have missing refclk in SATA PHY in ti_pipe3_get_clk() 455 return PTR_ERR(phy->refclk); in ti_pipe3_get_clk() 673 * Prevent auto-disable of refclk for SATA PHY due to Errata i783 in ti_pipe3_probe() 676 if (!IS_ERR(phy->refclk)) { in ti_pipe3_probe() 677 clk_prepare_enable(phy->refclk); in ti_pipe3_probe() 705 if (!IS_ERR(phy->refclk)) { in ti_pipe3_enable_clocks() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/gma500/ |
| 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); 91 extern const struct gma_limit_t *gma_limit(struct drm_crtc *crtc, int refclk); 92 extern void gma_clock(int refclk, struct gma_clock_t *clock); 97 struct drm_crtc *crtc, int target, int refclk,
|
| D | oaktrail_crtc.c | 38 int refclk, struct gma_clock_t *best_clock); 42 int refclk, struct gma_clock_t *best_clock); 81 int refclk) in mrst_limit() argument 110 /** Derive the pixel clock for the given refclk and divisors for 8xx chips. */ 111 static void mrst_lvds_clock(int refclk, struct gma_clock_t *clock) in mrst_lvds_clock() argument 113 clock->dot = (refclk * clock->m) / (14 * clock->p1); in mrst_lvds_clock() 125 int refclk, struct gma_clock_t *best_clock) in mrst_sdvo_find_best_pll() argument 150 actual_freq = (refclk * clock.m) / in mrst_sdvo_find_best_pll() 178 * Returns a set of divisors for the desired target clock with the given refclk, 183 int refclk, struct gma_clock_t *best_clock) in mrst_lvds_find_best_pll() argument [all …]
|
| D | cdv_intel_display.c | 24 int refclk, struct gma_clock_t *best_clock); 364 int refclk) in cdv_intel_limit() argument 372 if (refclk == 96000) in cdv_intel_limit() 378 if (refclk == 27000) in cdv_intel_limit() 383 if (refclk == 27000) in cdv_intel_limit() 392 static void cdv_intel_clock(int refclk, struct gma_clock_t *clock) in cdv_intel_clock() argument 396 clock->vco = (refclk * clock->m) / clock->n; in cdv_intel_clock() 402 int refclk, in cdv_intel_find_dp_pll() argument 410 switch (refclk) { in cdv_intel_find_dp_pll() 447 gma_crtc->clock_funcs->clock(refclk, &clock); in cdv_intel_find_dp_pll() [all …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/gma500/ |
| D | gma_display.h | 52 int target, int refclk, 57 void (*clock)(int refclk, struct gma_clock_t *clock); 58 const struct gma_limit_t *(*limit)(struct drm_crtc *crtc, int refclk); 94 extern const struct gma_limit_t *gma_limit(struct drm_crtc *crtc, int refclk); 95 extern void gma_clock(int refclk, struct gma_clock_t *clock); 100 struct drm_crtc *crtc, int target, int refclk,
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/arc/ |
| 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() 255 clk_disable_unprepare(priv->refclk); in emac_rockchip_remove()
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/arc/ |
| D | emac_rockchip.c | 42 struct clk *refclk; member 155 priv->refclk = devm_clk_get(dev, "macref"); in emac_rockchip_probe() 156 if (IS_ERR(priv->refclk)) { in emac_rockchip_probe() 158 PTR_ERR(priv->refclk)); in emac_rockchip_probe() 159 err = PTR_ERR(priv->refclk); in emac_rockchip_probe() 163 err = clk_prepare_enable(priv->refclk); in emac_rockchip_probe() 203 err = clk_set_rate(priv->refclk, 50000000); in emac_rockchip_probe() 249 clk_disable_unprepare(priv->refclk); in emac_rockchip_probe() 263 clk_disable_unprepare(priv->refclk); in emac_rockchip_remove()
|
| /kernel/linux/linux-4.19/arch/mips/bcm63xx/ |
| D | clk.c | 409 CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph), 410 CLKDEV_INIT("bcm63xx_uart.1", "refclk", &clk_periph), 426 CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph), 427 CLKDEV_INIT("bcm63xx_uart.1", "refclk", &clk_periph), 440 CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph), 454 CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph), 468 CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph), 483 CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph), 484 CLKDEV_INIT("bcm63xx_uart.1", "refclk", &clk_periph), 502 CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph), [all …]
|
| /kernel/linux/linux-5.10/arch/mips/bcm63xx/ |
| D | clk.c | 409 CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph), 410 CLKDEV_INIT("bcm63xx_uart.1", "refclk", &clk_periph), 426 CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph), 427 CLKDEV_INIT("bcm63xx_uart.1", "refclk", &clk_periph), 440 CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph), 454 CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph), 468 CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph), 483 CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph), 484 CLKDEV_INIT("bcm63xx_uart.1", "refclk", &clk_periph), 502 CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph), [all …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/mips/cavium/ |
| 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";
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/mips/cavium/ |
| 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";
|
| /kernel/linux/linux-5.10/drivers/phy/xilinx/ |
| D | phy-zynqmp.c | 103 /* Refclk selection parameters */ 191 * @refclk: reference clock index 200 unsigned int refclk; member 342 ssc = gtr_phy->dev->refclk_sscs[gtr_phy->refclk]; in xpsgtr_configure_pll() 349 if (gtr_phy->refclk != gtr_phy->lane) { in xpsgtr_configure_pll() 352 L0_REF_CLK_SEL_MASK, 1 << gtr_phy->refclk); in xpsgtr_configure_pll() 764 unsigned int refclk; in xpsgtr_xlate() local 793 refclk = args->args[3]; in xpsgtr_xlate() 794 if (refclk >= ARRAY_SIZE(gtr_dev->refclk_sscs) || in xpsgtr_xlate() 795 !gtr_dev->refclk_sscs[refclk]) { in xpsgtr_xlate() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/phy/ |
| D | smsc.c | 48 struct clk *refclk; member 265 clk_disable_unprepare(priv->refclk); in smsc_phy_remove() 266 clk_put(priv->refclk); in smsc_phy_remove() 288 priv->refclk = clk_get_optional(dev, NULL); in smsc_phy_probe() 289 if (IS_ERR(priv->refclk)) in smsc_phy_probe() 290 return dev_err_probe(dev, PTR_ERR(priv->refclk), in smsc_phy_probe() 293 ret = clk_prepare_enable(priv->refclk); in smsc_phy_probe() 297 ret = clk_set_rate(priv->refclk, 50 * 1000 * 1000); in smsc_phy_probe() 299 clk_disable_unprepare(priv->refclk); in smsc_phy_probe()
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/phy/ |
| D | ti,phy-j721e-wiz.yaml | 77 "^pll[0|1]-refclk$": 120 "^refclk-dig$": 188 pll0-refclk { 195 pll1-refclk { 202 cmn-refclk-dig-div { 212 refclk-dig {
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/ti/ |
| D | cpts.c | 571 clk_enable(cpts->refclk); in cpts_register() 590 clk_disable(cpts->refclk); in cpts_register() 610 clk_disable(cpts->refclk); in cpts_unregister() 619 freq = clk_get_rate(cpts->refclk); in cpts_calc_mult_shift() 660 refclk_np = of_get_child_by_name(node, "cpts-refclk-mux"); in cpts_of_mux_clk_setup() 662 /* refclk selection supported not for all SoCs */ in cpts_of_mux_clk_setup() 770 cpts->refclk = devm_get_clk_from_child(dev, node, "cpts"); in cpts_create() 771 if (IS_ERR(cpts->refclk)) in cpts_create() 773 cpts->refclk = devm_clk_get(dev, "cpts"); in cpts_create() 775 if (IS_ERR(cpts->refclk)) { in cpts_create() [all …]
|
| /kernel/linux/linux-4.19/arch/arm/boot/dts/ |
| D | berlin2cd.dtsi | 51 refclk: oscillator { label 389 clocks = <&refclk>; 390 clock-names = "refclk"; 446 clocks = <&refclk>; 453 clocks = <&refclk>; 461 clocks = <&refclk>; 486 clocks = <&refclk>; 497 clocks = <&refclk>; 507 clocks = <&refclk>; 532 clocks = <&refclk>; [all …]
|