blob: 9e5eba4a4f0d0ab8387c103007079702a6d278bd [file] [log] [blame]
Stephen Boydcd0c1f82014-02-26 10:59:26 -08001Qualcomm PM8xxx PMIC multi-function devices
2
Josh Cartwright5de5b2d2014-03-12 12:17:24 -05003The PM8xxx family of Power Management ICs are used to provide regulated
4voltages and other various functionality to Qualcomm SoCs.
5
6= PROPERTIES
Stephen Boydcd0c1f82014-02-26 10:59:26 -08007
8- compatible:
9 Usage: required
10 Value type: <string>
11 Definition: must be one of:
12 "qcom,pm8058"
Srinivas Kandagatla953f4322016-11-15 12:01:51 +000013 "qcom,pm8821"
Stephen Boydcd0c1f82014-02-26 10:59:26 -080014 "qcom,pm8921"
15
16- #address-cells:
17 Usage: required
18 Value type: <u32>
19 Definition: must be 1
20
21- #size-cells:
22 Usage: required
23 Value type: <u32>
24 Definition: must be 0
25
26- interrupts:
27 Usage: required
28 Value type: <prop-encoded-array>
29 Definition: specifies the interrupt that indicates a subdevice
30 has generated an interrupt (summary interrupt). The
31 format of the specifier is defined by the binding document
32 describing the node's interrupt parent.
33
34- #interrupt-cells:
35 Usage: required
36 Value type : <u32>
37 Definition: must be 2. Specifies the number of cells needed to encode
38 an interrupt source. The 1st cell contains the interrupt
39 number. The 2nd cell is the trigger type and level flags
40 encoded as follows:
41
42 1 = low-to-high edge triggered
43 2 = high-to-low edge triggered
44 4 = active high level-sensitive
45 8 = active low level-sensitive
46
47- interrupt-controller:
48 Usage: required
49 Value type: <empty>
50 Definition: identifies this node as an interrupt controller
51
Josh Cartwright5de5b2d2014-03-12 12:17:24 -050052= SUBCOMPONENTS
53
54The PMIC contains multiple independent functions, each described in a subnode.
55The below bindings specify the set of valid subnodes.
56
57== Real-Time Clock
58
59- compatible:
60 Usage: required
61 Value type: <string>
62 Definition: must be one of:
63 "qcom,pm8058-rtc"
64 "qcom,pm8921-rtc"
Stanimir Varbanova5669e42014-09-23 16:52:40 +030065 "qcom,pm8941-rtc"
Neil Armstrong08655bc2016-08-11 15:16:44 +020066 "qcom,pm8018-rtc"
Josh Cartwright5de5b2d2014-03-12 12:17:24 -050067
68- reg:
69 Usage: required
70 Value type: <prop-encoded-array>
71 Definition: single entry specifying the base address of the RTC registers
72
73- interrupts:
74 Usage: required
75 Value type: <prop-encoded-array>
76 Definition: single entry specifying the RTC's alarm interrupt
77
78- allow-set-time:
79 Usage: optional
80 Value type: <empty>
81 Definition: indicates that the setting of RTC time is allowed by
82 the host CPU
83
84= EXAMPLE
Stephen Boydcd0c1f82014-02-26 10:59:26 -080085
86 pmicintc: pmic@0 {
87 compatible = "qcom,pm8921";
88 interrupts = <104 8>;
89 #interrupt-cells = <2>;
90 interrupt-controller;
91 #address-cells = <1>;
92 #size-cells = <0>;
93
Josh Cartwright5de5b2d2014-03-12 12:17:24 -050094 rtc@11d {
95 compatible = "qcom,pm8921-rtc";
96 reg = <0x11d>;
97 interrupts = <0x27 0>;
Stephen Boydcd0c1f82014-02-26 10:59:26 -080098 };
99 };