Skip to content

Commit ca5cd8c

Browse files
Rajendra Nayakbroonie
authored andcommitted
regulator: qcom_spmi: Add support for pmi8994
Document the regulators available on pmi8994 and add support for this PMIC to the SPMI PMIC regulator driver. Signed-off-by: Rajendra Nayak <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 2bd6bf0 commit ca5cd8c

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Qualcomm SPMI Regulators
88
"qcom,pm8916-regulators"
99
"qcom,pm8941-regulators"
1010
"qcom,pm8994-regulators"
11+
"qcom,pmi8994-regulators"
1112

1213
- interrupts:
1314
Usage: optional
@@ -100,6 +101,15 @@ Qualcomm SPMI Regulators
100101
Definition: Reference to regulator supplying the input pin, as
101102
described in the data sheet.
102103

104+
- vdd_s1-supply:
105+
- vdd_s2-supply:
106+
- vdd_s3-supply:
107+
- vdd_l1-supply:
108+
Usage: optional (pmi8994 only)
109+
Value type: <phandle>
110+
Definition: Reference to regulator supplying the input pin, as
111+
described in the data sheet.
112+
103113

104114
The regulator node houses sub-nodes for each regulator within the device. Each
105115
sub-node is identified using the node's name, with valid values listed for each
@@ -122,6 +132,9 @@ pm8994:
122132
l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19, l20,
123133
l21, l22, l23, l24, l25, l26, l27, l28, l29, l30, l31, l32, lvs1, lvs2
124134

135+
pmi8994:
136+
s1, s2, s3, l1
137+
125138
The content of each sub-node is defined by the standard binding for regulators -
126139
see regulator.txt - with additional custom properties described below:
127140

drivers/regulator/qcom_spmi-regulator.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,11 +1619,20 @@ static const struct spmi_regulator_data pm8994_regulators[] = {
16191619
{ }
16201620
};
16211621

1622+
static const struct spmi_regulator_data pmi8994_regulators[] = {
1623+
{ "s1", 0x1400, "vdd_s1", },
1624+
{ "s2", 0x1700, "vdd_s2", },
1625+
{ "s3", 0x1a00, "vdd_s3", },
1626+
{ "l1", 0x4000, "vdd_l1", },
1627+
{ }
1628+
};
1629+
16221630
static const struct of_device_id qcom_spmi_regulator_match[] = {
16231631
{ .compatible = "qcom,pm8841-regulators", .data = &pm8841_regulators },
16241632
{ .compatible = "qcom,pm8916-regulators", .data = &pm8916_regulators },
16251633
{ .compatible = "qcom,pm8941-regulators", .data = &pm8941_regulators },
16261634
{ .compatible = "qcom,pm8994-regulators", .data = &pm8994_regulators },
1635+
{ .compatible = "qcom,pmi8994-regulators", .data = &pmi8994_regulators },
16271636
{ }
16281637
};
16291638
MODULE_DEVICE_TABLE(of, qcom_spmi_regulator_match);

0 commit comments

Comments
 (0)