summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/regulator/regulator.txt53
1 files changed, 53 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/regulator/regulator.txt b/Documentation/devicetree/bindings/regulator/regulator.txt
index 713f9b247cb3..0fd87f3f5ad4 100644
--- a/Documentation/devicetree/bindings/regulator/regulator.txt
+++ b/Documentation/devicetree/bindings/regulator/regulator.txt
@@ -20,6 +20,27 @@ Deprecated properties:
this child node is intended to configure. If this property is missing,
the node's name will be used instead.
+Consumer name support from DT:
+To support the consumer list of the rails from DT to map the power tree
+so that driver who uses the regualtor can still be non-dt, adding following
+properties.
+The consumer list will be provided under subnode of each regualtor called
+"consumer". The consumer list has the supply name and device name. This can
+be set with properties:
+regulator-consumer-supply: Consumer supply name.
+regulator-consumer-device: Consumer device name.
+The properties will be passed as
+ consumers {
+ c1 {
+ regulator-consumer-supply = "vana";
+ regulator-consumer-device = "2-0010";
+ };
+
+ c2 {
+ regulator-consumer-supply = "vana";
+ regulator-consumer-device = "2-0036";
+ };
+
Example:
xyzreg: regulator@0 {
@@ -61,3 +82,35 @@ regulators (twl_reg1 and twl_reg2),
vmmc-supply = <&twl_reg1>;
vmmcaux-supply = <&twl_reg2>;
};
+
+
+Example: Consumer list from DT
+ ldo3 {
+ regulator-name = "vdd_rtc";
+ regulator-min-microvolt = <800000>;
+ regulator-max-microvolt = <800000>;
+ regulator-always-on;
+ ams,enable-tracking;
+ consumers {
+ c1 {
+ regulator-consumer-supply = "vdd_rtc";
+ };
+ };
+ };
+
+ ldo4 {
+ regulator-name = "avdd_cam";
+ regulator-min-microvolt = <2700000>;
+ regulator-max-microvolt = <2700000>;
+ regulator-always-on;
+ consumers {
+ c1 {
+ regulator-consumer-supply = "vana";
+ regulator-consumer-device = "2-0010";
+ };
+ c2 {
+ regulator-consumer-supply = "vana";
+ regulator-consumer-device = "2-0036";
+ };
+ };
+ };