aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Cartwright <joshc@codeaurora.org>2014-03-12 13:17:24 -0400
committerLee Jones <lee.jones@linaro.org>2014-03-31 08:32:32 -0400
commit5de5b2d5b83124855137a5127d772dc712f26290 (patch)
tree7eb41002f406e5a7ab99a020126eafffd30ba895
parent204747c970c0d568721c76ab8a57dde0e5dcf0d5 (diff)
mfd: devicetree: bindings: Add pm8xxx RTC description
The PM8xxx family of PMICs contain an RTC. This RTC is described as a subnode of the PM8xxx. Document these bindings, and replace the pwrkey node in the example with the RTC, which is now described in this document. While we're here, add a short description to the device tree bindings describing what the the PM8xxx devices are and how they are expected to be used. Signed-off-by: Josh Cartwright <joshc@codeaurora.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r--Documentation/devicetree/bindings/mfd/qcom,pm8xxx.txt45
1 files changed, 39 insertions, 6 deletions
diff --git a/Documentation/devicetree/bindings/mfd/qcom,pm8xxx.txt b/Documentation/devicetree/bindings/mfd/qcom,pm8xxx.txt
index e3fe625ffd58..03518dc8b6bd 100644
--- a/Documentation/devicetree/bindings/mfd/qcom,pm8xxx.txt
+++ b/Documentation/devicetree/bindings/mfd/qcom,pm8xxx.txt
@@ -1,6 +1,9 @@
1Qualcomm PM8xxx PMIC multi-function devices 1Qualcomm PM8xxx PMIC multi-function devices
2 2
3PROPERTIES 3The PM8xxx family of Power Management ICs are used to provide regulated
4voltages and other various functionality to Qualcomm SoCs.
5
6= PROPERTIES
4 7
5- compatible: 8- compatible:
6 Usage: required 9 Usage: required
@@ -45,7 +48,37 @@ PROPERTIES
45 Value type: <empty> 48 Value type: <empty>
46 Definition: identifies this node as an interrupt controller 49 Definition: identifies this node as an interrupt controller
47 50
48EXAMPLE 51= SUBCOMPONENTS
52
53The PMIC contains multiple independent functions, each described in a subnode.
54The below bindings specify the set of valid subnodes.
55
56== Real-Time Clock
57
58- compatible:
59 Usage: required
60 Value type: <string>
61 Definition: must be one of:
62 "qcom,pm8058-rtc"
63 "qcom,pm8921-rtc"
64
65- reg:
66 Usage: required
67 Value type: <prop-encoded-array>
68 Definition: single entry specifying the base address of the RTC registers
69
70- interrupts:
71 Usage: required
72 Value type: <prop-encoded-array>
73 Definition: single entry specifying the RTC's alarm interrupt
74
75- allow-set-time:
76 Usage: optional
77 Value type: <empty>
78 Definition: indicates that the setting of RTC time is allowed by
79 the host CPU
80
81= EXAMPLE
49 82
50 pmicintc: pmic@0 { 83 pmicintc: pmic@0 {
51 compatible = "qcom,pm8921"; 84 compatible = "qcom,pm8921";
@@ -55,9 +88,9 @@ EXAMPLE
55 #address-cells = <1>; 88 #address-cells = <1>;
56 #size-cells = <0>; 89 #size-cells = <0>;
57 90
58 pwrkey { 91 rtc@11d {
59 compatible = "qcom,pm8921-pwrkey"; 92 compatible = "qcom,pm8921-rtc";
60 interrupt-parent = <&pmicintc>; 93 reg = <0x11d>;
61 interrupts = <50 1>, <51 1>; 94 interrupts = <0x27 0>;
62 }; 95 };
63 }; 96 };