-
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.
The OMAP clock driver now supports DPLL clock type. This patch also adds support for DT DPLL nodes. Signed-off-by: Tero Kristo <t-kristo@ti.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Mike Turquette <mturquette@linaro.org>
- Loading branch information
Tero Kristo
authored and
Mike Turquette
committed
Jan 17, 2014
1 parent
819b486
commit f38b0dd
Showing
6 changed files
with
807 additions
and
165 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
Binding for Texas Instruments DPLL clock. | ||
|
||
Binding status: Unstable - ABI compatibility may be broken in the future | ||
|
||
This binding uses the common clock binding[1]. It assumes a | ||
register-mapped DPLL with usually two selectable input clocks | ||
(reference clock and bypass clock), with digital phase locked | ||
loop logic for multiplying the input clock to a desired output | ||
clock. This clock also typically supports different operation | ||
modes (locked, low power stop etc.) This binding has several | ||
sub-types, which effectively result in slightly different setup | ||
for the actual DPLL clock. | ||
|
||
[1] Documentation/devicetree/bindings/clock/clock-bindings.txt | ||
|
||
Required properties: | ||
- compatible : shall be one of: | ||
"ti,omap3-dpll-clock", | ||
"ti,omap3-dpll-core-clock", | ||
"ti,omap3-dpll-per-clock", | ||
"ti,omap3-dpll-per-j-type-clock", | ||
"ti,omap4-dpll-clock", | ||
"ti,omap4-dpll-x2-clock", | ||
"ti,omap4-dpll-core-clock", | ||
"ti,omap4-dpll-m4xen-clock", | ||
"ti,omap4-dpll-j-type-clock", | ||
"ti,am3-dpll-no-gate-clock", | ||
"ti,am3-dpll-j-type-clock", | ||
"ti,am3-dpll-no-gate-j-type-clock", | ||
"ti,am3-dpll-clock", | ||
"ti,am3-dpll-core-clock", | ||
"ti,am3-dpll-x2-clock", | ||
|
||
- #clock-cells : from common clock binding; shall be set to 0. | ||
- clocks : link phandles of parent clocks, first entry lists reference clock | ||
and second entry bypass clock | ||
- reg : offsets for the register set for controlling the DPLL. | ||
Registers are listed in following order: | ||
"control" - contains the control register base address | ||
"idlest" - contains the idle status register base address | ||
"mult-div1" - contains the multiplier / divider register base address | ||
"autoidle" - contains the autoidle register base address (optional) | ||
ti,am3-* dpll types do not have autoidle register | ||
|
||
Optional properties: | ||
- DPLL mode setting - defining any one or more of the following overrides | ||
default setting. | ||
- ti,low-power-stop : DPLL supports low power stop mode, gating output | ||
- ti,low-power-bypass : DPLL output matches rate of parent bypass clock | ||
- ti,lock : DPLL locks in programmed rate | ||
|
||
Examples: | ||
dpll_core_ck: dpll_core_ck@44e00490 { | ||
#clock-cells = <0>; | ||
compatible = "ti,omap4-dpll-core-clock"; | ||
clocks = <&sys_clkin_ck>, <&sys_clkin_ck>; | ||
reg = <0x490>, <0x45c>, <0x488>, <0x468>; | ||
}; | ||
|
||
dpll2_ck: dpll2_ck@48004004 { | ||
#clock-cells = <0>; | ||
compatible = "ti,omap3-dpll-clock"; | ||
clocks = <&sys_ck>, <&dpll2_fck>; | ||
ti,low-power-stop; | ||
ti,low-power-bypass; | ||
ti,lock; | ||
reg = <0x4>, <0x24>, <0x34>, <0x40>; | ||
}; | ||
|
||
dpll_core_ck: dpll_core_ck@44e00490 { | ||
#clock-cells = <0>; | ||
compatible = "ti,am3-dpll-core-clock"; | ||
clocks = <&sys_clkin_ck>, <&sys_clkin_ck>; | ||
reg = <0x90>, <0x5c>, <0x68>; | ||
}; |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
ifneq ($(CONFIG_OF),) | ||
obj-y += clk.o | ||
clk-common = dpll.o | ||
endif |
Oops, something went wrong.