/openbmc/linux/arch/arm/boot/dts/ti/omap/ |
H A D | dra7xx-clocks.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Device Tree Source for DRA7xx clock data 8 atl_clkin0_ck: clock-atl-clkin0 { 9 #clock-cells = <0>; 10 compatible = "ti,dra7-atl-clock"; 11 clock-output-names = "atl_clkin0_ck"; 15 atl_clkin1_ck: clock-atl-clkin1 { 16 #clock-cells = <0>; 17 compatible = "ti,dra7-atl-clock"; 18 clock-output-names = "atl_clkin1_ck"; [all …]
|
H A D | am43xx-clocks.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Device Tree Source for AM43xx clock data 8 sys_clkin_ck: clock-sys-clkin-31@40 { 9 #clock-cells = <0>; 10 compatible = "ti,mux-clock"; 11 clock-output-names = "sys_clkin_ck"; 13 ti,bit-shift = <31>; 17 crystal_freq_sel_ck: clock-crystal-freq-sel-29@40 { 18 #clock-cells = <0>; 19 compatible = "ti,mux-clock"; [all …]
|
H A D | am33xx-clocks.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Device Tree Source for AM33xx clock data 8 sys_clkin_ck: clock-sys-clkin-22@40 { 9 #clock-cells = <0>; 10 compatible = "ti,mux-clock"; 11 clock-output-names = "sys_clkin_ck"; 13 ti,bit-shift = <22>; 17 adc_tsc_fck: clock-adc-tsc-fck { 18 #clock-cells = <0>; 19 compatible = "fixed-factor-clock"; [all …]
|
H A D | omap54xx-clocks.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Device Tree Source for OMAP5 clock data 9 #clock-cells = <0>; 10 compatible = "fixed-clock"; 11 clock-output-names = "pad_clks_src_ck"; 12 clock-frequency = <12000000>; 16 #clock-cells = <0>; 17 compatible = "ti,gate-clock"; 18 clock-output-names = "pad_clks_ck"; 20 ti,bit-shift = <8>; [all …]
|
H A D | omap36xx-omap3430es2plus-clocks.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Device Tree Source for OMAP34xx/OMAP36xx clock data 8 clock@a00 { 11 #clock-cells = <2>; 12 #address-cells = <0>; 14 ssi_ssr_gate_fck_3430es2: clock-ssi-ssr-gate-fck-3430es2 { 15 #clock-cells = <0>; 16 compatible = "ti,composite-no-wait-gate-clock"; 17 clock-output-names = "ssi_ssr_gate_fck_3430es2"; 19 ti,bit-shift = <0>; [all …]
|
H A D | omap44xx-clocks.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Device Tree Source for OMAP4 clock data 9 #clock-cells = <0>; 10 compatible = "fixed-clock"; 11 clock-output-names = "extalt_clkin_ck"; 12 clock-frequency = <59000000>; 16 #clock-cells = <0>; 17 compatible = "fixed-clock"; 18 clock-output-names = "pad_clks_src_ck"; 19 clock-frequency = <12000000>; [all …]
|
H A D | omap3xxx-clocks.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Device Tree Source for OMAP3 clock data 9 #clock-cells = <0>; 10 compatible = "fixed-clock"; 11 clock-frequency = <16800000>; 15 #clock-cells = <0>; 16 compatible = "ti,mux-clock"; 22 #clock-cells = <0>; 23 compatible = "ti,divider-clock"; 25 ti,bit-shift = <6>; [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | am33xx-clocks.dtsi | 2 * Device Tree Source for AM33xx clock data 12 #clock-cells = <0>; 13 compatible = "ti,mux-clock"; 15 ti,bit-shift = <22>; 20 #clock-cells = <0>; 21 compatible = "fixed-factor-clock"; 23 clock-mult = <1>; 24 clock-div = <1>; 28 #clock-cells = <0>; 29 compatible = "fixed-factor-clock"; [all …]
|
H A D | am43xx-clocks.dtsi | 2 * Device Tree Source for AM43xx clock data 12 #clock-cells = <0>; 13 compatible = "ti,mux-clock"; 15 ti,bit-shift = <31>; 20 #clock-cells = <0>; 21 compatible = "ti,mux-clock"; 23 ti,bit-shift = <29>; 28 #clock-cells = <0>; 29 compatible = "ti,mux-clock"; 31 ti,bit-shift = <22>; [all …]
|
H A D | dra7xx-clocks.dtsi | 2 * Device Tree Source for DRA7xx clock data 12 #clock-cells = <0>; 13 compatible = "ti,dra7-atl-clock"; 18 #clock-cells = <0>; 19 compatible = "ti,dra7-atl-clock"; 24 #clock-cells = <0>; 25 compatible = "ti,dra7-atl-clock"; 30 #clock-cells = <0>; 31 compatible = "ti,dra7-atl-clock"; 36 #clock-cells = <0>; [all …]
|
H A D | omap36xx-omap3430es2plus-clocks.dtsi | 2 * Device Tree Source for OMAP34xx/OMAP36xx clock data 12 #clock-cells = <0>; 13 compatible = "ti,composite-no-wait-gate-clock"; 15 ti,bit-shift = <0>; 20 #clock-cells = <0>; 21 compatible = "ti,composite-divider-clock"; 23 ti,bit-shift = <8>; 29 #clock-cells = <0>; 30 compatible = "ti,composite-clock"; 35 #clock-cells = <0>; [all …]
|
H A D | omap3xxx-clocks.dtsi | 2 * Device Tree Source for OMAP3 clock data 12 #clock-cells = <0>; 13 compatible = "fixed-clock"; 14 clock-frequency = <16800000>; 18 #clock-cells = <0>; 19 compatible = "ti,mux-clock"; 25 #clock-cells = <0>; 26 compatible = "ti,divider-clock"; 28 ti,bit-shift = <6>; 29 ti,max-div = <3>; [all …]
|
/openbmc/linux/drivers/clk/zynqmp/ |
H A D | divider.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2016-2019 Xilinx 7 * Adjustable divider clock implementation 11 #include <linux/clk-provider.h> 13 #include "clk-zynqmp.h" 16 * DOC: basic adjustable divider clock that cannot gate 18 * Traits of this clock: 19 * prepare - clk_prepare only ensures that parents are prepared 20 * enable - clk_enable only ensures that parents are enabled 21 * rate - rate is adjustable. clk->rate = ceiling(parent->rate / divisor) [all …]
|
/openbmc/linux/drivers/clk/ |
H A D | clk-fixed-factor.c | 1 // SPDX-License-Identifier: GPL-2.0 6 #include <linux/clk-provider.h> 13 * DOC: basic fixed multiplier and divider clock that cannot gate 15 * Traits of this clock: 16 * prepare - clk_prepare only ensures that parents are prepared 17 * enable - clk_enable only ensures that parents are enabled 18 * rate - rate is fixed. clk->rate = parent->rate / div * mult 19 * parent - fixed parent. No clk_set_parent support 28 rate = (unsigned long long int)parent_rate * fix->mult; in clk_factor_recalc_rate() 29 do_div(rate, fix->div); in clk_factor_recalc_rate() [all …]
|
H A D | clk-divider.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2011-2012 Mike Turquette, Linaro Ltd <mturquette@linaro.org> 7 * Adjustable divider clock implementation 10 #include <linux/clk-provider.h> 20 * DOC: basic adjustable divider clock that cannot gate 22 * Traits of this clock: 23 * prepare - clk_prepare only ensures that parents are prepared 24 * enable - clk_enable only ensures that parents are enabled 25 * rate - rate is adjustable. clk->rate = ceiling(parent->rate / divisor) 26 * parent - fixed parent. No clk_set_parent support [all …]
|
/openbmc/linux/drivers/clk/berlin/ |
H A D | berlin2-div.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Alexandre Belloni <alexandre.belloni@free-electrons.com> 9 #include <linux/clk-provider.h> 16 #include "berlin2-div.h" 19 * Clock dividers in Berlin2 SoCs comprise a complex cell to select 23 * +---+ 24 * pll0 --------------->| 0 | +---+ 25 * +---+ |(B)|--+--------------->| 0 | +---+ 26 * pll1.0 -->| 0 | +-->| 1 | | +--------+ |(E)|----->| 0 | +---+ 27 * pll1.1 -->| 1 | | +---+ +-->|(C) 1:M |-->| 1 | |(F)|-->|(G)|-> [all …]
|
/openbmc/linux/drivers/clk/renesas/ |
H A D | clk-div6.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * r8a7790 Common Clock Framework support 10 #include <linux/clk-provider.h> 20 #include "clk-div6.h" 27 * struct div6_clock - CPG 6 bit divider clock 28 * @hw: handle between common and hardware-specific interfaces 29 * @reg: IO-remapped register 30 * @div: divisor value (1-64) 31 * @src_mask: Bitmask covering the register bits to select the parent clock 32 * @nb: Notifier block to save/restore clock state for system resume [all …]
|
/openbmc/u-boot/arch/arm/cpu/armv7/bcm235xx/ |
H A D | clk-core.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 * bcm235xx architecture clock framework 17 #include <asm/kona-common/clk.h> 18 #include "clk-core.h" 21 #define WR_ACCESS_OFFSET 0 /* common to all clock blocks */ 40 return -EINVAL; in clk_get_and_enable() 73 return -ETIMEDOUT; in wait_bit() 76 /* Enable a peripheral clock */ 82 struct peri_clk_data *cd = peri_clk->data; in peri_clk_enable() 83 struct bcm_clk_gate *gate = &cd->gate; in peri_clk_enable() [all …]
|
/openbmc/u-boot/arch/arm/cpu/armv7/bcm281xx/ |
H A D | clk-core.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 * bcm281xx architecture clock framework 17 #include <asm/kona-common/clk.h> 18 #include "clk-core.h" 21 #define WR_ACCESS_OFFSET 0 /* common to all clock blocks */ 40 return -EINVAL; in clk_get_and_enable() 73 return -ETIMEDOUT; in wait_bit() 76 /* Enable a peripheral clock */ 82 struct peri_clk_data *cd = peri_clk->data; in peri_clk_enable() 83 struct bcm_clk_gate *gate = &cd->gate; in peri_clk_enable() [all …]
|
/openbmc/linux/drivers/clk/sunxi/ |
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 35 u8 div; in sun4i_get_pll1_factors() local 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() [all …]
|
/openbmc/linux/drivers/media/i2c/ |
H A D | aptina-pll.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include "aptina-pll.h" 24 unsigned int div; in aptina_pll_calculate() local 26 dev_dbg(dev, "PLL: ext clock %u pix clock %u\n", in aptina_pll_calculate() 27 pll->ext_clock, pll->pix_clock); in aptina_pll_calculate() 29 if (pll->ext_clock < limits->ext_clock_min || in aptina_pll_calculate() 30 pll->ext_clock > limits->ext_clock_max) { in aptina_pll_calculate() 31 dev_err(dev, "pll: invalid external clock frequency.\n"); in aptina_pll_calculate() 32 return -EINVAL; in aptina_pll_calculate() 35 if (pll->pix_clock == 0 || pll->pix_clock > limits->pix_clock_max) { in aptina_pll_calculate() [all …]
|
/openbmc/linux/drivers/clk/bcm/ |
H A D | clk-kona-setup.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #include "clk-kona.h" 13 #define selector_clear_exists(sel) ((sel)->width = 0) 20 struct ccu_policy *ccu_policy = &ccu->policy; in ccu_data_offsets_valid() 23 limit = ccu->range - sizeof(u32); in ccu_data_offsets_valid() 26 if (ccu_policy->enable.offset > limit) { in ccu_data_offsets_valid() 29 ccu->name, ccu_policy->enable.offset, limit); in ccu_data_offsets_valid() 32 if (ccu_policy->control.offset > limit) { in ccu_data_offsets_valid() 35 ccu->name, ccu_policy->control.offset, limit); in ccu_data_offsets_valid() 45 struct peri_clk_data *peri = bcm_clk->u.peri; in clk_requires_trigger() [all …]
|
/openbmc/linux/Documentation/misc-devices/ |
H A D | oxsemi-tornado.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 by a fixed 62.5MHz clock input derived from the 100MHz PCI Express clock. 11 frequency by dividing it by the clock prescaler, which can be set to any 12 value from 1 to 63.875 in increments of 0.125, and then the usual 16-bit 19 By default the oversampling rate is set to 16 and the clock prescaler is 21 for the usual 16-bit divisor is 115313.653, which is close enough to the 24 is unaware of the extra clock controls available. 26 The oversampling rate is programmed with the TCR register and the clock 38 obtained, with either exact or highly-accurate actual bit rates for 39 standard and many non-standard rates. [all …]
|
/openbmc/linux/drivers/clk/ti/ |
H A D | divider.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * TI Divider Clock 7 * Tero Kristo <t-kristo@ti.com> 10 #include <linux/clk-provider.h> 16 #include "clock.h" 26 for (clkt = table; clkt->div; clkt++) in _get_table_div() 27 if (clkt->val == val) in _get_table_div() 28 return clkt->div; in _get_table_div() 38 if (divider->table) { in _setup_mask() 41 for (clkt = divider->table; clkt->div; clkt++) in _setup_mask() [all …]
|
/openbmc/linux/arch/arm64/boot/dts/broadcom/stingray/ |
H A D | stingray-clock.dtsi | 4 * Copyright(c) 2016-2017 Broadcom. All rights reserved. 33 #include <dt-bindings/clock/bcm-sr.h> 36 #clock-cells = <0>; 37 compatible = "fixed-clock"; 38 clock-frequency = <50000000>; 42 #clock-cells = <0>; 43 compatible = "fixed-factor-clock"; 45 clock-div = <2>; 46 clock-mult = <1>; 50 #clock-cells = <1>; [all …]
|