Skip to content

Commit 916f562

Browse files
committed
Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux
Pull clk updates from Stephen Boyd: "This round of clk driver and framework updates is heavy on the driver update side. The two main highlights in the core framework are the addition of an bulk clk_get API that handles optional clks and an extra debugfs file that tells the developer about the current parent of a clk. The driver updates are dominated by i.MX in the diffstat, but that is mostly because that SoC has started converting to the clk_hw style of clk registration. The next big update is in the Amlogic meson clk driver that gained some support for audio, cpu, and temperature clks while fixing some PLL issues. Finally, the biggest thing that stands out is the conversion of a large part of the Allwinner sunxi-ng driver to the new clk parent scheme that uses less strings and more pointer comparisons to match clk parents and children up. In general, it looks like we have a lot of little fixes and tweaks here and there to clk data along with the normal addition of a handful of new drivers and a couple new core framework features. Core: - Add a 'clk_parent' file in clk debugfs - Add a clk_bulk_get_optional() API (with devm too) New Drivers: - Support gated clk controller on MIPS based BCM63XX SoCs - Support SiLabs Si5341 and Si5340 chips - Support for CPU clks on Raspberry Pi devices - Audsys clock driver for MediaTek MT8516 SoCs Updates: - Convert a large portion of the Allwinner sunxi-ng driver to new clk parent scheme - Small frequency support for SiLabs Si544 chips - Slow clk support for AT91 SAM9X60 SoCs - Remove dead code in various clk drivers (-Wunused) - Support for Marvell 98DX1135 SoCs - Get duty cycle of generic pwm clks - Improvement in mmc phase calculation and cleanup of some rate defintions - Switch i.MX6 and i.MX7 clock drivers to clk_hw based APIs - Add GPIO, SNVS and GIC clocks for i.MX8 drivers - Mark imx6sx/ul/ull/sll MMDC_P1_IPG and imx8mm DRAM_APB as critical clock - Correct imx7ulp nic1_bus_clk and imx8mm audio_pll2_clk clock setting - Add clks for new Exynos5422 Dynamic Memory Controller driver - Clock definition for Exynos4412 Mali - Add CMM (Color Management Module) clocks on Renesas R-Car H3, M3-N, E3, and D3 - Add TPU (Timer Pulse Unit / PWM) clocks on Renesas RZ/G2M - Support for 32 bit clock IDs in TI's sci-clks for J721e SoCs - TI clock probing done from DT by default instead of firmware - Fix Amlogic Meson mpll fractional part and spread sprectrum issues - Add Amlogic meson8 audio clocks - Add Amlogic g12a temperature sensors clocks - Add Amlogic g12a and g12b cpu clocks - Add TPU (Timer Pulse Unit / PWM) clocks on Renesas R-Car H3, M3-W, and M3-N - Add CMM (Color Management Module) clocks on Renesas R-Car M3-W - Add Clock Domain support on Renesas RZ/N1" * tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux: (190 commits) clk: consoldiate the __clk_get_hw() declarations clk: sprd: Add check for return value of sprd_clk_regmap_init() clk: lochnagar: Update DT binding doc to include the primary SPDIF MCLK clk: Add Si5341/Si5340 driver dt-bindings: clock: Add silabs,si5341 clk: clk-si544: Implement small frequency change support clk: add BCM63XX gated clock controller driver devicetree: document the BCM63XX gated clock bindings clk: at91: sckc: use dedicated functions to unregister clock clk: at91: sckc: improve error path for sama5d4 sck registration clk: at91: sckc: remove unnecessary line clk: at91: sckc: improve error path for sam9x5 sck register clk: at91: sckc: add support to free slow clock osclillator clk: at91: sckc: add support to free slow rc oscillator clk: at91: sckc: add support to free slow oscillator clk: rockchip: export HDMIPHY clock on rk3228 clk: rockchip: add watchdog pclk on rk3328 clk: rockchip: add clock id for hdmi_phy special clock on rk3228 clk: rockchip: add clock id for watchdog pclk on rk3328 clk: at91: sckc: add support for SAM9X60 ...
2 parents edafb6f + b1511f7 commit 916f562

148 files changed

Lines changed: 7736 additions & 3220 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Required Properties:
1010
- "mediatek,mt7622-audsys", "syscon"
1111
- "mediatek,mt7623-audsys", "mediatek,mt2701-audsys", "syscon"
1212
- "mediatek,mt8183-audiosys", "syscon"
13+
- "mediatek,mt8516-audsys", "syscon"
1314
- #clock-cells: Must be 1
1415

1516
The AUDSYS controller uses the common clk binding from
Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/phy/allwinner,sun4i-a10-ccu.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Allwinner Clock Control Unit Device Tree Bindings
8+
9+
maintainers:
10+
- Chen-Yu Tsai <wens@csie.org>
11+
- Maxime Ripard <maxime.ripard@bootlin.com>
12+
13+
properties:
14+
"#clock-cells":
15+
const: 1
16+
17+
"#reset-cells":
18+
const: 1
19+
20+
compatible:
21+
enum:
22+
- allwinner,sun4i-a10-ccu
23+
- allwinner,sun5i-a10s-ccu
24+
- allwinner,sun5i-a13-ccu
25+
- allwinner,sun6i-a31-ccu
26+
- allwinner,sun7i-a20-ccu
27+
- allwinner,sun8i-a23-ccu
28+
- allwinner,sun8i-a33-ccu
29+
- allwinner,sun8i-a83t-ccu
30+
- allwinner,sun8i-a83t-r-ccu
31+
- allwinner,sun8i-h3-ccu
32+
- allwinner,sun8i-h3-r-ccu
33+
- allwinner,sun8i-r40-ccu
34+
- allwinner,sun8i-v3s-ccu
35+
- allwinner,sun9i-a80-ccu
36+
- allwinner,sun50i-a64-ccu
37+
- allwinner,sun50i-a64-r-ccu
38+
- allwinner,sun50i-h5-ccu
39+
- allwinner,sun50i-h6-ccu
40+
- allwinner,sun50i-h6-r-ccu
41+
- allwinner,suniv-f1c100s-ccu
42+
- nextthing,gr8-ccu
43+
44+
reg:
45+
maxItems: 1
46+
47+
clocks:
48+
minItems: 2
49+
maxItems: 4
50+
items:
51+
- description: High Frequency Oscillator (usually at 24MHz)
52+
- description: Low Frequency Oscillator (usually at 32kHz)
53+
- description: Internal Oscillator
54+
- description: Peripherals PLL
55+
56+
clock-names:
57+
minItems: 2
58+
maxItems: 4
59+
items:
60+
- const: hosc
61+
- const: losc
62+
- const: iosc
63+
- const: pll-periph
64+
65+
required:
66+
- "#clock-cells"
67+
- "#reset-cells"
68+
- compatible
69+
- reg
70+
- clocks
71+
- clock-names
72+
73+
if:
74+
properties:
75+
compatible:
76+
enum:
77+
- allwinner,sun8i-a83t-r-ccu
78+
- allwinner,sun8i-h3-r-ccu
79+
- allwinner,sun50i-a64-r-ccu
80+
- allwinner,sun50i-h6-r-ccu
81+
82+
then:
83+
properties:
84+
clocks:
85+
minItems: 4
86+
maxItems: 4
87+
88+
clock-names:
89+
minItems: 4
90+
maxItems: 4
91+
92+
else:
93+
if:
94+
properties:
95+
compatible:
96+
const: allwinner,sun50i-h6-ccu
97+
98+
then:
99+
properties:
100+
clocks:
101+
minItems: 3
102+
maxItems: 3
103+
104+
clock-names:
105+
minItems: 3
106+
maxItems: 3
107+
108+
else:
109+
properties:
110+
clocks:
111+
minItems: 2
112+
maxItems: 2
113+
114+
clock-names:
115+
minItems: 2
116+
maxItems: 2
117+
118+
additionalProperties: false
119+
120+
examples:
121+
- |
122+
ccu: clock@1c20000 {
123+
compatible = "allwinner,sun8i-h3-ccu";
124+
reg = <0x01c20000 0x400>;
125+
clocks = <&osc24M>, <&osc32k>;
126+
clock-names = "hosc", "losc";
127+
#clock-cells = <1>;
128+
#reset-cells = <1>;
129+
};
130+
131+
- |
132+
r_ccu: clock@1f01400 {
133+
compatible = "allwinner,sun50i-a64-r-ccu";
134+
reg = <0x01f01400 0x100>;
135+
clocks = <&osc24M>, <&osc32k>, <&iosc>, <&ccu 11>;
136+
clock-names = "hosc", "losc", "iosc", "pll-periph";
137+
#clock-cells = <1>;
138+
#reset-cells = <1>;
139+
};
140+
141+
...

‎Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Required Properties:
1010
"amlogic,gxl-clkc" for GXL and GXM SoC,
1111
"amlogic,axg-clkc" for AXG SoC.
1212
"amlogic,g12a-clkc" for G12A SoC.
13+
"amlogic,g12b-clkc" for G12B SoC.
1314
- clocks : list of clock phandle, one for each entry clock-names.
1415
- clock-names : should contain the following:
1516
* "xtal": the platform xtal

‎Documentation/devicetree/bindings/clock/at91-clock.txt‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ Slow Clock controller:
99
Required properties:
1010
- compatible : shall be one of the following:
1111
"atmel,at91sam9x5-sckc",
12-
"atmel,sama5d3-sckc" or
13-
"atmel,sama5d4-sckc":
12+
"atmel,sama5d3-sckc",
13+
"atmel,sama5d4-sckc" or
14+
"microchip,sam9x60-sckc":
1415
at91 SCKC (Slow Clock Controller)
15-
- #clock-cells : shall be 0.
16+
- #clock-cells : shall be 1 for "microchip,sam9x60-sckc" otherwise shall be 0.
1617
- clocks : shall be the input parent clock phandle for the clock.
1718

1819
Optional properties:
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Gated Clock Controller Bindings for MIPS based BCM63XX SoCs
2+
3+
Required properties:
4+
- compatible: must be one of:
5+
"brcm,bcm3368-clocks"
6+
"brcm,bcm6328-clocks"
7+
"brcm,bcm6358-clocks"
8+
"brcm,bcm6362-clocks"
9+
"brcm,bcm6368-clocks"
10+
"brcm,bcm63268-clocks"
11+
12+
- reg: Address and length of the register set
13+
- #clock-cells: must be <1>
14+
15+
16+
Example:
17+
18+
clkctl: clock-controller@10000004 {
19+
compatible = "brcm,bcm6328-clocks";
20+
reg = <0x10000004 0x4>;
21+
#clock-cells = <1>;
22+
};

‎Documentation/devicetree/bindings/clock/cirrus,lochnagar.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Optional properties:
4040
input audio clocks from host system.
4141
- ln-psia1-mclk, ln-psia2-mclk : Optional input audio clocks from
4242
external connector.
43+
- ln-spdif-mclk : Optional input audio clock from SPDIF.
4344
- ln-spdif-clkout : Optional input audio clock from SPDIF.
4445
- ln-adat-mclk : Optional input audio clock from ADAT.
4546
- ln-pmic-32k : On board fixed clock.

‎Documentation/devicetree/bindings/clock/mvebu-core-clock.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ Required properties:
5959
"marvell,dove-core-clock" - for Dove SoC core clocks
6060
"marvell,kirkwood-core-clock" - for Kirkwood SoC (except mv88f6180)
6161
"marvell,mv88f6180-core-clock" - for Kirkwood MV88f6180 SoC
62+
"marvell,mv98dx1135-core-clock" - for Kirkwood 98dx1135 SoC
6263
"marvell,mv88f5181-core-clock" - for Orion MV88F5181 SoC
6364
"marvell,mv88f5182-core-clock" - for Orion MV88F5182 SoC
6465
"marvell,mv88f5281-core-clock" - for Orion MV88F5281 SoC

‎Documentation/devicetree/bindings/clock/qcom,gpucc.txt‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ Qualcomm Graphics Clock & Reset Controller Binding
22
--------------------------------------------------
33

44
Required properties :
5-
- compatible : shall contain "qcom,sdm845-gpucc"
5+
- compatible : shall contain "qcom,sdm845-gpucc" or "qcom,msm8998-gpucc"
66
- reg : shall contain base register location and length
77
- #clock-cells : from common clock binding, shall contain 1
88
- #reset-cells : from common reset binding, shall contain 1
99
- #power-domain-cells : from generic power domain binding, shall contain 1
1010
- clocks : shall contain the XO clock
11+
shall contain the gpll0 out main clock (msm8998)
1112
- clock-names : shall be "xo"
13+
shall be "gpll0" (msm8998)
1214

1315
Example:
1416
gpucc: clock-controller@5090000 {

‎Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.txt‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Required Properties:
1313
- external (optional) RGMII_REFCLK
1414
- clock-names: Must be:
1515
clock-names = "mclk", "rtc", "jtag", "rgmii_ref_ext";
16+
- #power-domain-cells: Must be 0
1617

1718
Examples
1819
--------
@@ -27,6 +28,7 @@ Examples
2728
clocks = <&ext_mclk>, <&ext_rtc_clk>,
2829
<&ext_jtag_clk>, <&ext_rgmii_ref>;
2930
clock-names = "mclk", "rtc", "jtag", "rgmii_ref_ext";
31+
#power-domain-cells = <0>;
3032
};
3133

3234
- Other nodes can use the clocks provided by SYSCTRL as in:
@@ -38,6 +40,7 @@ Examples
3840
interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
3941
reg-shift = <2>;
4042
reg-io-width = <4>;
41-
clocks = <&sysctrl R9A06G032_CLK_UART0>;
42-
clock-names = "baudclk";
43+
clocks = <&sysctrl R9A06G032_CLK_UART0>, <&sysctrl R9A06G032_HCLK_UART0>;
44+
clock-names = "baudclk", "apb_pclk";
45+
power-domains = <&sysctrl>;
4346
};

0 commit comments

Comments
 (0)