aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/mfd/tps65910.txt
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2012-07-05 03:23:04 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-07-05 08:13:11 -0400
commit8c5e461df77c14254a408e792bb32ddf08213726 (patch)
tree7e0430c0ad5ec8074c2c78f23db71404e71fc1e2 /Documentation/devicetree/bindings/mfd/tps65910.txt
parent6dc027c977a0cf34828ebb1742cc58fa9adb0e2f (diff)
regulator: dt: add policy to have property "regulator-compatible"
Add the policy for regulator DT such that if device have multiple regulator and its binding contains a child node that describes each regulator then each regulator child node must have the property "regulator-compatible" which matches with regulator name of their hardware counterparts. Modify the DT documentation of regulator devices to reflect this policy. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Acked-by: Stephen Warren <swarren@wwwdotorg.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'Documentation/devicetree/bindings/mfd/tps65910.txt')
-rw-r--r--Documentation/devicetree/bindings/mfd/tps65910.txt54
1 files changed, 41 insertions, 13 deletions
diff --git a/Documentation/devicetree/bindings/mfd/tps65910.txt b/Documentation/devicetree/bindings/mfd/tps65910.txt
index 645f5eaadb3..b51d2066599 100644
--- a/Documentation/devicetree/bindings/mfd/tps65910.txt
+++ b/Documentation/devicetree/bindings/mfd/tps65910.txt
@@ -17,8 +17,9 @@ Required properties:
17 device need to be present. The definition for each of these nodes is defined 17 device need to be present. The definition for each of these nodes is defined
18 using the standard binding for regulators found at 18 using the standard binding for regulators found at
19 Documentation/devicetree/bindings/regulator/regulator.txt. 19 Documentation/devicetree/bindings/regulator/regulator.txt.
20 The regulator is matched with the regulator-compatible.
20 21
21 The valid names for regulators are: 22 The valid regulator-compatible values are:
22 tps65910: vrtc, vio, vdd1, vdd2, vdd3, vdig1, vdig2, vpll, vdac, vaux1, 23 tps65910: vrtc, vio, vdd1, vdd2, vdd3, vdig1, vdig2, vpll, vdac, vaux1,
23 vaux2, vaux33, vmmc 24 vaux2, vaux33, vmmc
24 tps65911: vrtc, vio, vdd1, vdd3, vddctrl, ldo1, ldo2, ldo3, ldo4, ldo5, 25 tps65911: vrtc, vio, vdd1, vdd3, vddctrl, ldo1, ldo2, ldo3, ldo4, ldo5,
@@ -57,73 +58,100 @@ Example:
57 ti,en-gpio-sleep = <0 0 1 0 0 0 0 0 0>; 58 ti,en-gpio-sleep = <0 0 1 0 0 0 0 0 0>;
58 59
59 regulators { 60 regulators {
60 vdd1_reg: vdd1 { 61 #address-cells = <1>;
62 #size-cells = <0>;
63
64 vdd1_reg: regulator@0 {
65 regulator-compatible = "vdd1";
66 reg = <0>;
61 regulator-min-microvolt = < 600000>; 67 regulator-min-microvolt = < 600000>;
62 regulator-max-microvolt = <1500000>; 68 regulator-max-microvolt = <1500000>;
63 regulator-always-on; 69 regulator-always-on;
64 regulator-boot-on; 70 regulator-boot-on;
65 ti,regulator-ext-sleep-control = <0>; 71 ti,regulator-ext-sleep-control = <0>;
66 }; 72 };
67 vdd2_reg: vdd2 { 73 vdd2_reg: regulator@1 {
74 regulator-compatible = "vdd2";
75 reg = <1>;
68 regulator-min-microvolt = < 600000>; 76 regulator-min-microvolt = < 600000>;
69 regulator-max-microvolt = <1500000>; 77 regulator-max-microvolt = <1500000>;
70 regulator-always-on; 78 regulator-always-on;
71 regulator-boot-on; 79 regulator-boot-on;
72 ti,regulator-ext-sleep-control = <4>; 80 ti,regulator-ext-sleep-control = <4>;
73 }; 81 };
74 vddctrl_reg: vddctrl { 82 vddctrl_reg: regulator@2 {
83 regulator-compatible = "vddctrl";
84 reg = <2>;
75 regulator-min-microvolt = < 600000>; 85 regulator-min-microvolt = < 600000>;
76 regulator-max-microvolt = <1400000>; 86 regulator-max-microvolt = <1400000>;
77 regulator-always-on; 87 regulator-always-on;
78 regulator-boot-on; 88 regulator-boot-on;
79 ti,regulator-ext-sleep-control = <0>; 89 ti,regulator-ext-sleep-control = <0>;
80 }; 90 };
81 vio_reg: vio { 91 vio_reg: regulator@3 {
92 regulator-compatible = "vio";
93 reg = <3>;
82 regulator-min-microvolt = <1500000>; 94 regulator-min-microvolt = <1500000>;
83 regulator-max-microvolt = <1800000>; 95 regulator-max-microvolt = <1800000>;
84 regulator-always-on; 96 regulator-always-on;
85 regulator-boot-on; 97 regulator-boot-on;
86 ti,regulator-ext-sleep-control = <1>; 98 ti,regulator-ext-sleep-control = <1>;
87 }; 99 };
88 ldo1_reg: ldo1 { 100 ldo1_reg: regulator@4 {
101 regulator-compatible = "ldo1";
102 reg = <4>;
89 regulator-min-microvolt = <1000000>; 103 regulator-min-microvolt = <1000000>;
90 regulator-max-microvolt = <3300000>; 104 regulator-max-microvolt = <3300000>;
91 ti,regulator-ext-sleep-control = <0>; 105 ti,regulator-ext-sleep-control = <0>;
92 }; 106 };
93 ldo2_reg: ldo2 { 107 ldo2_reg: regulator@5 {
108 regulator-compatible = "ldo2";
109 reg = <5>;
94 regulator-min-microvolt = <1050000>; 110 regulator-min-microvolt = <1050000>;
95 regulator-max-microvolt = <1050000>; 111 regulator-max-microvolt = <1050000>;
96 ti,regulator-ext-sleep-control = <0>; 112 ti,regulator-ext-sleep-control = <0>;
97 }; 113 };
98 ldo3_reg: ldo3 { 114 ldo3_reg: regulator@6 {
115 regulator-compatible = "ldo3";
116 reg = <6>;
99 regulator-min-microvolt = <1000000>; 117 regulator-min-microvolt = <1000000>;
100 regulator-max-microvolt = <3300000>; 118 regulator-max-microvolt = <3300000>;
101 ti,regulator-ext-sleep-control = <0>; 119 ti,regulator-ext-sleep-control = <0>;
102 }; 120 };
103 ldo4_reg: ldo4 { 121 ldo4_reg: regulator@7 {
122 regulator-compatible = "ldo4";
123 reg = <7>;
104 regulator-min-microvolt = <1000000>; 124 regulator-min-microvolt = <1000000>;
105 regulator-max-microvolt = <3300000>; 125 regulator-max-microvolt = <3300000>;
106 regulator-always-on; 126 regulator-always-on;
107 ti,regulator-ext-sleep-control = <0>; 127 ti,regulator-ext-sleep-control = <0>;
108 }; 128 };
109 ldo5_reg: ldo5 { 129 ldo5_reg: regulator@8 {
130 regulator-compatible = "ldo5";
131 reg = <8>;
110 regulator-min-microvolt = <1000000>; 132 regulator-min-microvolt = <1000000>;
111 regulator-max-microvolt = <3300000>; 133 regulator-max-microvolt = <3300000>;
112 ti,regulator-ext-sleep-control = <0>; 134 ti,regulator-ext-sleep-control = <0>;
113 }; 135 };
114 ldo6_reg: ldo6 { 136 ldo6_reg: regulator@9 {
137 regulator-compatible = "ldo6";
138 reg = <9>;
115 regulator-min-microvolt = <1200000>; 139 regulator-min-microvolt = <1200000>;
116 regulator-max-microvolt = <1200000>; 140 regulator-max-microvolt = <1200000>;
117 ti,regulator-ext-sleep-control = <0>; 141 ti,regulator-ext-sleep-control = <0>;
118 }; 142 };
119 ldo7_reg: ldo7 { 143 ldo7_reg: regulator@10 {
144 regulator-compatible = "ldo7";
145 reg = <10>;
120 regulator-min-microvolt = <1200000>; 146 regulator-min-microvolt = <1200000>;
121 regulator-max-microvolt = <1200000>; 147 regulator-max-microvolt = <1200000>;
122 regulator-always-on; 148 regulator-always-on;
123 regulator-boot-on; 149 regulator-boot-on;
124 ti,regulator-ext-sleep-control = <1>; 150 ti,regulator-ext-sleep-control = <1>;
125 }; 151 };
126 ldo8_reg: ldo8 { 152 ldo8_reg: regulator@11 {
153 regulator-compatible = "ldo8";
154 reg = <11>;
127 regulator-min-microvolt = <1000000>; 155 regulator-min-microvolt = <1000000>;
128 regulator-max-microvolt = <3300000>; 156 regulator-max-microvolt = <3300000>;
129 regulator-always-on; 157 regulator-always-on;