]> git.karo-electronics.de Git - karo-tx-linux.git/blob - Documentation/devicetree/bindings/mfd/qcom,pm8xxx.txt
mfd: devicetree: bindings: Document PM8921/8058 PMICs
[karo-tx-linux.git] / Documentation / devicetree / bindings / mfd / qcom,pm8xxx.txt
1 Qualcomm PM8xxx PMIC multi-function devices
2
3 PROPERTIES
4
5 - compatible:
6         Usage: required
7         Value type: <string>
8         Definition: must be one of:
9                     "qcom,pm8058"
10                     "qcom,pm8921"
11
12 - #address-cells:
13         Usage: required
14         Value type: <u32>
15         Definition: must be 1
16
17 - #size-cells:
18         Usage: required
19         Value type: <u32>
20         Definition: must be 0
21
22 - interrupts:
23         Usage: required
24         Value type: <prop-encoded-array>
25         Definition: specifies the interrupt that indicates a subdevice
26                     has generated an interrupt (summary interrupt). The
27                     format of the specifier is defined by the binding document
28                     describing the node's interrupt parent.
29
30 - #interrupt-cells:
31         Usage: required
32         Value type : <u32>
33         Definition: must be 2. Specifies the number of cells needed to encode
34                     an interrupt source. The 1st cell contains the interrupt
35                     number. The 2nd cell is the trigger type and level flags
36                     encoded as follows:
37
38                         1 = low-to-high edge triggered
39                         2 = high-to-low edge triggered
40                         4 = active high level-sensitive
41                         8 = active low level-sensitive
42
43 - interrupt-controller:
44         Usage: required
45         Value type: <empty>
46         Definition: identifies this node as an interrupt controller
47
48 EXAMPLE
49
50         pmicintc: pmic@0 {
51                 compatible = "qcom,pm8921";
52                 interrupts = <104 8>;
53                 #interrupt-cells = <2>;
54                 interrupt-controller;
55                 #address-cells = <1>;
56                 #size-cells = <0>;
57
58                 pwrkey {
59                         compatible = "qcom,pm8921-pwrkey";
60                         interrupt-parent = <&pmicintc>;
61                         interrupts = <50 1>, <51 1>;
62                 };
63         };