/linux/Documentation/devicetree/bindings/clock/ |
H A D | gated-fixed-clock.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/clock/gated-fixed-clock.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Gated Fixed clock 10 - Heiko Stuebner <heiko@sntech.de> 14 const: gated-fixed-clock 16 "#clock-cells": 19 clock-frequency: true 21 clock-output-names: [all …]
|
H A D | maxim,max9485.txt | 1 Devicetree bindings for Maxim MAX9485 Programmable Audio Clock Generator 5 - MAX9485_MCLKOUT: A gated, buffered output of the input clock of 27 MHz 6 - MAX9485_CLKOUT: A PLL that can be configured to 16 different discrete 8 - MAX9485_CLKOUT[1,2]: Two gated outputs for MAX9485_CLKOUT 14 - compatible: "maxim,max9485" 15 - clocks: Input clock, must provide 27.000 MHz 16 - clock-names: Must be set to "xclk" 17 - #clock-cells: From common clock binding; shall be set to 1 20 - reset-gpios: GPIO descriptor connected to the #RESET input pin 21 - vdd-supply: A regulator node for Vdd [all …]
|
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 13 can get gated. 15 - reg : shall be the control register offset from CLOCK_MANAGER's base for the clock. [all …]
|
H A D | vt8500.txt | 1 Device Tree Clock bindings for arch-vt8500 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 "via,vt8500-pll-clock" - for a VT8500/WM8505 PLL clock 10 "wm,wm8650-pll-clock" - for a WM8650 PLL clock 11 "wm,wm8750-pll-clock" - for a WM8750 PLL clock 12 "wm,wm8850-pll-clock" - for a WM8850 PLL clock 13 "via,vt8500-device-clock" - for a VT/WM device clock 16 - reg : shall be the control register offset from PMC base for the pll clock. [all …]
|
/linux/drivers/clk/ |
H A D | clk-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2013 - 2014 Texas Instruments Incorporated - https://www.ti.com 9 * Gpio controlled clock implementation 12 #include <linux/clk-provider.h> 23 * DOC: basic gpio gated clock which can be enabled and disabled 25 * Traits of this clock: 26 * prepare - clk_(un)prepare are functional and control a gpio that can sleep 27 * enable - clk_enable and clk_disable are functional & control 28 * non-sleeping gpio 29 * rate - inherits rate from parent. No clk_set_rate support [all …]
|
H A D | clk-gemini.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Cortina Gemini SoC Clock Controller driver 7 #define pr_fmt(fmt) "clk-gemini: " fmt 15 #include <linux/clk-provider.h> 21 #include <linux/reset-controller.h> 22 #include <dt-bindings/reset/cortina,gemini-reset.h> 23 #include <dt-bindings/clock/cortina,gemini-clock.h> 53 * struct gemini_gate_data - Gemini gated clocks 54 * @bit_idx: the bit used to gate this clock in the clock register 55 * @name: the clock name [all …]
|
H A D | clk-gate.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2010-2011 Canonical Ltd <jeremy.kerr@canonical.com> 4 * Copyright (C) 2011-2012 Mike Turquette, Linaro Ltd <mturquette@linaro.org> 6 * Gated clock implementation 9 #include <linux/clk-provider.h> 18 * DOC: basic gatable clock which can gate and ungate its output 20 * Traits of this clock: 21 * prepare - clk_(un)prepare only ensures parent is (un)prepared 22 * enable - clk_enable and clk_disable are functional & control gating 23 * rate - inherits rate from parent. No clk_set_rate support [all …]
|
H A D | clk-vt8500.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Clock implementation for VIA/Wondermedia SoC's 13 #include <linux/clk-provider.h> 53 of_find_compatible_node(NULL, NULL, "via,vt8500-pmc"); in vtwm_set_pmc_base() 81 spin_lock_irqsave(cdev->lock, flags); in vt8500_dclk_enable() 83 en_val = readl(cdev->en_reg); in vt8500_dclk_enable() 84 en_val |= BIT(cdev->en_bit); in vt8500_dclk_enable() 85 writel(en_val, cdev->en_reg); in vt8500_dclk_enable() 87 spin_unlock_irqrestore(cdev->lock, flags); in vt8500_dclk_enable() 97 spin_lock_irqsave(cdev->lock, flags); in vt8500_dclk_disable() [all …]
|
/linux/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() 56 * Ethernet MAC "misc" clock: dma clocks and main clock on 6348 92 if (clk->id == 0) in enetx_set() 111 * Ethernet PHY clock 125 * Ethernet switch SAR clock 140 * Ethernet switch USB clock 155 * Ethernet switch clock [all …]
|
/linux/include/dt-bindings/clock/ |
H A D | tegra234-clock.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved. */ 9 * @defgroup bpmp_clock_ids Clock ID's 58 /** @brief clock recovered from EAVB input */ 73 * @brief controls the EMC clock frequency. 74 * @details Doing a clk_set_rate on this clock will select the 75 * appropriate clock source, program the source rate and execute a 76 * specific sequence to switch to the new clock source for both memory 81 /** @brief CLK_RST_CONTROLLER_CLK_SOURCE_EQOS_AXI_CLK_0 divider gated output */ 83 /** @brief CLK_RST_CONTROLLER_CLK_SOURCE_EQOS_PTP_REF_CLK_0 divider gated output */ [all …]
|
/linux/drivers/clk/bcm/ |
H A D | clk-kona.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 16 #include <linux/clk-provider.h> 20 /* The common clock framework uses u8 to represent a parent index */ 24 #define BAD_CLK_NAME ((const char *)-1) 33 #define FLAG_SET(obj, type, flag) ((obj)->flags |= FLAG(type, flag)) 34 #define FLAG_CLEAR(obj, type, flag) ((obj)->flags &= ~(FLAG(type, flag))) 35 #define FLAG_FLIP(obj, type, flag) ((obj)->flags ^= FLAG(type, flag)) 36 #define FLAG_TEST(obj, type, flag) (!!((obj)->flags & FLAG(type, flag))) 40 #define ccu_policy_exists(ccu_policy) ((ccu_policy)->enable.offset != 0) 42 /* Clock field state tests */ [all …]
|
H A D | clk-bcm2835.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 * DOC: BCM2835 CPRMAN (clock manager for the "audio" domain) 10 * The clock tree on the 2835 has several levels. There's a root 22 * skip layers of the tree (for example, the pixel clock comes 23 * directly from the PLLH PIX channel without using a CM_*CTL clock 27 #include <linux/clk-provider.h> 38 #include <dt-bindings/clock/bcm2835.h> 45 # define CM_DIV_FRAC_MASK GENMASK(CM_DIV_FRAC_BITS - 1, 0) 253 # define A2W_PLL_FRAC_MASK ((1 << A2W_PLL_FRAC_BITS) - 1) 321 * Real names of cprman clock parents looked up through [all …]
|
/linux/Documentation/devicetree/bindings/fpga/ |
H A D | fpga-region.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/fpga/fpga-region.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Michal Simek <michal.simek@amd.com> 14 - Introduction 15 - Terminology 16 - Sequence 17 - FPGA Region 18 - Supported Use Models [all …]
|
/linux/arch/arm64/boot/dts/freescale/ |
H A D | imx8mm-beacon-baseboard.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 6 #include <dt-bindings/phy/phy-imx8-pcie.h> 10 dmic_codec: dmic-codec { 11 compatible = "dmic-codec"; 12 num-channels = <1>; 13 #sound-dai-cells = <0>; 17 compatible = "gpio-leds"; 22 default-state = "off"; 28 default-state = "off"; 34 default-state = "off"; [all …]
|
/linux/drivers/clk/ingenic/ |
H A D | cgu.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 * Copyright (c) 2013-2015 Imagination Technologies 13 #include <linux/clk-provider.h> 18 * struct ingenic_cgu_pll_info - information about a PLL 33 * @od_shift: the number of bits to shift the post-VCO divider value by (ie. 34 * the index of the lowest bit of the post-VCO divider value in 36 * @od_bits: the size of the post-VCO divider field in bits, or 0 if no 37 * OD field exists (then the OD is fixed to 1) 38 * @od_max: the maximum post-VCO divider value 39 * @od_encoding: a pointer to an array mapping post-VCO divider values to [all …]
|
/linux/drivers/clk/imx/ |
H A D | clk-gate2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2010-2011 Canonical Ltd <jeremy.kerr@canonical.com> 4 * Copyright (C) 2011-2012 Mike Turquette, Linaro Ltd <mturquette@linaro.org> 6 * Gated clock implementation 9 #include <linux/clk-provider.h> 19 * DOC: basic gateable clock which can gate and ungate its output 21 * Traits of this clock: 22 * prepare - clk_(un)prepare only ensures parent is (un)prepared 23 * enable - clk_enable and clk_disable are functional & control gating 24 * rate - inherits rate from parent. No clk_set_rate support [all …]
|
/linux/drivers/clk/sunxi/ |
H A D | clk-factors.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Adjustable factor-based clock implementation 8 #include <linux/clk-provider.h> 16 #include "clk-factors.h" 19 * DOC: basic adjustable factor-based clock 21 * Traits of this clock: 22 * prepare - clk_prepare only ensures that parents are prepared 23 * enable - clk_enable only ensures that parents are enabled 24 * rate - rate is adjustable. 25 * clk->rate = (parent->rate * N * (K + 1) >> P) / (M + 1) [all …]
|
H A D | clk-sunxi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 #include <linux/clk-provider.h> 14 #include <linux/reset-controller.h> 19 #include "clk-factors.h" 27 * sun4i_get_pll1_factors() - calculates n, k, m, p factors for PLL1 38 div = req->rate / 6000000; in sun4i_get_pll1_factors() 39 req->rate = 6000000 * div; in sun4i_get_pll1_factors() 42 req->m = 0; in sun4i_get_pll1_factors() 45 if (req->rate >= 768000000 || req->rate == 42000000 || in sun4i_get_pll1_factors() 46 req->rate == 54000000) in sun4i_get_pll1_factors() [all …]
|
/linux/drivers/clk/qcom/ |
H A D | clk-cbf-8996.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include <linux/clk-provider.h> 8 #include <linux/interconnect-clk.h> 9 #include <linux/interconnect-provider.h> 15 #include <dt-bindings/interconnect/qcom,msm8996-cbf.h> 17 #include "clk-alpha-pll.h" 18 #include "clk-regmap.h" 112 regmap_read(clkr->regmap, mux->reg, &val); in clk_cbf_8996_mux_get_parent() 125 return regmap_update_bits(clkr->regmap, mux->reg, CBF_MUX_PARENT_MASK, val); in clk_cbf_8996_mux_set_parent() 133 if (req->rate < (DIV_THRESHOLD / cbf_pll_postdiv.div)) in clk_cbf_8996_mux_determine_rate() [all …]
|
/linux/drivers/clk/ti/ |
H A D | adpll.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 #include <linux/clk-provider.h> 183 err = of_property_read_string_index(d->np, in ti_adpll_clk_get_name() 184 "clock-output-names", in ti_adpll_clk_get_name() 190 name = devm_kasprintf(d->dev, GFP_KERNEL, "%08lx.adpll.%s", in ti_adpll_clk_get_name() 191 d->pa, postfix); in ti_adpll_clk_get_name() 199 static int ti_adpll_setup_clock(struct ti_adpll_data *d, struct clk *clock, in ti_adpll_setup_clock() argument 207 d->clocks[index].clk = clock; in ti_adpll_setup_clock() 208 d->clocks[index].unregister = unregister; in ti_adpll_setup_clock() 214 dev_warn(d->dev, "clock %s con_id lookup may fail\n", in ti_adpll_setup_clock() [all …]
|
/linux/include/linux/ |
H A D | clk-provider.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (c) 2010-2011 Jeremy Kerr <jeremy.kerr@canonical.com> 4 * Copyright (C) 2011-2012 Linaro Ltd <mturquette@linaro.org> 14 * top-level framework. custom flags for dealing with hardware specifics 19 #define CLK_SET_RATE_GATE BIT(0) /* must be gated across rate change */ 20 #define CLK_SET_PARENT_GATE BIT(1) /* must be gated across re-parent */ 26 #define CLK_SET_RATE_NO_REPARENT BIT(7) /* don't re-parent on rate change */ 29 #define CLK_SET_RATE_UNGATE BIT(10) /* clock needs to run to set rate */ 31 /* parents need enable during gate/ungate, set rate and re-parent */ 33 /* duty cycle call may be forwarded to the parent clock */ [all …]
|
/linux/Documentation/devicetree/bindings/soc/tegra/ |
H A D | nvidia,tegra20-pmc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/soc/tegra/nvidia,tegra20-pmc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Thierry Reding <thierry.reding@gmail.com> 11 - Jonathan Hunter <jonathanh@nvidia.com> 16 - nvidia,tegra20-pmc 17 - nvidia,tegra30-pmc 18 - nvidia,tegra114-pmc 19 - nvidia,tegra124-pmc [all …]
|
/linux/arch/powerpc/platforms/512x/ |
H A D | clock-commonclk.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * common clock driver support for the MPC512x platform 12 #include <linux/clk-provider.h> 21 #include <dt-bindings/clock/mpc512x-clock.h> 69 /* data required for the OF clock provider registration */ 89 * interpretation, no CFM, different fourth PSC/CAN mux0 input -- yet 90 * those differences can get folded into this clock provider support 292 val &= (1 << len) - 1; in get_bit_field() 305 spmf = get_bit_field(&clkregs->spmr, 24, 4); in get_spmf_mult() 326 divcode = get_bit_field(&clkregs->scfr2, 26, 6); in get_sys_div_x2() [all …]
|
/linux/drivers/clk/microchip/ |
H A D | clk-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #include <linux/clk-provider.h> 12 #include <asm/mach-pic32/pic32.h> 15 #include "clk-core.h" 39 /* Peripheral Bus Clock Reg Fields */ 72 /* Clock Poll Timeout */ 75 /* SoC specific clock needed during SPLL clock rate switch */ 78 /* add instruction pipeline delay while CPU clock is in-transition. */ 101 return readl(pb->ctrl_reg) & PB_DIV_ENABLE; in pbclk_is_enabled() 108 writel(PB_DIV_ENABLE, PIC32_SET(pb->ctrl_reg)); in pbclk_enable() [all …]
|
/linux/drivers/net/wireless/ath/ath5k/ |
H A D | reg.h | 2 * Copyright (c) 2006-2008 Nick Kossifidis <mickflemm@gmail.com> 3 * Copyright (c) 2004-2008 Reyk Floeter <reyk@openbsd.org> 4 * Copyright (c) 2007-2008 Michael Taylor <mike.taylor@apprion.com> 28 * 5210 - http://nova.stanford.edu/~bbaas/ps/isscc2002_slides.pdf 30 * 5211 - http://www.hotchips.org/archives/hc14/3_Tue/16_mcfarland.pdf 33 * Atheros's ART program (Atheros Radio Test), on ath9k, on legacy-hal 42 * AR5210-Specific TXDP registers 46 #define AR5K_NOQCU_TXDP0 0x0000 /* Queue 0 - data */ 47 #define AR5K_NOQCU_TXDP1 0x0004 /* Queue 1 - beacons */ 70 #define AR5K_CFG_SWTD 0x00000001 /* Byte-swap TX descriptor (for big endian archs) */ [all …]
|