summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2013-09-17 20:15:26 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-26 19:46:11 -0700
commit2e24c4acc8e419452fd48b42091500ba4dc004bf (patch)
tree2fad25c6444113a6707ea8b908bd7b5bfb8d7d0d /Documentation
parent4e8ff9a32bf0717c7a790bfebdb9a0eb7d1f4cba (diff)
regulator: of: add support for adding consumer list from DT
To support the regulator registration through DT and consumer from non-dt, add support for adding consumer list through DT so that non-dt driver can get their regulator in normal way without modifying anything on client driver. Change-Id: I7d3ca0994b1d5c28767b956df4c3eb861eec2af4 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/275794
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";
+ };
+ };
+ };