Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
9b272e61
Commit
9b272e61
authored
Nov 10, 2017
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/topic/qcom-spmi' into regulator-next
parents
28c426c7
ca5cd8c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.txt
...ion/devicetree/bindings/regulator/qcom,spmi-regulator.txt
+13
-0
drivers/regulator/qcom_spmi-regulator.c
drivers/regulator/qcom_spmi-regulator.c
+9
-0
No files found.
Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.txt
View file @
9b272e61
...
...
@@ -8,6 +8,7 @@ Qualcomm SPMI Regulators
"qcom,pm8916-regulators"
"qcom,pm8941-regulators"
"qcom,pm8994-regulators"
"qcom,pmi8994-regulators"
- interrupts:
Usage: optional
...
...
@@ -100,6 +101,15 @@ Qualcomm SPMI Regulators
Definition: Reference to regulator supplying the input pin, as
described in the data sheet.
- vdd_s1-supply:
- vdd_s2-supply:
- vdd_s3-supply:
- vdd_l1-supply:
Usage: optional (pmi8994 only)
Value type: <phandle>
Definition: Reference to regulator supplying the input pin, as
described in the data sheet.
The regulator node houses sub-nodes for each regulator within the device. Each
sub-node is identified using the node's name, with valid values listed for each
...
...
@@ -122,6 +132,9 @@ pm8994:
l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19, l20,
l21, l22, l23, l24, l25, l26, l27, l28, l29, l30, l31, l32, lvs1, lvs2
pmi8994:
s1, s2, s3, l1
The content of each sub-node is defined by the standard binding for regulators -
see regulator.txt - with additional custom properties described below:
...
...
drivers/regulator/qcom_spmi-regulator.c
View file @
9b272e61
...
...
@@ -1646,11 +1646,20 @@ static const struct spmi_regulator_data pm8994_regulators[] = {
{
}
};
static
const
struct
spmi_regulator_data
pmi8994_regulators
[]
=
{
{
"s1"
,
0x1400
,
"vdd_s1"
,
},
{
"s2"
,
0x1700
,
"vdd_s2"
,
},
{
"s3"
,
0x1a00
,
"vdd_s3"
,
},
{
"l1"
,
0x4000
,
"vdd_l1"
,
},
{
}
};
static
const
struct
of_device_id
qcom_spmi_regulator_match
[]
=
{
{
.
compatible
=
"qcom,pm8841-regulators"
,
.
data
=
&
pm8841_regulators
},
{
.
compatible
=
"qcom,pm8916-regulators"
,
.
data
=
&
pm8916_regulators
},
{
.
compatible
=
"qcom,pm8941-regulators"
,
.
data
=
&
pm8941_regulators
},
{
.
compatible
=
"qcom,pm8994-regulators"
,
.
data
=
&
pm8994_regulators
},
{
.
compatible
=
"qcom,pmi8994-regulators"
,
.
data
=
&
pmi8994_regulators
},
{
}
};
MODULE_DEVICE_TABLE
(
of
,
qcom_spmi_regulator_match
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment