Skip to content

Commit 205321f

Browse files
lokeshvutlabroonie
authored andcommitted
regulator: lp873x: Add support for populating input supply
In order to have a proper topology of regulators for a platform, each registering regulator needs to populate supply_name field for identifying its supply's name. Add supply_name field for lp873x regulators. Acked-by: Rob Herring <[email protected]> Signed-off-by: Lokesh Vutla <[email protected]> Acked-for-MFD-by: Lee Jones <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 1001354 commit 205321f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Documentation/devicetree/bindings/mfd/lp873x.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ Required properties:
77
- #gpio-cells: Should be two. The first cell is the pin number and
88
the second cell is used to specify flags.
99
See ../gpio/gpio.txt for more information.
10+
- xxx-in-supply: Phandle to parent supply node of each regulator
11+
populated under regulators node. xxx can be
12+
buck0, buck1, ldo0 or ldo1.
1013
- regulators: List of child nodes that specify the regulator
1114
initialization data.
1215
Example:
@@ -17,6 +20,11 @@ pmic: lp8733@60 {
1720
gpio-controller;
1821
#gpio-cells = <2>;
1922

23+
buck0-in-supply = <&vsys_3v3>;
24+
buck1-in-supply = <&vsys_3v3>;
25+
ldo0-in-supply = <&vsys_3v3>;
26+
ldo1-in-supply = <&vsys_3v3>;
27+
2028
regulators {
2129
lp8733_buck0: buck0 {
2230
regulator-name = "lp8733-buck0";

drivers/regulator/lp873x-regulator.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
[_id] = { \
2525
.desc = { \
2626
.name = _name, \
27+
.supply_name = _of "-in", \
2728
.id = _id, \
2829
.of_match = of_match_ptr(_of), \
2930
.regulators_node = of_match_ptr("regulators"),\

0 commit comments

Comments
 (0)