-
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-3.15' of git://git.linaro.org/people/mike.tu…
…rquette/linux Pull clock framework changes from Mike Turquette: "The clock framework changes for 3.15 look similar to past pull requests. Mostly clock driver updates, more Device Tree support in the form of common functions useful across platforms and a handful of features and fixes to the framework core" * tag 'clk-for-linus-3.15' of git://git.linaro.org/people/mike.turquette/linux: (86 commits) clk: shmobile: fix setting paretn clock rate clk: shmobile: rcar-gen2: fix lb/sd0/sd1/sdh clock parent to pll1 clk: Fix minor errors in of_clk_init() function comments clk: reverse default clk provider initialization order in of_clk_init() clk: sirf: update copyright years to 2014 clk: mmp: try to use closer one when do round rate clk: mmp: fix the wrong calculation formula clk: mmp: fix wrong mask when calculate denominator clk: st: Adds quadfs clock binding clk: st: Adds clockgen-vcc and clockgen-mux clock binding clk: st: Adds clockgen clock binding clk: st: Adds divmux and prediv clock binding clk: st: Support for A9 MUX clocks clk: st: Support for ClockGenA9/DDR/GPU clk: st: Support for QUADFS inside ClockGenB/C/D/E/F clk: st: Support for VCC-mux and MUX clocks clk: st: Support for PLLs inside ClockGenA(s) clk: st: Support for DIVMUX and PreDiv Clocks clk: support hardware-specific debugfs entries clk: s2mps11: Use of_get_child_by_name ...
- Loading branch information
Showing
74 changed files
with
5,882 additions
and
733 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
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
48 changes: 48 additions & 0 deletions
48
Documentation/devicetree/bindings/clock/moxa,moxart-clock.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,48 @@ | ||
Device Tree Clock bindings for arch-moxart | ||
|
||
This binding uses the common clock binding[1]. | ||
|
||
[1] Documentation/devicetree/bindings/clock/clock-bindings.txt | ||
|
||
MOXA ART SoCs allow to determine PLL output and APB frequencies | ||
by reading registers holding multiplier and divisor information. | ||
|
||
|
||
PLL: | ||
|
||
Required properties: | ||
- compatible : Must be "moxa,moxart-pll-clock" | ||
- #clock-cells : Should be 0 | ||
- reg : Should contain registers location and length | ||
- clocks : Should contain phandle + clock-specifier for the parent clock | ||
|
||
Optional properties: | ||
- clock-output-names : Should contain clock name | ||
|
||
|
||
APB: | ||
|
||
Required properties: | ||
- compatible : Must be "moxa,moxart-apb-clock" | ||
- #clock-cells : Should be 0 | ||
- reg : Should contain registers location and length | ||
- clocks : Should contain phandle + clock-specifier for the parent clock | ||
|
||
Optional properties: | ||
- clock-output-names : Should contain clock name | ||
|
||
|
||
For example: | ||
|
||
clk_pll: clk_pll@98100000 { | ||
compatible = "moxa,moxart-pll-clock"; | ||
#clock-cells = <0>; | ||
reg = <0x98100000 0x34>; | ||
}; | ||
|
||
clk_apb: clk_apb@98100000 { | ||
compatible = "moxa,moxart-apb-clock"; | ||
#clock-cells = <0>; | ||
reg = <0x98100000 0x34>; | ||
clocks = <&clk_pll>; | ||
}; |
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
29 changes: 29 additions & 0 deletions
29
Documentation/devicetree/bindings/clock/renesas,rz-cpg-clocks.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,29 @@ | ||
* Renesas RZ Clock Pulse Generator (CPG) | ||
|
||
The CPG generates core clocks for the RZ SoCs. It includes the PLL, variable | ||
CPU and GPU clocks, and several fixed ratio dividers. | ||
|
||
Required Properties: | ||
|
||
- compatible: Must be one of | ||
- "renesas,r7s72100-cpg-clocks" for the r7s72100 CPG | ||
- "renesas,rz-cpg-clocks" for the generic RZ CPG | ||
- reg: Base address and length of the memory resource used by the CPG | ||
- clocks: References to possible parent clocks. Order must match clock modes | ||
in the datasheet. For the r7s72100, this is extal, usb_x1. | ||
- #clock-cells: Must be 1 | ||
- clock-output-names: The names of the clocks. Supported clocks are "pll", | ||
"i", and "g" | ||
|
||
|
||
Example | ||
------- | ||
|
||
cpg_clocks: cpg_clocks@fcfe0000 { | ||
#clock-cells = <1>; | ||
compatible = "renesas,r7s72100-cpg-clocks", | ||
"renesas,rz-cpg-clocks"; | ||
reg = <0xfcfe0000 0x18>; | ||
clocks = <&extal_clk>, <&usb_x1_clk>; | ||
clock-output-names = "pll", "i", "g"; | ||
}; |
49 changes: 49 additions & 0 deletions
49
Documentation/devicetree/bindings/clock/st/st,clkgen-divmux.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,49 @@ | ||
Binding for a ST divider and multiplexer clock driver. | ||
|
||
This binding uses the common clock binding[1]. | ||
Base address is located to the parent node. See clock binding[2] | ||
|
||
[1] Documentation/devicetree/bindings/clock/clock-bindings.txt | ||
[2] Documentation/devicetree/bindings/clock/st/st,clkgen.txt | ||
|
||
Required properties: | ||
|
||
- compatible : shall be: | ||
"st,clkgena-divmux-c65-hs", "st,clkgena-divmux" | ||
"st,clkgena-divmux-c65-ls", "st,clkgena-divmux" | ||
"st,clkgena-divmux-c32-odf0", "st,clkgena-divmux" | ||
"st,clkgena-divmux-c32-odf1", "st,clkgena-divmux" | ||
"st,clkgena-divmux-c32-odf2", "st,clkgena-divmux" | ||
"st,clkgena-divmux-c32-odf3", "st,clkgena-divmux" | ||
|
||
- #clock-cells : From common clock binding; shall be set to 1. | ||
|
||
- clocks : From common clock binding | ||
|
||
- clock-output-names : From common clock binding. | ||
|
||
Example: | ||
|
||
clockgenA@fd345000 { | ||
reg = <0xfd345000 0xb50>; | ||
|
||
CLK_M_A1_DIV1: CLK_M_A1_DIV1 { | ||
#clock-cells = <1>; | ||
compatible = "st,clkgena-divmux-c32-odf1", | ||
"st,clkgena-divmux"; | ||
|
||
clocks = <&CLK_M_A1_OSC_PREDIV>, | ||
<&CLK_M_A1_PLL0 1>, /* PLL0 PHI1 */ | ||
<&CLK_M_A1_PLL1 1>; /* PLL1 PHI1 */ | ||
|
||
clock-output-names = "CLK_M_RX_ICN_TS", | ||
"CLK_M_RX_ICN_VDP_0", | ||
"", /* Unused */ | ||
"CLK_M_PRV_T1_BUS", | ||
"CLK_M_ICN_REG_12", | ||
"CLK_M_ICN_REG_10", | ||
"", /* Unused */ | ||
"CLK_M_ICN_ST231"; | ||
}; | ||
}; | ||
|
36 changes: 36 additions & 0 deletions
36
Documentation/devicetree/bindings/clock/st/st,clkgen-mux.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,36 @@ | ||
Binding for a ST multiplexed clock driver. | ||
|
||
This binding supports only simple indexed multiplexers, it does not | ||
support table based parent index to hardware value translations. | ||
|
||
This binding uses the common clock binding[1]. | ||
|
||
[1] Documentation/devicetree/bindings/clock/clock-bindings.txt | ||
|
||
Required properties: | ||
|
||
- compatible : shall be: | ||
"st,stih416-clkgenc-vcc-hd", "st,clkgen-mux" | ||
"st,stih416-clkgenf-vcc-fvdp", "st,clkgen-mux" | ||
"st,stih416-clkgenf-vcc-hva", "st,clkgen-mux" | ||
"st,stih416-clkgenf-vcc-hd", "st,clkgen-mux" | ||
"st,stih416-clkgenf-vcc-sd", "st,clkgen-mux" | ||
"st,stih415-clkgen-a9-mux", "st,clkgen-mux" | ||
"st,stih416-clkgen-a9-mux", "st,clkgen-mux" | ||
|
||
|
||
- #clock-cells : from common clock binding; shall be set to 0. | ||
|
||
- reg : A Base address and length of the register set. | ||
|
||
- clocks : from common clock binding | ||
|
||
Example: | ||
|
||
CLK_M_HVA: CLK_M_HVA { | ||
#clock-cells = <0>; | ||
compatible = "st,stih416-clkgenf-vcc-hva", "st,clkgen-mux"; | ||
reg = <0xfd690868 4>; | ||
|
||
clocks = <&CLOCKGEN_F 1>, <&CLK_M_A1_DIV0 3>; | ||
}; |
Oops, something went wrong.