-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kerne…
…l/git/clk/linux Pull clk updates from Stephen Boyd: "The large diff this time around is from the addition of a new clk driver for the TI Davinci family of SoCs. So far those clks have been supported with a custom implementation of the clk API in the arch port instead of in the CCF. With this driver merged we're one step closer to having a single clk API implementation. The other large diff is from the Amlogic clk driver that underwent some major surgery to use regmap. Beyond that, the biggest hitter is Samsung which needed some reworks to properly handle clk provider power domains and a bunch of PLL rate updates. The core framework was fairly quiet this round, just getting some cleanups and small fixes for some of the more esoteric features. And the usual set of driver non-critical fixes, cleanups, and minor additions are here as well. Core: - Rejig clk_ops::init() to be a little earlier for phase/accuracy ops - debugfs ops macroized to shave some lines of boilerplate code - Always calculate the phase instead of caching it in clk_get_phase() - More __must_check on bulk clk APIs New Drivers: - TI's Davinci family of SoCs - Intel's Stratix10 SoC - stm32mp157 SoC - Allwinner H6 CCU - Silicon Labs SI544 clock generator chip - Renesas R-Car M3-N and V3H SoCs - i.MX6SLL SoCs Removed Drivers: - ST-Ericsson AB8540/9540 Updates: - Mediatek MT2701 and MT7622 audsys support and MT2712 updates - STM32F469 DSI and STM32F769 sdmmc2 support - GPIO clks can sleep now - Spreadtrum SC9860 RTC clks - Nvidia Tegra MBIST workarounds and various minor fixes - Rockchip phase handling fixes and a memory leak plugged - Renesas drivers switch to readl/writel from clk_readl/clk_writel - Renesas gained CPU (Z/Z2) and watchdog support - Rockchip rk3328 display clks and rk3399 1.6GHz PLL support - Qualcomm PM8921 PMIC XO buffers - Amlogic migrates to regmap APIs - TI Keystone clk latching support - Allwinner H3 and H5 video clk fixes - Broadcom BCM2835 PLLs needed another bit to enable - i.MX6SX CKO mux fix and i.MX7D Video PLL divider fix - i.MX6UL/ULL epdc_podf support - Hi3798CV200 COMBPHY0 and USB2_OTG_UTMI and phase support for eMMC" * tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux: (233 commits) clk: davinci: add a reset lookup table for psc0 clk: imx: add clock driver for imx6sll dt-bindings: imx: update clock doc for imx6sll clk: imx: add new gate/gate2 wrapper funtion clk: imx: Add CLK_IS_CRITICAL flag for busy divider and busy mux clk: cs2000: set pm_ops in hibernate-compatible way clk: bcm2835: De-assert/assert PLL reset signal when appropriate clk: imx7d: Move clks_init_on before any clock operations clk: imx7d: Correct ahb clk parent select clk: imx7d: Correct dram pll type clk: imx7d: Add USB clock information clk: socfpga: stratix10: add clock driver for Stratix10 platform dt-bindings: documentation: add clock bindings information for Stratix10 clk: ti: fix flag space conflict with clkctrl clocks clk: uniphier: add additional ethernet clock lines for Pro4 clk: uniphier: add SATA clock control support clk: uniphier: add PCIe clock control support clk: Add driver for the si544 clock generator chip clk: davinci: Remove redundant dev_err calls clk: uniphier: add ethernet clock control support for PXs3 ...
- Loading branch information
Showing
198 changed files
with
16,113 additions
and
3,950 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
* Clock bindings for Freescale i.MX6 SLL | ||
|
||
Required properties: | ||
- compatible: Should be "fsl,imx6sll-ccm" | ||
- reg: Address and length of the register set | ||
- #clock-cells: Should be <1> | ||
- clocks: list of clock specifiers, must contain an entry for each required | ||
entry in clock-names | ||
- clock-names: should include entries "ckil", "osc", "ipp_di0" and "ipp_di1" | ||
|
||
The clock consumer should specify the desired clock by having the clock | ||
ID in its "clocks" phandle cell. See include/dt-bindings/clock/imx6sll-clock.h | ||
for the full list of i.MX6 SLL clock IDs. | ||
|
||
Examples: | ||
|
||
#include <dt-bindings/clock/imx6sll-clock.h> | ||
|
||
clks: clock-controller@20c4000 { | ||
compatible = "fsl,imx6sll-ccm"; | ||
reg = <0x020c4000 0x4000>; | ||
interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>, | ||
<GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>; | ||
#clock-cells = <1>; | ||
clocks = <&ckil>, <&osc>, <&ipp_di0>, <&ipp_di1>; | ||
clock-names = "ckil", "osc", "ipp_di0", "ipp_di1"; | ||
}; | ||
|
||
uart1: serial@2020000 { | ||
compatible = "fsl,imx6sl-uart", "fsl,imx6q-uart", "fsl,imx21-uart"; | ||
reg = <0x02020000 0x4000>; | ||
interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>; | ||
clocks = <&clks IMX6SLL_CLK_UART1_IPG>, | ||
<&clks IMX6SLL_CLK_UART1_SERIAL>; | ||
clock-names = "ipg", "per"; | ||
}; |
20 changes: 20 additions & 0 deletions
20
Documentation/devicetree/bindings/clock/intc_stratix10.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Device Tree Clock bindings for Intel's SoCFPGA Stratix10 platform | ||
|
||
This binding uses the common clock binding[1]. | ||
|
||
[1] Documentation/devicetree/bindings/clock/clock-bindings.txt | ||
|
||
Required properties: | ||
- compatible : shall be | ||
"intel,stratix10-clkmgr" | ||
|
||
- reg : shall be the control register offset from CLOCK_MANAGER's base for the clock. | ||
|
||
- #clock-cells : from common clock binding, shall be set to 1. | ||
|
||
Example: | ||
clkmgr: clock-controller@ffd10000 { | ||
compatible = "intel,stratix10-clkmgr"; | ||
reg = <0xffd10000 0x1000>; | ||
#clock-cells = <1>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Binding for Silicon Labs 544 programmable I2C clock generator. | ||
|
||
Reference | ||
This binding uses the common clock binding[1]. Details about the device can be | ||
found in the datasheet[2]. | ||
|
||
[1] Documentation/devicetree/bindings/clock/clock-bindings.txt | ||
[2] Si544 datasheet | ||
https://www.silabs.com/documents/public/data-sheets/si544-datasheet.pdf | ||
|
||
Required properties: | ||
- compatible: One of "silabs,si514a", "silabs,si514b" "silabs,si514c" according | ||
to the speed grade of the chip. | ||
- reg: I2C device address. | ||
- #clock-cells: From common clock bindings: Shall be 0. | ||
|
||
Optional properties: | ||
- clock-output-names: From common clock bindings. Recommended to be "si544". | ||
|
||
Example: | ||
si544: clock-controller@55 { | ||
reg = <0x55>; | ||
#clock-cells = <0>; | ||
compatible = "silabs,si544b"; | ||
}; |
60 changes: 60 additions & 0 deletions
60
Documentation/devicetree/bindings/clock/st,stm32mp1-rcc.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
STMicroelectronics STM32 Peripheral Reset Clock Controller | ||
========================================================== | ||
|
||
The RCC IP is both a reset and a clock controller. | ||
|
||
RCC makes also power management (resume/supend and wakeup interrupt). | ||
|
||
Please also refer to reset.txt for common reset controller binding usage. | ||
|
||
Please also refer to clock-bindings.txt for common clock controller | ||
binding usage. | ||
|
||
|
||
Required properties: | ||
- compatible: "st,stm32mp1-rcc", "syscon" | ||
- reg: should be register base and length as documented in the datasheet | ||
- #clock-cells: 1, device nodes should specify the clock in their | ||
"clocks" property, containing a phandle to the clock device node, | ||
an index specifying the clock to use. | ||
- #reset-cells: Shall be 1 | ||
- interrupts: Should contain a general interrupt line and a interrupt line | ||
to the wake-up of processor (CSTOP). | ||
|
||
Example: | ||
rcc: rcc@50000000 { | ||
compatible = "st,stm32mp1-rcc", "syscon"; | ||
reg = <0x50000000 0x1000>; | ||
#clock-cells = <1>; | ||
#reset-cells = <1>; | ||
interrupts = <GIC_SPI 5 IRQ_TYPE_NONE>, | ||
<GIC_SPI 145 IRQ_TYPE_NONE>; | ||
}; | ||
|
||
Specifying clocks | ||
================= | ||
|
||
All available clocks are defined as preprocessor macros in | ||
dt-bindings/clock/stm32mp1-clks.h header and can be used in device | ||
tree sources. | ||
|
||
Specifying softreset control of devices | ||
======================================= | ||
|
||
Device nodes should specify the reset channel required in their "resets" | ||
property, containing a phandle to the reset device node and an index specifying | ||
which channel to use. | ||
The index is the bit number within the RCC registers bank, starting from RCC | ||
base address. | ||
It is calculated as: index = register_offset / 4 * 32 + bit_offset. | ||
Where bit_offset is the bit offset within the register. | ||
|
||
For example on STM32MP1, for LTDC reset: | ||
ltdc = APB4_RSTSETR_offset / 4 * 32 + LTDC_bit_offset | ||
= 0x180 / 4 * 32 + 0 = 3072 | ||
|
||
The list of valid indices for STM32MP1 is available in: | ||
include/dt-bindings/reset-controller/stm32mp1-resets.h | ||
|
||
This file implements defines like: | ||
#define LTDC_R 3072 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 93 additions & 0 deletions
93
Documentation/devicetree/bindings/clock/ti/davinci/da8xx-cfgchip.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
Binding for TI DA8XX/OMAP-L13X/AM17XX/AM18XX CFGCHIP clocks | ||
|
||
TI DA8XX/OMAP-L13X/AM17XX/AM18XX SoCs contain a general purpose set of | ||
registers call CFGCHIPn. Some of these registers function as clock | ||
gates. This document describes the bindings for those clocks. | ||
|
||
All of the clock nodes described below must be child nodes of a CFGCHIP node | ||
(compatible = "ti,da830-cfgchip"). | ||
|
||
USB PHY clocks | ||
-------------- | ||
Required properties: | ||
- compatible: shall be "ti,da830-usb-phy-clocks". | ||
- #clock-cells: from common clock binding; shall be set to 1. | ||
- clocks: phandles to the parent clocks corresponding to clock-names | ||
- clock-names: shall be "fck", "usb_refclkin", "auxclk" | ||
|
||
This node provides two clocks. The clock at index 0 is the USB 2.0 PHY 48MHz | ||
clock and the clock at index 1 is the USB 1.1 PHY 48MHz clock. | ||
|
||
eHRPWM Time Base Clock (TBCLK) | ||
------------------------------ | ||
Required properties: | ||
- compatible: shall be "ti,da830-tbclksync". | ||
- #clock-cells: from common clock binding; shall be set to 0. | ||
- clocks: phandle to the parent clock | ||
- clock-names: shall be "fck" | ||
|
||
PLL DIV4.5 divider | ||
------------------ | ||
Required properties: | ||
- compatible: shall be "ti,da830-div4p5ena". | ||
- #clock-cells: from common clock binding; shall be set to 0. | ||
- clocks: phandle to the parent clock | ||
- clock-names: shall be "pll0_pllout" | ||
|
||
EMIFA clock source (ASYNC1) | ||
--------------------------- | ||
Required properties: | ||
- compatible: shall be "ti,da850-async1-clksrc". | ||
- #clock-cells: from common clock binding; shall be set to 0. | ||
- clocks: phandles to the parent clocks corresponding to clock-names | ||
- clock-names: shall be "pll0_sysclk3", "div4.5" | ||
|
||
ASYNC3 clock source | ||
------------------- | ||
Required properties: | ||
- compatible: shall be "ti,da850-async3-clksrc". | ||
- #clock-cells: from common clock binding; shall be set to 0. | ||
- clocks: phandles to the parent clocks corresponding to clock-names | ||
- clock-names: shall be "pll0_sysclk2", "pll1_sysclk2" | ||
|
||
Examples: | ||
|
||
cfgchip: syscon@1417c { | ||
compatible = "ti,da830-cfgchip", "syscon", "simple-mfd"; | ||
reg = <0x1417c 0x14>; | ||
|
||
usb_phy_clk: usb-phy-clocks { | ||
compatible = "ti,da830-usb-phy-clocks"; | ||
#clock-cells = <1>; | ||
clocks = <&psc1 1>, <&usb_refclkin>, <&pll0_auxclk>; | ||
clock-names = "fck", "usb_refclkin", "auxclk"; | ||
}; | ||
ehrpwm_tbclk: ehrpwm_tbclk { | ||
compatible = "ti,da830-tbclksync"; | ||
#clock-cells = <0>; | ||
clocks = <&psc1 17>; | ||
clock-names = "fck"; | ||
}; | ||
div4p5_clk: div4.5 { | ||
compatible = "ti,da830-div4p5ena"; | ||
#clock-cells = <0>; | ||
clocks = <&pll0_pllout>; | ||
clock-names = "pll0_pllout"; | ||
}; | ||
async1_clk: async1 { | ||
compatible = "ti,da850-async1-clksrc"; | ||
#clock-cells = <0>; | ||
clocks = <&pll0_sysclk 3>, <&div4p5_clk>; | ||
clock-names = "pll0_sysclk3", "div4.5"; | ||
}; | ||
async3_clk: async3 { | ||
compatible = "ti,da850-async3-clksrc"; | ||
#clock-cells = <0>; | ||
clocks = <&pll0_sysclk 2>, <&pll1_sysclk 2>; | ||
clock-names = "pll0_sysclk2", "pll1_sysclk2"; | ||
}; | ||
}; | ||
|
||
Also see: | ||
- Documentation/devicetree/bindings/clock/clock-bindings.txt | ||
|
Oops, something went wrong.