| /OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
| H A D | pllgt215.c | 36 *P = info->vco1.max_freq / freq; in gt215_pll_calc() 37 if (*P > info->max_p) in gt215_pll_calc() 38 *P = info->max_p; in gt215_pll_calc() 39 if (*P < info->min_p) in gt215_pll_calc() 40 *P = info->min_p; in gt215_pll_calc() 42 lM = (info->refclk + info->vco1.max_inputfreq) / info->vco1.max_inputfreq; in gt215_pll_calc() 43 lM = max(lM, (int)info->vco1.min_m); in gt215_pll_calc() 44 hM = (info->refclk + info->vco1.min_inputfreq) / info->vco1.min_inputfreq; in gt215_pll_calc() 45 hM = min(hM, (int)info->vco1.max_m); in gt215_pll_calc() 50 N = tmp / info->refclk; in gt215_pll_calc() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/phy/ti/ |
| H A D | phy-dm816x-usb.c | 56 struct clk *refclk; member 64 otg->host = host; in dm816x_usb_phy_set_host() 66 otg->state = OTG_STATE_UNDEFINED; in dm816x_usb_phy_set_host() 74 otg->gadget = gadget; in dm816x_usb_phy_set_peripheral() 76 otg->state = OTG_STATE_UNDEFINED; in dm816x_usb_phy_set_peripheral() 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() 90 regmap_update_bits(phy->syscon, phy->usb_ctrl, in dm816x_usb_phy_init() 95 regmap_read(phy->syscon, phy->usb_ctrl, &val); in dm816x_usb_phy_init() 97 dev_info(phy->dev, in dm816x_usb_phy_init() [all …]
|
| H A D | phy-ti-pipe3.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * phy-ti-pipe3 - PIPE3 PHY driver. 5 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com 171 struct clk *refclk; member 215 /* DRA75x TRM Table 26-17 Preferred USB3_PHY_RX SCP Register Settings */ 241 /* DRA75x TRM Table 26-9 Preferred SATA_PHY_RX SCP Register Settings */ 266 /* DRA75x TRM Table 26-62 Preferred PCIe_PHY_RX SCP Register Settings */ 302 struct pipe3_dpll_map *dpll_map = phy->dpll_map; in ti_pipe3_get_dpll_params() 304 rate = clk_get_rate(phy->sys_clk); in ti_pipe3_get_dpll_params() 306 for (; dpll_map->rate; dpll_map++) { in ti_pipe3_get_dpll_params() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/video/rockchip/ |
| H A D | rk_mipi.c | 3 * Author: Eric Gao <eric.gao@rock-chips.com> 5 * SPDX-License-Identifier: GPL-2.0+ 20 #include <dm/uclass-internal.h> 34 ret = fdtdec_decode_display_timing(gd->fdt_blob, dev_of_offset(dev), in rk_mipi_read_timing() 39 return -EINVAL; in rk_mipi_read_timing() 62 mask = ~((0xffffffff << offset) & (0xffffffff >> (32 - offset - bits))); in rk_mipi_dsi_write() 85 uintptr_t regs = priv->regs; in rk_mipi_dsi_enable() 86 u32 txbyte_clk = priv->txbyte_clk; in rk_mipi_dsi_enable() 87 u32 txesc_clk = priv->txesc_clk; in rk_mipi_dsi_enable() 92 rk_mipi_dsi_write(regs, VID_HSA_TIME, timing->hsync_len.typ); in rk_mipi_dsi_enable() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/usb/ |
| H A D | usb3503.txt | 1 SMSC USB3503 High-Speed Hub Controller 4 - compatible: Should be "smsc,usb3503" or "smsc,usb3503a". 7 - reg: Specifies the i2c slave address, it is required and should be 0x08 9 - connect-gpios: Should specify GPIO for connect. 10 - disabled-ports: Should specify the ports unused. 14 - intn-gpios: Should specify GPIO for interrupt. 15 - reset-gpios: Should specify GPIO for reset. 16 - initial-mode: Should specify initial mode. 18 - refclk: Clock used for driving REFCLK signal (optional, if not provided 22 clock-names in order to assign it [all …]
|
| H A D | octeon-usb.txt | 7 - compatible: must be "cavium,octeon-5750-usbn" 9 - reg: specifies the physical base address of the USBN block and 12 - #address-cells: specifies the number of cells needed to encode an 15 - #size-cells: specifies the number of cells used to represent the size 18 - ranges: specifies the translation between child address space and parent 21 - clock-frequency: speed of the USB reference clock. Allowed values are 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". 33 The main node must have one child node which describes the built-in [all …]
|
| /OK3568_Linux_fs/kernel/drivers/phy/xilinx/ |
| H A D | phy-zynqmp.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * phy-zynqmp.c - PHY driver for Xilinx ZynqMP GT. 5 * Copyright (C) 2018-2020 Xilinx Inc. 26 #include <dt-bindings/phy/phy.h> 32 /* TX De-emphasis parameters */ 103 /* Refclk selection parameters */ 171 * struct xpsgtr_ssc - structure to hold SSC settings for a lane 185 * struct xpsgtr_phy - representation of a lane 192 * @refclk: reference clock index 201 unsigned int refclk; member [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/gma500/ |
| H A D | gma_display.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright © 2006-2011 Intel Corporation 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,
|
| H A D | cdv_intel_display.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright © 2006-2011 Intel Corporation 24 int refclk, struct gma_clock_t *best_clock); 56 /* The single-channel range is 25-112Mhz, and dual-channel 57 * is 80-224Mhz. Prefer single channel as much as possible. 117 ret__ = -ETIMEDOUT; \ 216 int pipe = gma_crtc->pipe; in cdv_dpll_set_clock_cdv() 271 m |= ((clock->m2) << SB_M_DIVIDER_SHIFT); in cdv_dpll_set_clock_cdv() 287 n_vco |= ((clock->n) << SB_N_DIVIDER_SHIFT); in cdv_dpll_set_clock_cdv() 289 if (clock->vco < 2250000) { in cdv_dpll_set_clock_cdv() [all …]
|
| H A D | oaktrail_crtc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 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 84 struct drm_device *dev = crtc->dev; in mrst_limit() 85 struct drm_psb_private *dev_priv = dev->dev_private; in mrst_limit() 89 switch (dev_priv->core_freq) { in mrst_limit() 104 dev_err(dev->dev, "mrst_limit Wrong display type.\n"); in mrst_limit() 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 [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/arc/ |
| H A D | emac_rockchip.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * emac-rockchip.c - Rockchip EMAC specific glue layer 32 struct clk *refclk; member 39 u32 speed_offset = emac->soc_data->grf_speed_offset; in emac_rockchip_set_mac_speed() 55 err = regmap_write(emac->grf, emac->soc_data->grf_offset, data); in emac_rockchip_set_mac_speed() 77 .compatible = "rockchip,rk3036-emac", 81 .compatible = "rockchip,rk3066-emac", 85 .compatible = "rockchip,rk3188-emac", 95 struct device *dev = &pdev->dev; in emac_rockchip_probe() 103 if (!pdev->dev.of_node) in emac_rockchip_probe() [all …]
|
| /OK3568_Linux_fs/kernel/arch/mips/bcm63xx/ |
| H A D | clk.c | 33 if (clk->set && (clk->usage++) == 0) in clk_enable_unlocked() 34 clk->set(clk, 1); in clk_enable_unlocked() 39 if (clk->set && (--clk->usage) == 0) in clk_disable_unlocked() 40 clk->set(clk, 0); in clk_disable_unlocked() 92 if (clk->id == 0) in enetx_set() 401 return clk->rate; in clk_get_rate() 421 CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph), 422 CLKDEV_INIT("bcm63xx_uart.1", "refclk", &clk_periph), 438 CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph), 439 CLKDEV_INIT("bcm63xx_uart.1", "refclk", &clk_periph), [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/ti/ |
| H A D | cpts.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 #include <linux/clk-provider.h> 32 #define cpts_read32(c, r) readl_relaxed(&c->reg->r) 33 #define cpts_write32(c, v, r) writel_relaxed(v, &c->reg->r) 37 return (event->high >> PORT_NUMBER_SHIFT) & PORT_NUMBER_MASK; in cpts_event_port() 42 return time_after(jiffies, event->tmo); in event_expired() 47 return (event->high >> EVENT_TYPE_SHIFT) & EVENT_TYPE_MASK; in event_type() 60 return -1; in cpts_fifo_pop() 69 list_for_each_safe(this, next, &cpts->events) { in cpts_purge_events() 72 list_del_init(&event->list); in cpts_purge_events() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/phy/ |
| H A D | smsc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 25 /* Vendor-specific PHY Definitions */ 48 struct clk *refclk; member 53 struct smsc_phy_priv *priv = phydev->priv; in smsc_phy_config_intr() 57 if (phydev->interrupts == PHY_INTERRUPT_ENABLED) { in smsc_phy_config_intr() 59 if (priv->energy_enable) in smsc_phy_config_intr() 77 struct smsc_phy_priv *priv = phydev->priv; in smsc_phy_config_init() 80 if (!priv->energy_enable) in smsc_phy_config_init() 126 switch (phydev->mdix_ctrl) { in lan87xx_config_aneg() 151 phydev->mdix = phydev->mdix_ctrl; in lan87xx_config_aneg() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/phy/rockchip/ |
| H A D | phy-rockchip-naneng-combphy.c | 1 // SPDX-License-Identifier: GPL-2.0 19 #include <dt-bindings/phy/phy.h> 98 ret = regmap_read(base, reg->offset, &orig); in param_read() 102 mask = GENMASK(reg->bitend, reg->bitstart); in param_read() 103 tmp = (orig & mask) >> reg->bitstart; in param_read() 113 tmp = en ? reg->enable : reg->disable; in param_write() 114 mask = GENMASK(reg->bitend, reg->bitstart); in param_write() 115 val = (tmp << reg->bitstart) | (mask << BIT_WRITEABLE_SHIFT); in param_write() 117 return regmap_write(base, reg->offset, val); in param_write() 122 const struct rockchip_combphy_grfcfg *cfg = priv->cfg->grfcfg; in rockchip_combphy_is_ready() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mips/cavium/ |
| H A D | uctl.txt | 4 - compatible: "cavium,octeon-6335-uctl" 8 - reg: The base address of the UCTL register bank. 10 - #address-cells: Must be <2>. 12 - #size-cells: Must be <2>. 14 - ranges: Empty to signify direct mapping of the children. 16 - refclk-frequency: A single cell containing the reference clock 19 - refclk-type: A string describing the reference clock connection 24 compatible = "cavium,octeon-6335-uctl"; 27 #address-cells = <2>; 28 #size-cells = <2>; [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/boot/dts/ |
| H A D | berlin2cd.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 3 * Device Tree Include file for Marvell Armada 1500-mini (Berlin BG2CD) SoC 11 #include <dt-bindings/clock/berlin2.h> 12 #include <dt-bindings/interrupt-controller/arm-gic.h> 15 model = "Marvell Armada 1500-mini (BG2CD) SoC"; 17 #address-cells = <1>; 18 #size-cells = <1>; 26 #address-cells = <1>; 27 #size-cells = <0>; 30 compatible = "arm,cortex-a9"; [all …]
|
| /OK3568_Linux_fs/kernel/drivers/clk/berlin/ |
| H A D | bg2.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Alexandre Belloni <alexandre.belloni@free-electrons.com> 10 #include <linux/clk-provider.h> 17 #include <dt-bindings/clock/berlin2.h> 19 #include "berlin2-avpll.h" 20 #include "berlin2-div.h" 21 #include "berlin2-pll.h" 77 * - audio_fast_pll is unknown 78 * - audiohd_pll is unknown 79 * - video0_pll is unknown [all …]
|
| H A D | bg2q.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Alexandre Belloni <alexandre.belloni@free-electrons.com> 10 #include <linux/clk-provider.h> 17 #include <dt-bindings/clock/berlin2q.h> 19 #include "berlin2-div.h" 20 #include "berlin2-pll.h" 45 REFCLK, enumerator 52 [REFCLK] = "refclk", 293 clk_data->num = MAX_CLKS; in berlin2q_clock_setup() 294 hws = clk_data->hws; in berlin2q_clock_setup() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/phy/ |
| H A D | ti,phy-j721e-wiz.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 # Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/ 4 --- 5 $id: "http://devicetree.org/schemas/phy/ti,phy-j721e-wiz.yaml#" 6 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 11 - Kishon Vijay Abraham I <kishon@ti.com> 16 - ti,j721e-wiz-16g 17 - ti,j721e-wiz-10g 19 power-domains: 24 description: clock-specifier to represent input to the WIZ [all …]
|
| /OK3568_Linux_fs/kernel/sound/soc/meson/ |
| H A D | axg-spdifin.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 12 #include <sound/soc-dai.h> 55 struct clk *refclk; member 80 regmap_read(priv->map, SPDIFIN_STAT0, &stat); in axg_spdifin_get_rate() 90 rate = priv->conf->mode_rates[mode]; in axg_spdifin_get_rate() 101 regmap_update_bits(priv->map, SPDIFIN_CTRL0, in axg_spdifin_prepare() 107 regmap_update_bits(priv->map, SPDIFIN_CTRL0, in axg_spdifin_prepare() 109 regmap_update_bits(priv->map, SPDIFIN_CTRL0, in axg_spdifin_prepare() 121 ret = clk_prepare_enable(priv->refclk); in axg_spdifin_startup() 123 dev_err(dai->dev, in axg_spdifin_startup() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/bridge/ |
| H A D | tc358767.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 46 #define SUB_CFG_TYPE_CONFIG3 (2 << 2) /* LSB aligned 8-bit */ 108 #define VID_MN_GEN BIT(6) /* Auto-generate M/N values */ 261 struct clk *refclk; member 266 /* HPD pin number (0 or 1) or -ENODEV */ 292 return regmap_read_poll_timeout(tc->regmap, addr, val, in tc_poll_timeout() 310 ret = regmap_raw_write(tc->regmap, DP0_AUXWDATA(0), auxwdata, count); in tc_aux_write_data() 322 ret = regmap_raw_read(tc->regmap, DP0_AUXRDATA(0), auxrdata, count); in tc_aux_read_data() 333 u32 auxcfg0 = msg->request; in tc_auxcfg0() 336 auxcfg0 |= FIELD_PREP(DP0_AUXCFG0_BSIZE, size - 1); in tc_auxcfg0() [all …]
|
| /OK3568_Linux_fs/u-boot/arch/arm/dts/ |
| H A D | keystone-k2hk-evm.dts | 2 * Copyright 2013-2014 Texas Instruments, Inc. 10 /dts-v1/; 13 #include "keystone-k2hk.dtsi" 16 compatible = "ti,k2hk-evm","ti,keystone"; 22 #clock-cells = <0>; 23 compatible = "fixed-clock"; 24 clock-frequency = <122880000>; 25 clock-output-names = "refclk-sys"; 29 #clock-cells = <0>; 30 compatible = "fixed-clock"; [all …]
|
| /OK3568_Linux_fs/kernel/drivers/phy/ |
| H A D | phy-pistachio-usb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 #include <dt-bindings/phy/phy-pistachio-usb.h> 38 unsigned int refclk; member 59 ret = clk_prepare_enable(p_phy->phy_clk); in pistachio_usb_phy_power_on() 61 dev_err(p_phy->dev, "Failed to enable PHY clock: %d\n", ret); in pistachio_usb_phy_power_on() 65 regmap_update_bits(p_phy->cr_top, USB_PHY_STRAP_CONTROL, in pistachio_usb_phy_power_on() 68 p_phy->refclk << USB_PHY_STRAP_CONTROL_REFCLK_SHIFT); in pistachio_usb_phy_power_on() 70 rate = clk_get_rate(p_phy->phy_clk); in pistachio_usb_phy_power_on() 71 if (p_phy->refclk == REFCLK_XO_CRYSTAL && rate != 12000000) { in pistachio_usb_phy_power_on() 72 dev_err(p_phy->dev, "Unsupported rate for XO crystal: %ld\n", in pistachio_usb_phy_power_on() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/display/ |
| H A D | intel_cdclk.c | 2 * Copyright © 2006-2017 Intel Corporation 63 cdclk_config->cdclk = 133333; in fixed_133mhz_get_cdclk() 69 cdclk_config->cdclk = 200000; in fixed_200mhz_get_cdclk() 75 cdclk_config->cdclk = 266667; in fixed_266mhz_get_cdclk() 81 cdclk_config->cdclk = 333333; in fixed_333mhz_get_cdclk() 87 cdclk_config->cdclk = 400000; in fixed_400mhz_get_cdclk() 93 cdclk_config->cdclk = 450000; in fixed_450mhz_get_cdclk() 99 struct pci_dev *pdev = dev_priv->drm.pdev; in i85x_get_cdclk() 107 if (pdev->revision == 0x1) { in i85x_get_cdclk() 108 cdclk_config->cdclk = 133333; in i85x_get_cdclk() [all …]
|