aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorTomasz Figa <t.figa@samsung.com>2014-07-02 13:28:27 -0400
committerKukjin Kim <kgene.kim@samsung.com>2014-07-18 15:25:08 -0400
commit9978f28f695adb63fa1726744a7f95e12920e8c9 (patch)
treeb235bb8bc00105038d8b15dfca69d076586279cd /Documentation
parent32726d2d5502302ba5753854f5f2f12ba22681c4 (diff)
clk: samsung: Add S5PV210 Audio Subsystem clock driver
This patch adds a driver for clock controller being a part of Audio Subsystem present on S5PV210 and compatible SoCs. It is used to provide clocks for other IP blocks of this subsystem. Signed-off-by: Tomasz Figa <t.figa@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/clock/clk-s5pv210-audss.txt53
1 files changed, 53 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/clock/clk-s5pv210-audss.txt b/Documentation/devicetree/bindings/clock/clk-s5pv210-audss.txt
new file mode 100644
index 000000000000..4fc869b69d4a
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/clk-s5pv210-audss.txt
@@ -0,0 +1,53 @@
1* Samsung Audio Subsystem Clock Controller
2
3The Samsung Audio Subsystem clock controller generates and supplies clocks
4to Audio Subsystem block available in the S5PV210 and compatible SoCs.
5
6Required Properties:
7
8- compatible: should be "samsung,s5pv210-audss-clock".
9- reg: physical base address and length of the controller's register set.
10
11- #clock-cells: should be 1.
12
13- clocks:
14 - hclk: AHB bus clock of the Audio Subsystem.
15 - xxti: Optional fixed rate PLL reference clock, parent of mout_audss. If
16 not specified (i.e. xusbxti is used for PLL reference), it is fixed to
17 a clock named "xxti".
18 - fout_epll: Input PLL to the AudioSS block, parent of mout_audss.
19 - iiscdclk0: Optional external i2s clock, parent of mout_i2s. If not
20 specified, it is fixed to a clock named "iiscdclk0".
21 - sclk_audio0: Audio bus clock, parent of mout_i2s.
22
23- clock-names: Aliases for the above clocks. They should be "hclk",
24 "xxti", "fout_epll", "iiscdclk0", and "sclk_audio0" respectively.
25
26All available clocks are defined as preprocessor macros in
27dt-bindings/clock/s5pv210-audss-clk.h header and can be used in device
28tree sources.
29
30Example: Clock controller node.
31
32 clk_audss: clock-controller@c0900000 {
33 compatible = "samsung,s5pv210-audss-clock";
34 reg = <0xc0900000 0x1000>;
35 #clock-cells = <1>;
36 clock-names = "hclk", "xxti",
37 "fout_epll", "sclk_audio0";
38 clocks = <&clocks DOUT_HCLKP>, <&xxti>,
39 <&clocks FOUT_EPLL>, <&clocks SCLK_AUDIO0>;
40 };
41
42Example: I2S controller node that consumes the clock generated by the clock
43 controller. Refer to the standard clock bindings for information
44 about 'clocks' and 'clock-names' property.
45
46 i2s0: i2s@03830000 {
47 /* ... */
48 clock-names = "iis", "i2s_opclk0",
49 "i2s_opclk1";
50 clocks = <&clk_audss CLK_I2S>, <&clk_audss CLK_I2S>,
51 <&clk_audss CLK_DOUT_AUD_BUS>;
52 /* ... */
53 };