Skip to content

Commit 92295f6

Browse files
committed
Merge tag 'clk-for-linus-3.11' of git://git.linaro.org/people/mturquette/linux
Pull clock framework updates from Mike Turquette: "The common clock framework changes for 3.11 include new clock drivers across several different platforms and architectures, fixes to existing drivers, a MAINTAINERS file fix and improvements to the basic clock types that allow them to be of use to more platforms than before. Only a few fixes to the core framework are included with most all of the changes landing in the various clock drivers themselves." * tag 'clk-for-linus-3.11' of git://git.linaro.org/people/mturquette/linux: (55 commits) clk: tegra: fix ifdef for tegra_periph_reset_assert inline clk: tegra: provide tegra_periph_reset_assert alternative clk: exynos4: Fix clock aliases for cpufreq related clocks clk: samsung: Add MUX_FA macro to pass flag and alias clk: add support for Rockchip gate clocks clk: vexpress: Make the clock drivers directly available for arm64 clk: vexpress: Use full node name to identify individual clocks clk: tegra: T114: add DFLL DVCO reset control clk: tegra: T114: add DFLL source clocks clk: tegra: T114: add FCPU clock shaper programming, needed by the DFLL clk: gate: add CLK_GATE_HIWORD_MASK clk: divider: add CLK_DIVIDER_HIWORD_MASK flag clk: mux: add CLK_MUX_HIWORD_MASK clk: Always notify whole subtree when reparenting MAINTAINERS: make drivers/clk entry match subdirs clk: honor CLK_GET_RATE_NOCACHE in clk_set_rate clk: use clk_get_rate() for debugfs clk: tegra: Use override bits when needed clk: tegra: override bits for Tegra30 PLLM clk: tegra: override bits for Tegra114 PLLM ...
2 parents 750b2d7 + 45e3ec3 commit 92295f6

47 files changed

Lines changed: 2261 additions & 415 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
TI-NSPIRE Clocks
2+
3+
Required properties:
4+
- compatible: Valid compatible properties include:
5+
"lsi,nspire-cx-ahb-divider" for the AHB divider in the CX model
6+
"lsi,nspire-classic-ahb-divider" for the AHB divider in the older model
7+
"lsi,nspire-cx-clock" for the base clock in the CX model
8+
"lsi,nspire-classic-clock" for the base clock in the older model
9+
10+
- reg: Physical base address of the controller and length of memory mapped
11+
region.
12+
13+
Optional:
14+
- clocks: For the "nspire-*-ahb-divider" compatible clocks, this is the parent
15+
clock where it divides the rate from.
16+
17+
Example:
18+
19+
ahb_clk {
20+
#clock-cells = <0>;
21+
compatible = "lsi,nspire-cx-clock";
22+
reg = <0x900B0000 0x4>;
23+
clocks = <&base_clk>;
24+
};
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
Device Tree Clock bindings for arch-rockchip
2+
3+
This binding uses the common clock binding[1].
4+
5+
[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
6+
7+
== Gate clocks ==
8+
9+
The gate registers form a continuos block which makes the dt node
10+
structure a matter of taste, as either all gates can be put into
11+
one gate clock spanning all registers or they can be divided into
12+
the 10 individual gates containing 16 clocks each.
13+
The code supports both approaches.
14+
15+
Required properties:
16+
- compatible : "rockchip,rk2928-gate-clk"
17+
- reg : shall be the control register address(es) for the clock.
18+
- #clock-cells : from common clock binding; shall be set to 1
19+
- clock-output-names : the corresponding gate names that the clock controls
20+
- clocks : should contain the parent clock for each individual gate,
21+
therefore the number of clocks elements should match the number of
22+
clock-output-names
23+
24+
Example using multiple gate clocks:
25+
26+
clk_gates0: gate-clk@200000d0 {
27+
compatible = "rockchip,rk2928-gate-clk";
28+
reg = <0x200000d0 0x4>;
29+
clocks = <&dummy>, <&dummy>,
30+
<&dummy>, <&dummy>,
31+
<&dummy>, <&dummy>,
32+
<&dummy>, <&dummy>,
33+
<&dummy>, <&dummy>,
34+
<&dummy>, <&dummy>,
35+
<&dummy>, <&dummy>,
36+
<&dummy>, <&dummy>;
37+
38+
clock-output-names =
39+
"gate_core_periph", "gate_cpu_gpll",
40+
"gate_ddrphy", "gate_aclk_cpu",
41+
"gate_hclk_cpu", "gate_pclk_cpu",
42+
"gate_atclk_cpu", "gate_i2s0",
43+
"gate_i2s0_frac", "gate_i2s1",
44+
"gate_i2s1_frac", "gate_i2s2",
45+
"gate_i2s2_frac", "gate_spdif",
46+
"gate_spdif_frac", "gate_testclk";
47+
48+
#clock-cells = <1>;
49+
};
50+
51+
clk_gates1: gate-clk@200000d4 {
52+
compatible = "rockchip,rk2928-gate-clk";
53+
reg = <0x200000d4 0x4>;
54+
clocks = <&xin24m>, <&xin24m>,
55+
<&xin24m>, <&dummy>,
56+
<&dummy>, <&xin24m>,
57+
<&xin24m>, <&dummy>,
58+
<&xin24m>, <&dummy>,
59+
<&xin24m>, <&dummy>,
60+
<&xin24m>, <&dummy>,
61+
<&xin24m>, <&dummy>;
62+
63+
clock-output-names =
64+
"gate_timer0", "gate_timer1",
65+
"gate_timer2", "gate_jtag",
66+
"gate_aclk_lcdc1_src", "gate_otgphy0",
67+
"gate_otgphy1", "gate_ddr_gpll",
68+
"gate_uart0", "gate_frac_uart0",
69+
"gate_uart1", "gate_frac_uart1",
70+
"gate_uart2", "gate_frac_uart2",
71+
"gate_uart3", "gate_frac_uart3";
72+
73+
#clock-cells = <1>;
74+
};

‎Documentation/devicetree/bindings/clock/silabs,si5351.txt‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ Optional child node properties:
4444
- silabs,multisynth-source: source pll A(0) or B(1) of corresponding multisynth
4545
divider.
4646
- silabs,pll-master: boolean, multisynth can change pll frequency.
47+
- silabs,disable-state : clock output disable state, shall be
48+
0 = clock output is driven LOW when disabled
49+
1 = clock output is driven HIGH when disabled
50+
2 = clock output is FLOATING (HIGH-Z) when disabled
51+
3 = clock output is NEVER disabled
4752

4853
==Example==
4954

‎Documentation/devicetree/bindings/clock/sunxi.txt‎

Lines changed: 13 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,30 @@ Required properties:
1212
"allwinner,sun4i-axi-clk" - for the AXI clock
1313
"allwinner,sun4i-axi-gates-clk" - for the AXI gates
1414
"allwinner,sun4i-ahb-clk" - for the AHB clock
15-
"allwinner,sun4i-ahb-gates-clk" - for the AHB gates
15+
"allwinner,sun4i-ahb-gates-clk" - for the AHB gates on A10
16+
"allwinner,sun5i-a13-ahb-gates-clk" - for the AHB gates on A13
1617
"allwinner,sun4i-apb0-clk" - for the APB0 clock
17-
"allwinner,sun4i-apb0-gates-clk" - for the APB0 gates
18+
"allwinner,sun4i-apb0-gates-clk" - for the APB0 gates on A10
19+
"allwinner,sun5i-a13-apb0-gates-clk" - for the APB0 gates on A13
1820
"allwinner,sun4i-apb1-clk" - for the APB1 clock
1921
"allwinner,sun4i-apb1-mux-clk" - for the APB1 clock muxing
20-
"allwinner,sun4i-apb1-gates-clk" - for the APB1 gates
22+
"allwinner,sun4i-apb1-gates-clk" - for the APB1 gates on A10
23+
"allwinner,sun5i-a13-apb1-gates-clk" - for the APB1 gates on A13
2124

2225
Required properties for all clocks:
2326
- reg : shall be the control register address for the clock.
2427
- clocks : shall be the input parent clock(s) phandle for the clock
2528
- #clock-cells : from common clock binding; shall be set to 0 except for
26-
"allwinner,sun4i-*-gates-clk" where it shall be set to 1
29+
"allwinner,*-gates-clk" where it shall be set to 1
2730

28-
Additionally, "allwinner,sun4i-*-gates-clk" clocks require:
31+
Additionally, "allwinner,*-gates-clk" clocks require:
2932
- clock-output-names : the corresponding gate names that the clock controls
3033

34+
Clock consumers should specify the desired clocks they use with a
35+
"clocks" phandle cell. Consumers that are using a gated clock should
36+
provide an additional ID in their clock property. The values of this
37+
ID are documented in sunxi/<soc>-gates.txt.
38+
3139
For example:
3240

3341
osc24M: osc24M@01c20050 {
@@ -50,102 +58,3 @@ cpu: cpu@01c20054 {
5058
reg = <0x01c20054 0x4>;
5159
clocks = <&osc32k>, <&osc24M>, <&pll1>;
5260
};
53-
54-
55-
56-
Gate clock outputs
57-
58-
The "allwinner,sun4i-*-gates-clk" clocks provide several gatable outputs;
59-
their corresponding offsets as present on sun4i are listed below. Note that
60-
some of these gates are not present on sun5i.
61-
62-
* AXI gates ("allwinner,sun4i-axi-gates-clk")
63-
64-
DRAM 0
65-
66-
* AHB gates ("allwinner,sun4i-ahb-gates-clk")
67-
68-
USB0 0
69-
EHCI0 1
70-
OHCI0 2*
71-
EHCI1 3
72-
OHCI1 4*
73-
SS 5
74-
DMA 6
75-
BIST 7
76-
MMC0 8
77-
MMC1 9
78-
MMC2 10
79-
MMC3 11
80-
MS 12**
81-
NAND 13
82-
SDRAM 14
83-
84-
ACE 16
85-
EMAC 17
86-
TS 18
87-
88-
SPI0 20
89-
SPI1 21
90-
SPI2 22
91-
SPI3 23
92-
PATA 24
93-
SATA 25**
94-
GPS 26*
95-
96-
VE 32
97-
TVD 33
98-
TVE0 34
99-
TVE1 35
100-
LCD0 36
101-
LCD1 37
102-
103-
CSI0 40
104-
CSI1 41
105-
106-
HDMI 43
107-
DE_BE0 44
108-
DE_BE1 45
109-
DE_FE0 46
110-
DE_FE1 47
111-
112-
MP 50
113-
114-
MALI400 52
115-
116-
* APB0 gates ("allwinner,sun4i-apb0-gates-clk")
117-
118-
CODEC 0
119-
SPDIF 1*
120-
AC97 2
121-
IIS 3
122-
123-
PIO 5
124-
IR0 6
125-
IR1 7
126-
127-
KEYPAD 10
128-
129-
* APB1 gates ("allwinner,sun4i-apb1-gates-clk")
130-
131-
I2C0 0
132-
I2C1 1
133-
I2C2 2
134-
135-
CAN 4
136-
SCR 5
137-
PS20 6
138-
PS21 7
139-
140-
UART0 16
141-
UART1 17
142-
UART2 18
143-
UART3 19
144-
UART4 20
145-
UART5 21
146-
UART6 22
147-
UART7 23
148-
149-
Notation:
150-
[*]: The datasheet didn't mention these, but they are present on AW code
151-
[**]: The datasheet had this marked as "NC" but they are used on AW code
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
Gate clock outputs
2+
------------------
3+
4+
* AXI gates ("allwinner,sun4i-axi-gates-clk")
5+
6+
DRAM 0
7+
8+
* AHB gates ("allwinner,sun4i-ahb-gates-clk")
9+
10+
USB0 0
11+
EHCI0 1
12+
OHCI0 2*
13+
EHCI1 3
14+
OHCI1 4*
15+
SS 5
16+
DMA 6
17+
BIST 7
18+
MMC0 8
19+
MMC1 9
20+
MMC2 10
21+
MMC3 11
22+
MS 12**
23+
NAND 13
24+
SDRAM 14
25+
26+
ACE 16
27+
EMAC 17
28+
TS 18
29+
30+
SPI0 20
31+
SPI1 21
32+
SPI2 22
33+
SPI3 23
34+
PATA 24
35+
SATA 25**
36+
GPS 26*
37+
38+
VE 32
39+
TVD 33
40+
TVE0 34
41+
TVE1 35
42+
LCD0 36
43+
LCD1 37
44+
45+
CSI0 40
46+
CSI1 41
47+
48+
HDMI 43
49+
DE_BE0 44
50+
DE_BE1 45
51+
DE_FE1 46
52+
DE_FE1 47
53+
54+
MP 50
55+
56+
MALI400 52
57+
58+
* APB0 gates ("allwinner,sun4i-apb0-gates-clk")
59+
60+
CODEC 0
61+
SPDIF 1*
62+
AC97 2
63+
IIS 3
64+
65+
PIO 5
66+
IR0 6
67+
IR1 7
68+
69+
KEYPAD 10
70+
71+
* APB1 gates ("allwinner,sun4i-apb1-gates-clk")
72+
73+
I2C0 0
74+
I2C1 1
75+
I2C2 2
76+
77+
CAN 4
78+
SCR 5
79+
PS20 6
80+
PS21 7
81+
82+
UART0 16
83+
UART1 17
84+
UART2 18
85+
UART3 19
86+
UART4 20
87+
UART5 21
88+
UART6 22
89+
UART7 23
90+
91+
Notation:
92+
[*]: The datasheet didn't mention these, but they are present on AW code
93+
[**]: The datasheet had this marked as "NC" but they are used on AW code

0 commit comments

Comments
 (0)