aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree
diff options
context:
space:
mode:
authorStanimir Varbanov <svarbanov@mm-sol.com>2014-08-01 10:30:49 -0400
committerLee Jones <lee.jones@linaro.org>2014-09-26 03:24:00 -0400
commitab27c44754964aedd9f9ba74326d74e5e2a3c74f (patch)
treec5fd5575520616e1afc8002e7172c8019d05aa20 /Documentation/devicetree
parentc3a973a770a122a5ec9a9b827ae25c00f56b3e47 (diff)
mfd: Document DT bindings for Qualcomm SPMI PMICs
Document DT bindings used to describe the Qualcomm SPMI PMICs. Signed-off-by: Stanimir Varbanov <svarbanov@mm-sol.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'Documentation/devicetree')
-rw-r--r--Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt64
1 files changed, 64 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt
new file mode 100644
index 000000000000..7182b8857f57
--- /dev/null
+++ b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt
@@ -0,0 +1,64 @@
1 Qualcomm SPMI PMICs multi-function device bindings
2
3The Qualcomm SPMI series presently includes PM8941, PM8841 and PMA8084
4PMICs. These PMICs use a QPNP scheme through SPMI interface.
5QPNP is effectively a partitioning scheme for dividing the SPMI extended
6register space up into logical pieces, and set of fixed register
7locations/definitions within these regions, with some of these regions
8specifically used for interrupt handling.
9
10The QPNP PMICs are used with the Qualcomm Snapdragon series SoCs, and are
11interfaced to the chip via the SPMI (System Power Management Interface) bus.
12Support for multiple independent functions are implemented by splitting the
1316-bit SPMI slave address space into 256 smaller fixed-size regions, 256 bytes
14each. A function can consume one or more of these fixed-size register regions.
15
16Required properties:
17- compatible: Should contain one of:
18 "qcom,pm8941"
19 "qcom,pm8841"
20 "qcom,pma8084"
21 or generalized "qcom,spmi-pmic".
22- reg: Specifies the SPMI USID slave address for this device.
23 For more information see:
24 Documentation/devicetree/bindings/spmi/spmi.txt
25
26Required properties for peripheral child nodes:
27- compatible: Should contain "qcom,xxx", where "xxx" is a peripheral name.
28
29Optional properties for peripheral child nodes:
30- interrupts: Interrupts are specified as a 4-tuple. For more information
31 see:
32 Documentation/devicetree/bindings/spmi/qcom,spmi-pmic-arb.txt
33- interrupt-names: Corresponding interrupt name to the interrupts property
34
35Each child node of SPMI slave id represents a function of the PMIC. In the
36example below the rtc device node represents a peripheral of pm8941
37SID = 0. The regulator device node represents a peripheral of pm8941 SID = 1.
38
39Example:
40
41 spmi {
42 compatible = "qcom,spmi-pmic-arb";
43
44 pm8941@0 {
45 compatible = "qcom,pm8941", "qcom,spmi-pmic";
46 reg = <0x0 SPMI_USID>;
47
48 rtc {
49 compatible = "qcom,rtc";
50 interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
51 interrupt-names = "alarm";
52 };
53 };
54
55 pm8941@1 {
56 compatible = "qcom,pm8941", "qcom,spmi-pmic";
57 reg = <0x1 SPMI_USID>;
58
59 regulator {
60 compatible = "qcom,regulator";
61 regulator-name = "8941_boost";
62 };
63 };
64 };