xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/clock/samsung,s2mps11.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunBinding for Samsung S2M and S5M family clock generator block
2*4882a593Smuzhiyun============================================================
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunThis is a part of device tree bindings for S2M and S5M family multi-function
5*4882a593Smuzhiyundevices.
6*4882a593SmuzhiyunMore information can be found in bindings/mfd/sec-core.txt file.
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunThe S2MPS11/13/15 and S5M8767 provide three(AP/CP/BT) buffered 32.768 kHz
9*4882a593Smuzhiyunoutputs. The S2MPS14 provides two (AP/BT) buffered 32.768 KHz outputs.
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunTo register these as clocks with common clock framework instantiate under
12*4882a593Smuzhiyunmain device node a sub-node named "clocks".
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunIt uses the common clock binding documented in:
15*4882a593Smuzhiyun - Documentation/devicetree/bindings/clock/clock-bindings.txt
16*4882a593Smuzhiyun
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunRequired properties of the "clocks" sub-node:
19*4882a593Smuzhiyun - #clock-cells: should be 1.
20*4882a593Smuzhiyun - compatible: Should be one of: "samsung,s2mps11-clk", "samsung,s2mps13-clk",
21*4882a593Smuzhiyun               "samsung,s2mps14-clk", "samsung,s5m8767-clk"
22*4882a593Smuzhiyun   The S2MPS15 uses the same compatible as S2MPS13, as both provides similar
23*4882a593Smuzhiyun   clocks.
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun
26*4882a593SmuzhiyunEach clock is assigned an identifier and client nodes use this identifier
27*4882a593Smuzhiyunto specify the clock which they consume.
28*4882a593Smuzhiyun    Clock               ID           Devices
29*4882a593Smuzhiyun    ----------------------------------------------------------
30*4882a593Smuzhiyun    32KhzAP		0            S2MPS11/13/14/15, S5M8767
31*4882a593Smuzhiyun    32KhzCP		1            S2MPS11/13/15, S5M8767
32*4882a593Smuzhiyun    32KhzBT		2            S2MPS11/13/14/15, S5M8767
33*4882a593Smuzhiyun
34*4882a593SmuzhiyunInclude dt-bindings/clock/samsung,s2mps11.h file to use preprocessor defines
35*4882a593Smuzhiyunin device tree sources.
36*4882a593Smuzhiyun
37*4882a593Smuzhiyun
38*4882a593SmuzhiyunExample:
39*4882a593Smuzhiyun
40*4882a593Smuzhiyun	s2mps11_pmic@66 {
41*4882a593Smuzhiyun		compatible = "samsung,s2mps11-pmic";
42*4882a593Smuzhiyun		reg = <0x66>;
43*4882a593Smuzhiyun
44*4882a593Smuzhiyun		s2m_osc: clocks {
45*4882a593Smuzhiyun			compatible = "samsung,s2mps11-clk";
46*4882a593Smuzhiyun			#clock-cells = <1>;
47*4882a593Smuzhiyun			clock-output-names = "xx", "yy", "zz";
48*4882a593Smuzhiyun		};
49*4882a593Smuzhiyun	};
50