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