Skip to content

Commit 9b272e6

Browse files
committed
Merge remote-tracking branch 'regulator/topic/qcom-spmi' into regulator-next
2 parents 28c426c + ca5cd8c commit 9b272e6

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
@@ -1646,11 +1646,20 @@ static const struct spmi_regulator_data pm8994_regulators[] = {
16461646
{ }
16471647
};
16481648

1649+
static const struct spmi_regulator_data pmi8994_regulators[] = {
1650+
{ "s1", 0x1400, "vdd_s1", },
1651+
{ "s2", 0x1700, "vdd_s2", },
1652+
{ "s3", 0x1a00, "vdd_s3", },
1653+
{ "l1", 0x4000, "vdd_l1", },
1654+
{ }
1655+
};
1656+
16491657
static const struct of_device_id qcom_spmi_regulator_match[] = {
16501658
{ .compatible = "qcom,pm8841-regulators", .data = &pm8841_regulators },
16511659
{ .compatible = "qcom,pm8916-regulators", .data = &pm8916_regulators },
16521660
{ .compatible = "qcom,pm8941-regulators", .data = &pm8941_regulators },
16531661
{ .compatible = "qcom,pm8994-regulators", .data = &pm8994_regulators },
1662+
{ .compatible = "qcom,pmi8994-regulators", .data = &pmi8994_regulators },
16541663
{ }
16551664
};
16561665
MODULE_DEVICE_TABLE(of, qcom_spmi_regulator_match);

0 commit comments

Comments
 (0)