blob: 9c40739a661a835af3658af49f183ef98354bbc1 [file] [log] [blame]
Tomasz Figab06c6982013-12-12 17:07:20 +01001Binding for Maxim MAX77686 32k clock generator block
2
3This is a part of device tree bindings of MAX77686 multi-function device.
4More information can be found in bindings/mfd/max77686.txt file.
5
6The MAX77686 contains three 32.768khz clock outputs that can be controlled
7(gated/ungated) over I2C.
8
9Following properties should be presend in main device node of the MFD chip.
10
11Required properties:
Javier Martinez Canillasfcd08642014-08-18 10:33:02 +020012
13- #clock-cells: from common clock binding; shall be set to 1.
14
15Optional properties:
16- clock-output-names: From common clock binding.
17
18Each clock is assigned an identifier and client nodes can use this identifier
19to specify the clock which they consume. Following indices are allowed:
Tomasz Figab06c6982013-12-12 17:07:20 +010020 - 0: 32khz_ap clock,
21 - 1: 32khz_cp clock,
22 - 2: 32khz_pmic clock.
23
Javier Martinez Canillasfcd08642014-08-18 10:33:02 +020024Clocks are defined as preprocessor macros in dt-bindings/clock/maxim,max77686.h
25header and can be used in device tree sources.
26
Tomasz Figab06c6982013-12-12 17:07:20 +010027Example: Node of the MFD chip
28
29 max77686: max77686@09 {
30 compatible = "maxim,max77686";
31 interrupt-parent = <&wakeup_eint>;
32 interrupts = <26 0>;
33 reg = <0x09>;
34 #clock-cells = <1>;
35
36 /* ... */
37 };
38
39Example: Clock consumer node
40
41 foo@0 {
42 compatible = "bar,foo";
43 /* ... */
44 clock-names = "my-clock";
Javier Martinez Canillasfcd08642014-08-18 10:33:02 +020045 clocks = <&max77686 MAX77686_CLK_PMIC>;
Tomasz Figab06c6982013-12-12 17:07:20 +010046 };