-
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.
clk: mxs: replace imx23 clk_register_clkdev with clock DT lookup
It really becomes a maintenance issue that every time a device needs to look up (clk_get) a clock we have to patch kernel clock file to call clk_register_clkdev for that clock. Since clock DT support which is meant to resolve clock lookup in device tree is in place, the patch moves imx23 client devices' clock lookup over to device tree, so that any new lookup to be added at later time can just get done in DT instead of kernel. Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
- Loading branch information
Shawn Guo
committed
Sep 11, 2012
1 parent
b598b9f
commit 53f9443
Showing
3 changed files
with
100 additions
and
47 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,76 @@ | ||
* Clock bindings for Freescale i.MX23 | ||
|
||
Required properties: | ||
- compatible: Should be "fsl,imx23-clkctrl" | ||
- reg: Address and length of the register set | ||
- #clock-cells: Should be <1> | ||
|
||
The clock consumer should specify the desired clock by having the clock | ||
ID in its "clocks" phandle cell. The following is a full list of i.MX23 | ||
clocks and IDs. | ||
|
||
Clock ID | ||
------------------ | ||
ref_xtal 0 | ||
pll 1 | ||
ref_cpu 2 | ||
ref_emi 3 | ||
ref_pix 4 | ||
ref_io 5 | ||
saif_sel 6 | ||
lcdif_sel 7 | ||
gpmi_sel 8 | ||
ssp_sel 9 | ||
emi_sel 10 | ||
cpu 11 | ||
etm_sel 12 | ||
cpu_pll 13 | ||
cpu_xtal 14 | ||
hbus 15 | ||
xbus 16 | ||
lcdif_div 17 | ||
ssp_div 18 | ||
gpmi_div 19 | ||
emi_pll 20 | ||
emi_xtal 21 | ||
etm_div 22 | ||
saif_div 23 | ||
clk32k_div 24 | ||
rtc 25 | ||
adc 26 | ||
spdif_div 27 | ||
clk32k 28 | ||
dri 29 | ||
pwm 30 | ||
filt 31 | ||
uart 32 | ||
ssp 33 | ||
gpmi 34 | ||
spdif 35 | ||
emi 36 | ||
saif 37 | ||
lcdif 38 | ||
etm 39 | ||
usb 40 | ||
usb_pwr 41 | ||
|
||
Examples: | ||
|
||
clks: clkctrl@80040000 { | ||
compatible = "fsl,imx23-clkctrl"; | ||
reg = <0x80040000 0x2000>; | ||
#clock-cells = <1>; | ||
clock-output-names = | ||
... | ||
"uart", /* 32 */ | ||
... | ||
"end_of_list"; | ||
}; | ||
|
||
auart0: serial@8006c000 { | ||
compatible = "fsl,imx23-auart"; | ||
reg = <0x8006c000 0x2000>; | ||
interrupts = <24 25 23>; | ||
clocks = <&clks 32>; | ||
status = "disabled"; | ||
}; |
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