/openbmc/linux/Documentation/devicetree/bindings/mmc/ |
H A D | samsung,exynos-dw-mshc.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/mmc/samsung,exynos-dw-mshc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 12 - Jaehoon Chung <jh80.chung@samsung.com> 13 - Krzysztof Kozlowski <krzk@kernel.org> 18 - samsung,exynos4210-dw-mshc 19 - samsung,exynos4412-dw-mshc 20 - samsung,exynos5250-dw-mshc 21 - samsung,exynos5420-dw-mshc [all …]
|
H A D | synopsys-dw-mshc.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/mmc/synopsys-dw-mshc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Ulf Hansson <ulf.hansson@linaro.org> 16 - altr,socfpga-dw-mshc 17 - img,pistachio-dw-mshc 18 - snps,dw-mshc 31 bus interface unit clock and the card interface unit clock. 33 clock-names: [all …]
|
H A D | hi3798cv200-dw-mshc.txt | 4 Read synopsys-dw-mshc.txt for more details 9 by synopsys-dw-mshc.txt and the properties used by the Hisilicon Hi3798CV200 13 - compatible: Should contain "hisilicon,hi3798cv200-dw-mshc". 14 - clocks: A list of phandle + clock-specifier pairs for the clocks listed 15 in clock-names. 16 - clock-names: Should contain the following: 17 "ciu" - The ciu clock described in synopsys-dw-mshc.txt. 18 "biu" - The biu clock described in synopsys-dw-mshc.txt. 19 "ciu-sample" - Hi3798CV200 extended phase clock for ciu sampling. 20 "ciu-drive" - Hi3798CV200 extended phase clock for ciu driving. [all …]
|
/openbmc/linux/drivers/clk/sunxi-ng/ |
H A D | ccu_phase.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Maxime Ripard <maxime.ripard@free-electrons.com> 7 #include <linux/clk-provider.h> 15 struct ccu_phase *phase = hw_to_ccu_phase(hw); in ccu_phase_get_phase() local 22 reg = readl(phase->common.base + phase->common.reg); in ccu_phase_get_phase() 23 delay = (reg >> phase->shift); in ccu_phase_get_phase() 24 delay &= (1 << phase->width) - 1; in ccu_phase_get_phase() 29 /* Get our parent clock, it's the one that can adjust its rate */ in ccu_phase_get_phase() 32 return -EINVAL; in ccu_phase_get_phase() 37 return -EINVAL; in ccu_phase_get_phase() [all …]
|
/openbmc/linux/drivers/clk/sunxi/ |
H A D | clk-mod0.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 #include <linux/clk-provider.h> 15 #include "clk-factors.h" 18 * sun4i_a10_get_mod0_factors() - calculates m, n factors for MOD0-style clocks 29 if (req->rate > req->parent_rate) in sun4i_a10_get_mod0_factors() 30 req->rate = req->parent_rate; in sun4i_a10_get_mod0_factors() 32 div = DIV_ROUND_UP(req->parent_rate, req->rate); in sun4i_a10_get_mod0_factors() 45 req->rate = (req->parent_rate >> calcp) / calcm; in sun4i_a10_get_mod0_factors() 46 req->m = calcm - 1; in sun4i_a10_get_mod0_factors() 47 req->p = calcp; in sun4i_a10_get_mod0_factors() [all …]
|
/openbmc/linux/drivers/clk/meson/ |
H A D | clk-phase.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 7 #include <linux/clk-provider.h> 10 #include "clk-regmap.h" 11 #include "clk-phase.h" 18 return (struct meson_clk_phase_data *)clk->data; in meson_clk_phase_data() 40 struct meson_clk_phase_data *phase = meson_clk_phase_data(clk); in meson_clk_phase_get_phase() local 43 val = meson_parm_read(clk->map, &phase->ph); in meson_clk_phase_get_phase() 45 return meson_clk_degrees_from_val(val, phase->ph.width); in meson_clk_phase_get_phase() 51 struct meson_clk_phase_data *phase = meson_clk_phase_data(clk); in meson_clk_phase_set_phase() local 54 val = meson_clk_degrees_to_val(degrees, phase->ph.width); in meson_clk_phase_set_phase() [all …]
|
/openbmc/linux/drivers/mmc/host/ |
H A D | dw_mmc-rockchip.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 #include <linux/mmc/slot-gpio.h> 16 #include "dw_mmc-pltfm.h" 31 struct dw_mci_rockchip_priv_data *priv = host->priv; in dw_mci_rk3288_set_ios() 36 if (ios->clock == 0) in dw_mci_rk3288_set_ios() 40 * cclkin: source clock of mmc controller in dw_mci_rk3288_set_ios() 41 * bus_hz: card interface clock generated by CLKGEN in dw_mci_rk3288_set_ios() 43 * ios->clock = (div == 0) ? bus_hz : (bus_hz / (2 * div)) in dw_mci_rk3288_set_ios() 46 * DDR52 8-bit mode. in dw_mci_rk3288_set_ios() 48 if (ios->bus_width == MMC_BUS_WIDTH_8 && in dw_mci_rk3288_set_ios() [all …]
|
H A D | sdhci-of-arasan.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (C) 2011 - 2012 Michal Simek <monstr@monstr.eu> 9 * Based on sdhci-of-esdhc.c 18 #include <linux/clk-provider.h> 26 #include <linux/firmware/xlnx-zynqmp.h> 29 #include "sdhci-cqhci.h" 30 #include "sdhci-pltfm.h" 79 /* Default settings for ZynqMP Clock Phases */ 92 * On some SoCs the syscon area has a feature where the upper 16-bits of 93 * each 32-bit register act as a write mask for the lower 16-bits. This allows [all …]
|
H A D | sdhci-msm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * drivers/mmc/host/sdhci-msm.c - Qualcomm SDHCI Platform driver 5 * Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. 23 #include "sdhci-cqhci.h" 24 #include "sdhci-pltfm.h" 123 #define INVALID_TUNING_PHASE -1 137 /* Max load for eMMC Vdd-io supply */ 141 msm_host->var_ops->msm_readl_relaxed(host, offset) 144 msm_host->var_ops->msm_writel_relaxed(val, host, offset) 263 struct clk *bus_clk; /* SDHC bus voter clock */ [all …]
|
H A D | mmci_stm32_sdmmc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) STMicroelectronics 2018 - All Rights Reserved 8 #include <linux/dma-mapping.h> 71 int phase, bool sampler __maybe_unused); 84 struct sdmmc_idma *idma = host->dma_priv; in sdmmc_idma_validate_data() 85 struct device *dev = mmc_dev(host->mmc); in sdmmc_idma_validate_data() 93 idma->use_bounce_buffer = false; in sdmmc_idma_validate_data() 94 for_each_sg(data->sg, sg, data->sg_len - 1, i) { in sdmmc_idma_validate_data() 95 if (!IS_ALIGNED(sg->offset, sizeof(u32)) || in sdmmc_idma_validate_data() 96 !IS_ALIGNED(sg->length, in sdmmc_idma_validate_data() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn21/ |
H A D | dcn21_dccg.c | 35 (dccg_dcn->regs->reg) 39 dccg_dcn->dccg_shift->field_name, dccg_dcn->dccg_mask->field_name 42 dccg_dcn->base.ctx 44 dccg->ctx->logger 50 if (dccg->ref_dppclk) { in dccg21_update_dpp_dto() 51 int ref_dppclk = dccg->ref_dppclk; in dccg21_update_dpp_dto() 53 int phase; in dccg21_update_dpp_dto() local 57 * program DPP DTO phase and modulo as below in dccg21_update_dpp_dto() 58 * phase = ceiling(dpp_pipe_clk_mhz / 10) in dccg21_update_dpp_dto() 64 * ceiling phase and truncate modulo guarentees the divided in dccg21_update_dpp_dto() [all …]
|
/openbmc/linux/drivers/media/i2c/ |
H A D | saa711x_regs.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * saa711x - Philips SAA711x video decoder register specifications 10 /* Video Decoder - Frontend part */ 16 /* Video Decoder - Decoder part */ 56 /* Audio clock generator part */ 112 /* Horizontal phase scaling */ 159 /* Horizontal phase scaling */ 196 /* SAA7113 bit-masks */ 230 /* Video Decoder - Frontend part: R_01_INC_DELAY to R_05_INPUT_CNTL_4 */ 242 /* Video Decoder - Decoder part: R_06_H_SYNC_START to R_1F_STATUS_BYTE_2_VD_DEC */ [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/clock/ |
H A D | altr_socfpga.txt | 1 Device Tree Clock bindings for Altera's SoCFPGA platform 3 This binding uses the common clock binding[1]. 5 [1] Documentation/devicetree/bindings/clock/clock-bindings.txt 8 - compatible : shall be one of the following: 9 "altr,socfpga-pll-clock" - for a PLL clock 10 "altr,socfpga-perip-clock" - The peripheral clock divided from the 11 PLL clock. 12 "altr,socfpga-gate-clk" - Clocks that directly feed peripherals and 15 - reg : shall be the control register offset from CLOCK_MANAGER's base for the clock. 16 - clocks : shall be the input parent clock phandle for the clock. This is [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/watchdog/ |
H A D | realtek,otto-wdt.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/watchdog/realtek,otto-wdt.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sander Vanheule <sander@svanheule.net> 14 prescaled clock ticks, which is ca. 43s with a bus clock of 200MHz. The 15 minimum duration of each phase is one tick. Each phase can trigger an 16 interrupt, although the phase 2 interrupt will occur with the system reset. 17 - Phase 1: During this phase, the WDT can be pinged to reset the timeout. 18 - Phase 2: Starts after phase 1 has timed out, and only serves to give the [all …]
|
H A D | starfive,jh7100-wdt.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/watchdog/starfive,jh7100-wdt.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Xingyu Wu <xingyu.wu@starfivetech.com> 11 - Samin Guo <samin.guo@starfivetech.com> 15 has only one timeout phase and reboots. And JH7110 watchdog has two 16 timeout phases. At the first phase, the signal of watchdog interrupt 23 - $ref: watchdog.yaml# 28 - starfive,jh7100-wdt [all …]
|
/openbmc/linux/sound/soc/pxa/ |
H A D | mmp-sspa.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * linux/sound/soc/pxa/mmp-sspa.h 24 #define SSPA_CTL_XPH (1 << 31) /* Read Phase */ 28 #define SSPA_CTL_XFRLEN2(x) ((x) << 24) /* Transmit Frame Length in Phase 2 */ 30 #define SSPA_CTL_XWDLEN2(x) ((x) << 21) /* Transmit Word Length in Phase 2 */ 35 #define SSPA_CTL_XFRLEN1(x) ((x) << 8) /* Transmit Frame Length in Phase 1 */ 37 #define SSPA_CTL_XWDLEN1(x) ((x) << 5) /* Transmit Word Length in Phase 1 */ 51 #define SSPA_SP_CLKP (1 << 17) /* CLKP Polarity Clock Edge Select */ 52 #define SSPA_SP_FSP (1 << 16) /* FSP Polarity Clock Edge Select */ 55 #define SSPA_SP_S_EN (1 << 0) /* Serial Clock Domain Enable */ [all …]
|
/openbmc/linux/drivers/clk/rockchip/ |
H A D | clk-mmc-phase.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 #include <linux/clk-provider.h> 41 * Each fine delay is between 44ps-77ps. Assume each fine delay is 60ps to 54 /* Constant signal, no measurable phase shift */ in rockchip_mmc_get_phase() 58 raw_value = readl(mmc_clock->reg) >> (mmc_clock->shift); in rockchip_mmc_get_phase() 85 * The below calculation is based on the output clock from in rockchip_mmc_set_phase() 86 * MMC host to the card, which expects the phase clock inherits in rockchip_mmc_set_phase() 87 * the clock rate from its parent, namely the output clock in rockchip_mmc_set_phase() 98 return -EINVAL; in rockchip_mmc_set_phase() 106 * actually go non-monotonic. We don't go _too_ monotonic in rockchip_mmc_set_phase() [all …]
|
/openbmc/u-boot/drivers/ddr/marvell/axp/ |
H A D | ddr3_write_leveling.c | 1 // SPDX-License-Identifier: GPL-2.0 58 * Desc: Execute Write leveling phase by HW 59 * Args: freq - current sequence frequency 60 * dram_info - main struct 66 u32 reg, phase, delay, cs, pup; in ddr3_write_leveling_hw() local 70 /* Debug message - Start Read leveling procedure */ in ddr3_write_leveling_hw() 71 DEBUG_WL_S("DDR3 - Write Leveling - Starting HW WL procedure\n"); in ddr3_write_leveling_hw() 86 reg |= (dram_info->cs_ena << (REG_DRAM_TRAINING_CS_OFFS)); in ddr3_write_leveling_hw() 87 reg_write(REG_DRAM_TRAINING_ADDR, reg); /* 0x15B0 - Training Register */ in ddr3_write_leveling_hw() 103 * Read results to arrays - Results are required for WL in ddr3_write_leveling_hw() [all …]
|
/openbmc/linux/drivers/clk/hisilicon/ |
H A D | clk-hisi-phase.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Simple HiSilicon phase clock implementation. 30 static int hisi_phase_regval_to_degrees(struct clk_hisi_phase *phase, in hisi_phase_regval_to_degrees() argument 35 for (i = 0; i < phase->phase_num; i++) in hisi_phase_regval_to_degrees() 36 if (phase->phase_regvals[i] == regval) in hisi_phase_regval_to_degrees() 37 return phase->phase_degrees[i]; in hisi_phase_regval_to_degrees() 39 return -EINVAL; in hisi_phase_regval_to_degrees() 44 struct clk_hisi_phase *phase = to_clk_hisi_phase(hw); in hisi_clk_get_phase() local 47 regval = readl(phase->reg); in hisi_clk_get_phase() 48 regval = (regval & phase->mask) >> phase->shift; in hisi_clk_get_phase() [all …]
|
/openbmc/linux/drivers/net/can/dev/ |
H A D | bittiming.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* Copyright (C) 2005 Marc Kleine-Budde, Pengutronix 4 * Copyright (C) 2008-2009 Wolfgang Grandegger <wg@grandegger.com> 11 if (bt->sjw) in can_sjw_set_default() 15 bt->sjw = max(1U, min(bt->phase_seg1, bt->phase_seg2 / 2)); in can_sjw_set_default() 21 if (bt->sjw > btc->sjw_max) { in can_sjw_check() 23 bt->sjw, btc->sjw_max); in can_sjw_check() 24 return -EINVAL; in can_sjw_check() 27 if (bt->sjw > bt->phase_seg1) { in can_sjw_check() 29 "sjw: %u greater than phase-seg1: %u", in can_sjw_check() [all …]
|
/openbmc/linux/drivers/iio/frequency/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 5 # Clock Distribution device drivers 6 # Phase-Locked Loop (PLL) frequency synthesizers 12 menu "Clock Generator/Distribution" 15 tristate "Analog Devices AD9523 Low Jitter Clock Generator" 19 Clock Generator. The driver provides direct access via sysfs. 27 # Phase-Locked Loop (PLL) frequency synthesizers 30 menu "Phase-Locked Loop (PLL) frequency synthesizers" 90 Downconverter with integrated Fractional-N PLL and VCO.
|
/openbmc/linux/Documentation/devicetree/bindings/iio/dac/ |
H A D | adi,ad5755.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Analog Devices AD5755 Multi-Channel DAC 10 - Sean Nyekjaer <sean.nyekjaer@prevas.dk> 15 - adi,ad5755 16 - adi,ad5755-1 17 - adi,ad5757 18 - adi,ad5735 19 - adi,ad5737 [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/iio/frequency/ |
H A D | adi,adf4350.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Michael Hennerich <michael.hennerich@analog.com> 15 - adi,adf4350 16 - adi,adf4351 21 spi-max-frequency: 26 description: Clock to provide CLKIN reference clock signal. 28 clock-names: 35 adi,channel-spacing: [all …]
|
/openbmc/linux/drivers/staging/sm750fb/ |
H A D | ddk750_mode.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 32 /* Clock Phase. This clock phase only applies to Panel. */ 36 int ddk750_setModeTiming(struct mode_parameter *parm, enum clock_type clock);
|
/openbmc/linux/drivers/ptp/ |
H A D | ptp_idt82p33.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * PTP hardware clock driver for the IDT 82P33XXX family of clocks. 46 * @brief Maximum absolute value for write phase offset in nanoseconds 50 /** @brief Phase offset resolution 52 * DPLL phase offset = 10^15 fs / ( System Clock * 2^13) 58 /* PTP Hardware Clock interface */ 64 /* Workaround for TOD-to-output alignment issue */
|