forked from torvalds/linux
-
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: "This is a fairly quiet release. We don't have any patches to the core framework. The only patch that can even be considered "core" adds another clk_get() variant. The rest of the changes are in drivers for various SoCs, and we have a few bits for ARM shmobile architecture code (dts and mach) due to the dependency we're breaking between shmobile architecture code and its clk driver. Those shmobile bits have also been pulled into arm-soc tree. Here's the summary: Core: - Support for devm_get_clk_from_child() used with DT bindings that have subnodes with the 'clocks' property New Drivers: - Allwinner A64 (sun50i) - i.MX imx6ull - Socionext's UniPhier SoC CPUs - Mediatek MT2701 SoCs - Rockchip rk1108 SoCs - Qualcomm MSM8994/MSM8992 SoCS - Qualcomm RPM Clocks - Hisilicon Hi3516CV300 and Hi3798CV200 CRG - Oxford Semiconductor OX820 and OX810SE SoCs - Renesas RZ/G1M and RZ/GIE SoCs - Renesas R-Car RST driver for mode pin states Updates: - Four Allwinner SoCs are migrated to the new style clk driver - Rockchip rk3399,rk3066 PLL optimizations - i.MX LVDS display glitch fixes and AV PLL precision improvements - Qualcomm MSM8996 GPU GDSCs, hw controlled GDSCs, and Alpha PLL support - Explicit demodularization of always builtin drivers - Freescale Qoriq ls1012a and ls1046a support - Exynos 5433 parent typo fix and critical clock tagging - Renesas r8a7743/r8a7745 CPG - Renesas R-Car M3-W CSI2/VIN/SYS-DMAC/(H)SCIF/I2C/DRIF/gfx support - stm32f4* LSI, LSE, RTC, and QSPI clocks - pxa27x and pxa25x cpufreq as clks - TI omap36xx sprz319 advisory 2.1 workaround - Broadcom bcm2835 rate change propogation to PLLH_AUX from VEC" * tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux: (150 commits) clk: bcm: Fix 'maybe-uninitialized' warning in bcm2835_clock_choose_div_and_prate() clk: add devm_get_clk_from_child() API clk: st: clk-flexgen: Unmap region obtained by of_iomap clk: keystone: pll: Unmap region obtained by of_iomap clk:mmp:clk-of-mmp2: Free memory and Unmap region obtained by kzalloc and of_iomap clk:mmp:clk-of-pxa910: Free memory and Unmap region obtained by kzmalloc and of_iomap clk: mmp: clk-of-pxa1928: Free memory obtained by kzalloc clk: cdce925: Fix limit check clk: bcm: Make COMMON_CLK_IPROC into a library clk: qoriq: added ls1012a clock configuration clk: ti: dra7: fix "failed to lookup clock node gmac_gmii_ref_clk_div" boot message clk: bcm: Allow rate change propagation to PLLH_AUX on VEC clock clk: bcm: Support rate change propagation on bcm2835 clocks clk: bcm2835: Avoid overwriting the div info when disabling a pll_div clk clk: ti: omap36xx: Work around sprz319 advisory 2.1 clk: clk-wm831x: fix a logic error clk: uniphier: add cpufreq data for LD11, LD20 SoCs clk: uniphier: add CPU-gear change (cpufreq) support clk: qcom: Put venus core0/1 gdscs to hw control mode clk: qcom: gdsc: Add support for gdscs with HW control ...
- Loading branch information
Showing
165 changed files
with
12,585 additions
and
787 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
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,37 @@ | ||
Qualcomm RPM Clock Controller Binding | ||
------------------------------------------------ | ||
The RPM is a dedicated hardware engine for managing the shared | ||
SoC resources in order to keep the lowest power profile. It | ||
communicates with other hardware subsystems via shared memory | ||
and accepts clock requests, aggregates the requests and turns | ||
the clocks on/off or scales them on demand. | ||
|
||
Required properties : | ||
- compatible : shall contain only one of the following. The generic | ||
compatible "qcom,rpmcc" should be also included. | ||
|
||
"qcom,rpmcc-msm8916", "qcom,rpmcc" | ||
"qcom,rpmcc-apq8064", "qcom,rpmcc" | ||
|
||
- #clock-cells : shall contain 1 | ||
|
||
Example: | ||
smd { | ||
compatible = "qcom,smd"; | ||
|
||
rpm { | ||
interrupts = <0 168 1>; | ||
qcom,ipc = <&apcs 8 0>; | ||
qcom,smd-edge = <15>; | ||
|
||
rpm_requests { | ||
compatible = "qcom,rpm-msm8916"; | ||
qcom,smd-channels = "rpm_requests"; | ||
|
||
rpmcc: clock-controller { | ||
compatible = "qcom,rpmcc-msm8916", "qcom,rpmcc"; | ||
#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
59 changes: 59 additions & 0 deletions
59
Documentation/devicetree/bindings/clock/rockchip,rk1108-cru.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,59 @@ | ||
* Rockchip RK1108 Clock and Reset Unit | ||
|
||
The RK1108 clock controller generates and supplies clock to various | ||
controllers within the SoC and also implements a reset controller for SoC | ||
peripherals. | ||
|
||
Required Properties: | ||
|
||
- compatible: should be "rockchip,rk1108-cru" | ||
- reg: physical base address of the controller and length of memory mapped | ||
region. | ||
- #clock-cells: should be 1. | ||
- #reset-cells: should be 1. | ||
|
||
Optional Properties: | ||
|
||
- rockchip,grf: phandle to the syscon managing the "general register files" | ||
If missing pll rates are not changeable, due to the missing pll lock status. | ||
|
||
Each clock is assigned an identifier and client nodes can use this identifier | ||
to specify the clock which they consume. All available clocks are defined as | ||
preprocessor macros in the dt-bindings/clock/rk1108-cru.h headers and can be | ||
used in device tree sources. Similar macros exist for the reset sources in | ||
these files. | ||
|
||
External clocks: | ||
|
||
There are several clocks that are generated outside the SoC. It is expected | ||
that they are defined using standard clock bindings with following | ||
clock-output-names: | ||
- "xin24m" - crystal input - required, | ||
- "ext_vip" - external VIP clock - optional | ||
- "ext_i2s" - external I2S clock - optional | ||
- "ext_gmac" - external GMAC clock - optional | ||
- "hdmiphy" - external clock input derived from HDMI PHY - optional | ||
- "usbphy" - external clock input derived from USB PHY - optional | ||
|
||
Example: Clock controller node: | ||
|
||
cru: cru@20200000 { | ||
compatible = "rockchip,rk1108-cru"; | ||
reg = <0x20200000 0x1000>; | ||
rockchip,grf = <&grf>; | ||
|
||
#clock-cells = <1>; | ||
#reset-cells = <1>; | ||
}; | ||
|
||
Example: UART controller node that consumes the clock generated by the clock | ||
controller: | ||
|
||
uart0: serial@10230000 { | ||
compatible = "rockchip,rk1108-uart", "snps,dw-apb-uart"; | ||
reg = <0x10230000 0x100>; | ||
interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>; | ||
reg-shift = <2>; | ||
reg-io-width = <4>; | ||
clocks = <&cru SCLK_UART0>; | ||
}; |
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,37 @@ | ||
DT bindings for the Renesas R-Car and RZ/G Reset Controllers | ||
|
||
The R-Car and RZ/G Reset Controllers provide reset control, and implement the | ||
following functions: | ||
- Latching of the levels on mode pins when PRESET# is negated, | ||
- Mode monitoring register, | ||
- Reset control of peripheral devices (on R-Car Gen1), | ||
- Watchdog timer (on R-Car Gen1), | ||
- Register-based reset control and boot address registers for the various CPU | ||
cores (on R-Car Gen2 and Gen3, and on RZ/G). | ||
|
||
|
||
Required properties: | ||
- compatible: Should be | ||
- "renesas,<soctype>-reset-wdt" for R-Car Gen1, | ||
- "renesas,<soctype>-rst" for R-Car Gen2 and Gen3, and RZ/G | ||
Examples with soctypes are: | ||
- "renesas,r8a7743-rst" (RZ/G1M) | ||
- "renesas,r8a7745-rst" (RZ/G1E) | ||
- "renesas,r8a7778-reset-wdt" (R-Car M1A) | ||
- "renesas,r8a7779-reset-wdt" (R-Car H1) | ||
- "renesas,r8a7790-rst" (R-Car H2) | ||
- "renesas,r8a7791-rst" (R-Car M2-W) | ||
- "renesas,r8a7792-rst" (R-Car V2H | ||
- "renesas,r8a7793-rst" (R-Car M2-N) | ||
- "renesas,r8a7794-rst" (R-Car E2) | ||
- "renesas,r8a7795-rst" (R-Car H3) | ||
- "renesas,r8a7796-rst" (R-Car M3-W) | ||
- reg: Address start and address range for the device. | ||
|
||
|
||
Example: | ||
|
||
rst: reset-controller@e6160000 { | ||
compatible = "renesas,r8a7795-rst"; | ||
reg = <0 0xe6160000 0 0x0200>; | ||
}; |
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
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
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
Oops, something went wrong.