blob: 0c3d6015868d94d460bcadc4648a43560c5ad27d [file] [log] [blame]
Padmavathi Venna1241ef92013-06-18 00:02:17 +09001* 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 Exynos SoCs. The clock
Sachin Kamat30abda12013-07-12 08:53:43 +05305binding described here is applicable to all SoCs in Exynos family.
Padmavathi Venna1241ef92013-06-18 00:02:17 +09006
7Required Properties:
8
9- compatible: should be one of the following:
10 - "samsung,exynos4210-audss-clock" - controller compatible with all Exynos4 SoCs.
Andrew Bresticker3538a2c2013-09-25 14:12:51 -070011 - "samsung,exynos5250-audss-clock" - controller compatible with Exynos5250
12 SoCs.
Sylwester Nawrocki2ec865b2016-09-02 18:47:45 +020013 - "samsung,exynos5410-audss-clock" - controller compatible with Exynos5410
14 SoCs.
Andrew Bresticker3538a2c2013-09-25 14:12:51 -070015 - "samsung,exynos5420-audss-clock" - controller compatible with Exynos5420
16 SoCs.
Padmavathi Venna1241ef92013-06-18 00:02:17 +090017- reg: physical base address and length of the controller's register set.
18
19- #clock-cells: should be 1.
20
Andrew Bresticker547f3352013-09-25 14:12:48 -070021- clocks:
22 - pll_ref: Fixed rate PLL reference clock, parent of mout_audss. "fin_pll"
23 is used if not specified.
24 - pll_in: Input PLL to the AudioSS block, parent of mout_audss. "fout_epll"
25 is used if not specified.
26 - cdclk: External i2s clock, parent of mout_i2s. "cdclk0" is used if not
27 specified.
28 - sclk_audio: Audio bus clock, parent of mout_i2s. "sclk_audio0" is used if
29 not specified.
30 - sclk_pcm_in: PCM clock, parent of sclk_pcm. "sclk_pcm0" is used if not
31 specified.
32
33- clock-names: Aliases for the above clocks. They should be "pll_ref",
34 "pll_in", "cdclk", "sclk_audio", and "sclk_pcm_in" respectively.
35
Padmavathi Venna1241ef92013-06-18 00:02:17 +090036The following is the list of clocks generated by the controller. Each clock is
37assigned an identifier and client nodes use this identifier to specify the
38clock which they consume. Some of the clocks are available only on a particular
39Exynos4 SoC and this is specified where applicable.
40
41Provided clocks:
42
43Clock ID SoC (if specific)
44-----------------------------------------------
45
46mout_audss 0
47mout_i2s 1
48dout_srp 2
49dout_aud_bus 3
50dout_i2s 4
51srp_clk 5
52i2s_bus 6
53sclk_i2s 7
54pcm_bus 8
55sclk_pcm 9
Andrew Bresticker3538a2c2013-09-25 14:12:51 -070056adma 10 Exynos5420
Padmavathi Venna1241ef92013-06-18 00:02:17 +090057
Andrew Bresticker547f3352013-09-25 14:12:48 -070058Example 1: An example of a clock controller node using the default input
59 clock names is listed below.
Padmavathi Venna1241ef92013-06-18 00:02:17 +090060
61clock_audss: audss-clock-controller@3810000 {
62 compatible = "samsung,exynos5250-audss-clock";
63 reg = <0x03810000 0x0C>;
64 #clock-cells = <1>;
65};
66
Andrew Bresticker547f3352013-09-25 14:12:48 -070067Example 2: An example of a clock controller node with the input clocks
68 specified.
69
70clock_audss: audss-clock-controller@3810000 {
71 compatible = "samsung,exynos5250-audss-clock";
72 reg = <0x03810000 0x0C>;
73 #clock-cells = <1>;
74 clocks = <&clock 1>, <&clock 7>, <&clock 138>, <&clock 160>,
75 <&ext_i2s_clk>;
76 clock-names = "pll_ref", "pll_in", "sclk_audio", "sclk_pcm_in", "cdclk";
77};
78
79Example 3: I2S controller node that consumes the clock generated by the clock
Padmavathi Venna1241ef92013-06-18 00:02:17 +090080 controller. Refer to the standard clock bindings for information
81 about 'clocks' and 'clock-names' property.
82
83i2s0: i2s@03830000 {
84 compatible = "samsung,i2s-v5";
85 reg = <0x03830000 0x100>;
86 dmas = <&pdma0 10
87 &pdma0 9
88 &pdma0 8>;
89 dma-names = "tx", "rx", "tx-sec";
90 clocks = <&clock_audss EXYNOS_I2S_BUS>,
91 <&clock_audss EXYNOS_I2S_BUS>,
92 <&clock_audss EXYNOS_SCLK_I2S>,
93 <&clock_audss EXYNOS_MOUT_AUDSS>,
94 <&clock_audss EXYNOS_MOUT_I2S>;
95 clock-names = "iis", "i2s_opclk0", "i2s_opclk1",
Sylwester Nawrocki2ec865b2016-09-02 18:47:45 +020096 "mout_audss", "mout_i2s";
Padmavathi Venna1241ef92013-06-18 00:02:17 +090097};