Skip to content

Commit 7e21774

Browse files
committed
Merge tag 'clk-for-linus-3.14-part1' of git://git.linaro.org/people/mike.turquette/linux
Pull clk framework changes from Mike Turquette: "The first half of the clk framework pull request is made up almost entirely of new platform/driver support. There are some conversions of existing drivers to the common-clock Device Tree binding, and a few non-critical fixes to the framework. Due to an entirely unnecessary cyclical dependency with the arm-soc tree this pull request is broken into two pieces. The second piece will be sent out after arm-soc sends you the pull request that merged in core support for the HiSilicon 3620 platform. That same pull request from arm-soc depends on this pull request to merge in those HiSilicon bits without causing build failures" [ Just did the ARM SoC merges, so getting ready for the second clk tree pull request - Linus ] * tag 'clk-for-linus-3.14-part1' of git://git.linaro.org/people/mike.turquette/linux: (97 commits) devicetree: bindings: Document qcom,mmcc devicetree: bindings: Document qcom,gcc clk: qcom: Add support for MSM8660's global clock controller (GCC) clk: qcom: Add support for MSM8974's multimedia clock controller (MMCC) clk: qcom: Add support for MSM8974's global clock controller (GCC) clk: qcom: Add support for MSM8960's multimedia clock controller (MMCC) clk: qcom: Add support for MSM8960's global clock controller (GCC) clk: qcom: Add reset controller support clk: qcom: Add support for branches/gate clocks clk: qcom: Add support for root clock generators (RCGs) clk: qcom: Add support for phase locked loops (PLLs) clk: qcom: Add a regmap type clock struct clk: Add set_rate_and_parent() op reset: Silence warning in reset-controller.h clk: sirf: re-arch to make the codes support both prima2 and atlas6 clk: composite: pass mux_hw into determine_rate clk: shmobile: Fix MSTP clock array initialization clk: shmobile: Fix MSTP clock index ARM: dts: Add clock provider specific properties to max77686 node clk: max77686: Register OF clock provider ...
2 parents 0ba3307 + 2e84d75 commit 7e21774

111 files changed

Lines changed: 22451 additions & 1577 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/clk.txt‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ the operations defined in clk.h:
7777
int (*set_parent)(struct clk_hw *hw, u8 index);
7878
u8 (*get_parent)(struct clk_hw *hw);
7979
int (*set_rate)(struct clk_hw *hw, unsigned long);
80+
int (*set_rate_and_parent)(struct clk_hw *hw,
81+
unsigned long rate,
82+
unsigned long parent_rate, u8 index);
83+
unsigned long (*recalc_accuracy)(struct clk_hw *hw,
84+
unsigned long parent_accuracy);
8085
void (*init)(struct clk_hw *hw);
8186
};
8287

@@ -202,6 +207,8 @@ optional or must be evaluated on a case-by-case basis.
202207
.set_parent | | | n | y | n |
203208
.get_parent | | | n | y | n |
204209
| | | | | |
210+
.recalc_accuracy| | | | | |
211+
| | | | | |
205212
.init | | | | | |
206213
-----------------------------------------------------------
207214
[1] either one of round_rate or determine_rate is required.

‎Documentation/devicetree/bindings/clock/clk-exynos-audss.txt‎

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,29 @@ Required Properties:
88

99
- compatible: should be one of the following:
1010
- "samsung,exynos4210-audss-clock" - controller compatible with all Exynos4 SoCs.
11-
- "samsung,exynos5250-audss-clock" - controller compatible with all Exynos5 SoCs.
12-
11+
- "samsung,exynos5250-audss-clock" - controller compatible with Exynos5250
12+
SoCs.
13+
- "samsung,exynos5420-audss-clock" - controller compatible with Exynos5420
14+
SoCs.
1315
- reg: physical base address and length of the controller's register set.
1416

1517
- #clock-cells: should be 1.
1618

19+
- clocks:
20+
- pll_ref: Fixed rate PLL reference clock, parent of mout_audss. "fin_pll"
21+
is used if not specified.
22+
- pll_in: Input PLL to the AudioSS block, parent of mout_audss. "fout_epll"
23+
is used if not specified.
24+
- cdclk: External i2s clock, parent of mout_i2s. "cdclk0" is used if not
25+
specified.
26+
- sclk_audio: Audio bus clock, parent of mout_i2s. "sclk_audio0" is used if
27+
not specified.
28+
- sclk_pcm_in: PCM clock, parent of sclk_pcm. "sclk_pcm0" is used if not
29+
specified.
30+
31+
- clock-names: Aliases for the above clocks. They should be "pll_ref",
32+
"pll_in", "cdclk", "sclk_audio", and "sclk_pcm_in" respectively.
33+
1734
The following is the list of clocks generated by the controller. Each clock is
1835
assigned an identifier and client nodes use this identifier to specify the
1936
clock which they consume. Some of the clocks are available only on a particular
@@ -34,16 +51,30 @@ i2s_bus 6
3451
sclk_i2s 7
3552
pcm_bus 8
3653
sclk_pcm 9
54+
adma 10 Exynos5420
55+
56+
Example 1: An example of a clock controller node using the default input
57+
clock names is listed below.
58+
59+
clock_audss: audss-clock-controller@3810000 {
60+
compatible = "samsung,exynos5250-audss-clock";
61+
reg = <0x03810000 0x0C>;
62+
#clock-cells = <1>;
63+
};
3764

38-
Example 1: An example of a clock controller node is listed below.
65+
Example 2: An example of a clock controller node with the input clocks
66+
specified.
3967

4068
clock_audss: audss-clock-controller@3810000 {
4169
compatible = "samsung,exynos5250-audss-clock";
4270
reg = <0x03810000 0x0C>;
4371
#clock-cells = <1>;
72+
clocks = <&clock 1>, <&clock 7>, <&clock 138>, <&clock 160>,
73+
<&ext_i2s_clk>;
74+
clock-names = "pll_ref", "pll_in", "sclk_audio", "sclk_pcm_in", "cdclk";
4475
};
4576

46-
Example 2: I2S controller node that consumes the clock generated by the clock
77+
Example 3: I2S controller node that consumes the clock generated by the clock
4778
controller. Refer to the standard clock bindings for information
4879
about 'clocks' and 'clock-names' property.
4980

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
Device tree Clock bindings for Renesas EMMA Mobile EV2
2+
3+
This binding uses the common clock binding.
4+
5+
* SMU
6+
System Management Unit described in user's manual R19UH0037EJ1000_SMU.
7+
This is not a clock provider, but clocks under SMU depend on it.
8+
9+
Required properties:
10+
- compatible: Should be "renesas,emev2-smu"
11+
- reg: Address and Size of SMU registers
12+
13+
* SMU_CLKDIV
14+
Function block with an input mux and a divider, which corresponds to
15+
"Serial clock generator" in fig."Clock System Overview" of the manual,
16+
and "xxx frequency division setting register" (XXXCLKDIV) registers.
17+
This makes internal (neither input nor output) clock that is provided
18+
to input of xxxGCLK block.
19+
20+
Required properties:
21+
- compatible: Should be "renesas,emev2-smu-clkdiv"
22+
- reg: Byte offset from SMU base and Bit position in the register
23+
- clocks: Parent clocks. Input clocks as described in clock-bindings.txt
24+
- #clock-cells: Should be <0>
25+
26+
* SMU_GCLK
27+
Clock gating node shown as "Clock stop processing block" in the
28+
fig."Clock System Overview" of the manual.
29+
Registers are "xxx clock gate control register" (XXXGCLKCTRL).
30+
31+
Required properties:
32+
- compatible: Should be "renesas,emev2-smu-gclk"
33+
- reg: Byte offset from SMU base and Bit position in the register
34+
- clocks: Input clock as described in clock-bindings.txt
35+
- #clock-cells: Should be <0>
36+
37+
Example of provider:
38+
39+
usia_u0_sclkdiv: usia_u0_sclkdiv {
40+
compatible = "renesas,emev2-smu-clkdiv";
41+
reg = <0x610 0>;
42+
clocks = <&pll3_fo>, <&pll4_fo>, <&pll1_fo>, <&osc1_fo>;
43+
#clock-cells = <0>;
44+
};
45+
46+
usia_u0_sclk: usia_u0_sclk {
47+
compatible = "renesas,emev2-smu-gclk";
48+
reg = <0x4a0 1>;
49+
clocks = <&usia_u0_sclkdiv>;
50+
#clock-cells = <0>;
51+
};
52+
53+
Example of consumer:
54+
55+
uart@e1020000 {
56+
compatible = "renesas,em-uart";
57+
reg = <0xe1020000 0x38>;
58+
interrupts = <0 8 0>;
59+
clocks = <&usia_u0_sclk>;
60+
clock-names = "sclk";
61+
};
62+
63+
Example of clock-tree description:
64+
65+
This describes a clock path in the clock tree
66+
c32ki -> pll3_fo -> usia_u0_sclkdiv -> usia_u0_sclk
67+
68+
smu@e0110000 {
69+
compatible = "renesas,emev2-smu";
70+
reg = <0xe0110000 0x10000>;
71+
#address-cells = <2>;
72+
#size-cells = <0>;
73+
74+
c32ki: c32ki {
75+
compatible = "fixed-clock";
76+
clock-frequency = <32768>;
77+
#clock-cells = <0>;
78+
};
79+
pll3_fo: pll3_fo {
80+
compatible = "fixed-factor-clock";
81+
clocks = <&c32ki>;
82+
clock-div = <1>;
83+
clock-mult = <7000>;
84+
#clock-cells = <0>;
85+
};
86+
usia_u0_sclkdiv: usia_u0_sclkdiv {
87+
compatible = "renesas,emev2-smu-clkdiv";
88+
reg = <0x610 0>;
89+
clocks = <&pll3_fo>;
90+
#clock-cells = <0>;
91+
};
92+
usia_u0_sclk: usia_u0_sclk {
93+
compatible = "renesas,emev2-smu-gclk";
94+
reg = <0x4a0 1>;
95+
clocks = <&usia_u0_sclkdiv>;
96+
#clock-cells = <0>;
97+
};
98+
};

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ clock which they consume.
6262
div_i2s1 157
6363
div_i2s2 158
6464
sclk_hdmiphy 159
65+
div_pcm0 160
6566

6667

6768
[Peripheral Clock Gates]

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Required properties:
1010
- clock-frequency : frequency of clock in Hz. Should be a single cell.
1111

1212
Optional properties:
13+
- clock-accuracy : accuracy of clock in ppb (parts per billion).
14+
Should be a single cell.
1315
- gpios : From common gpio binding; gpio connection to clock enable pin.
1416
- clock-output-names : From common clock binding.
1517

@@ -18,4 +20,5 @@ Example:
1820
compatible = "fixed-clock";
1921
#clock-cells = <0>;
2022
clock-frequency = <1000000000>;
23+
clock-accuracy = <100>;
2124
};

‎Documentation/devicetree/bindings/clock/fixed-factor-clock.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ Example:
1919
compatible = "fixed-factor-clock";
2020
clocks = <&parentclk>;
2121
#clock-cells = <0>;
22-
div = <2>;
23-
mult = <1>;
22+
clock-div = <2>;
23+
clock-mult = <1>;
2424
};
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
* Hisilicon Hi3620 Clock Controller
2+
3+
The Hi3620 clock controller generates and supplies clock to various
4+
controllers within the Hi3620 SoC.
5+
6+
Required Properties:
7+
8+
- compatible: should be one of the following.
9+
- "hisilicon,hi3620-clock" - controller compatible with Hi3620 SoC.
10+
11+
- reg: physical base address of the controller and length of memory mapped
12+
region.
13+
14+
- #clock-cells: should be 1.
15+
16+
Each clock is assigned an identifier and client nodes use this identifier
17+
to specify the clock which they consume.
18+
19+
All these identifier could be found in <dt-bindings/clock/hi3620-clock.h>.

‎Documentation/devicetree/bindings/clock/keystone-pll.txt‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ Required properties:
1717
- reg - pll control0 and pll multipler registers
1818
- reg-names : control and multiplier. The multiplier is applicable only for
1919
main pll clock
20-
- fixed-postdiv : fixed post divider value
20+
- fixed-postdiv : fixed post divider value. If absent, use clkod register bits
21+
for postdiv
2122

2223
Example:
2324
mainpllclk: mainpllclk@2310110 {
2425
#clock-cells = <0>;
2526
compatible = "ti,keystone,main-pll-clock";
26-
clocks = <&refclkmain>;
27+
clocks = <&refclksys>;
2728
reg = <0x02620350 4>, <0x02310110 4>;
2829
reg-names = "control", "multiplier";
2930
fixed-postdiv = <2>;
@@ -32,11 +33,10 @@ Example:
3233
papllclk: papllclk@2620358 {
3334
#clock-cells = <0>;
3435
compatible = "ti,keystone,pll-clock";
35-
clocks = <&refclkmain>;
36+
clocks = <&refclkpass>;
3637
clock-output-names = "pa-pll-clk";
3738
reg = <0x02620358 4>;
3839
reg-names = "control";
39-
fixed-postdiv = <6>;
4040
};
4141

4242
Required properties:
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
Binding for Maxim MAX77686 32k clock generator block
2+
3+
This is a part of device tree bindings of MAX77686 multi-function device.
4+
More information can be found in bindings/mfd/max77686.txt file.
5+
6+
The MAX77686 contains three 32.768khz clock outputs that can be controlled
7+
(gated/ungated) over I2C.
8+
9+
Following properties should be presend in main device node of the MFD chip.
10+
11+
Required properties:
12+
- #clock-cells: simple one-cell clock specifier format is used, where the
13+
only cell is used as an index of the clock inside the provider. Following
14+
indices are allowed:
15+
- 0: 32khz_ap clock,
16+
- 1: 32khz_cp clock,
17+
- 2: 32khz_pmic clock.
18+
19+
Example: Node of the MFD chip
20+
21+
max77686: max77686@09 {
22+
compatible = "maxim,max77686";
23+
interrupt-parent = <&wakeup_eint>;
24+
interrupts = <26 0>;
25+
reg = <0x09>;
26+
#clock-cells = <1>;
27+
28+
/* ... */
29+
};
30+
31+
Example: Clock consumer node
32+
33+
foo@0 {
34+
compatible = "bar,foo";
35+
/* ... */
36+
clock-names = "my-clock";
37+
clocks = <&max77686 2>;
38+
};
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Qualcomm Global Clock & Reset Controller Binding
2+
------------------------------------------------
3+
4+
Required properties :
5+
- compatible : shall contain only one of the following:
6+
7+
"qcom,gcc-msm8660"
8+
"qcom,gcc-msm8960"
9+
"qcom,gcc-msm8974"
10+
11+
- reg : shall contain base register location and length
12+
- #clock-cells : shall contain 1
13+
- #reset-cells : shall contain 1
14+
15+
Example:
16+
clock-controller@900000 {
17+
compatible = "qcom,gcc-msm8960";
18+
reg = <0x900000 0x4000>;
19+
#clock-cells = <1>;
20+
#reset-cells = <1>;
21+
};

0 commit comments

Comments
 (0)