aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2012-05-19 10:34:06 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-05-19 13:17:53 -0400
commit33a6943d2c7fb7567148cc80f016d0f65e3caf36 (patch)
treefb389ecbb2306250cb63718eb72f23a602c6ba0f /drivers/regulator
parentb4410a891af503b93d4c0186d47ca62ece25db8b (diff)
regulator: tps65910: use small letter for regulator names
Use the small-letter for names of different regulator to match the names with dt binding documents. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/tps65910-regulator.c104
1 files changed, 52 insertions, 52 deletions
diff --git a/drivers/regulator/tps65910-regulator.c b/drivers/regulator/tps65910-regulator.c
index 60c95646f201..4833457438c2 100644
--- a/drivers/regulator/tps65910-regulator.c
+++ b/drivers/regulator/tps65910-regulator.c
@@ -94,11 +94,11 @@ struct tps_info {
94 94
95static struct tps_info tps65910_regs[] = { 95static struct tps_info tps65910_regs[] = {
96 { 96 {
97 .name = "VRTC", 97 .name = "vrtc",
98 .enable_time_us = 2200, 98 .enable_time_us = 2200,
99 }, 99 },
100 { 100 {
101 .name = "VIO", 101 .name = "vio",
102 .min_uV = 1500000, 102 .min_uV = 1500000,
103 .max_uV = 3300000, 103 .max_uV = 3300000,
104 .n_voltages = ARRAY_SIZE(VIO_VSEL_table), 104 .n_voltages = ARRAY_SIZE(VIO_VSEL_table),
@@ -106,19 +106,19 @@ static struct tps_info tps65910_regs[] = {
106 .enable_time_us = 350, 106 .enable_time_us = 350,
107 }, 107 },
108 { 108 {
109 .name = "VDD1", 109 .name = "vdd1",
110 .min_uV = 600000, 110 .min_uV = 600000,
111 .max_uV = 4500000, 111 .max_uV = 4500000,
112 .enable_time_us = 350, 112 .enable_time_us = 350,
113 }, 113 },
114 { 114 {
115 .name = "VDD2", 115 .name = "vdd2",
116 .min_uV = 600000, 116 .min_uV = 600000,
117 .max_uV = 4500000, 117 .max_uV = 4500000,
118 .enable_time_us = 350, 118 .enable_time_us = 350,
119 }, 119 },
120 { 120 {
121 .name = "VDD3", 121 .name = "vdd3",
122 .min_uV = 5000000, 122 .min_uV = 5000000,
123 .max_uV = 5000000, 123 .max_uV = 5000000,
124 .n_voltages = ARRAY_SIZE(VDD3_VSEL_table), 124 .n_voltages = ARRAY_SIZE(VDD3_VSEL_table),
@@ -126,7 +126,7 @@ static struct tps_info tps65910_regs[] = {
126 .enable_time_us = 200, 126 .enable_time_us = 200,
127 }, 127 },
128 { 128 {
129 .name = "VDIG1", 129 .name = "vdig1",
130 .min_uV = 1200000, 130 .min_uV = 1200000,
131 .max_uV = 2700000, 131 .max_uV = 2700000,
132 .n_voltages = ARRAY_SIZE(VDIG1_VSEL_table), 132 .n_voltages = ARRAY_SIZE(VDIG1_VSEL_table),
@@ -134,7 +134,7 @@ static struct tps_info tps65910_regs[] = {
134 .enable_time_us = 100, 134 .enable_time_us = 100,
135 }, 135 },
136 { 136 {
137 .name = "VDIG2", 137 .name = "vdig2",
138 .min_uV = 1000000, 138 .min_uV = 1000000,
139 .max_uV = 1800000, 139 .max_uV = 1800000,
140 .n_voltages = ARRAY_SIZE(VDIG2_VSEL_table), 140 .n_voltages = ARRAY_SIZE(VDIG2_VSEL_table),
@@ -142,7 +142,7 @@ static struct tps_info tps65910_regs[] = {
142 .enable_time_us = 100, 142 .enable_time_us = 100,
143 }, 143 },
144 { 144 {
145 .name = "VPLL", 145 .name = "vpll",
146 .min_uV = 1000000, 146 .min_uV = 1000000,
147 .max_uV = 2500000, 147 .max_uV = 2500000,
148 .n_voltages = ARRAY_SIZE(VPLL_VSEL_table), 148 .n_voltages = ARRAY_SIZE(VPLL_VSEL_table),
@@ -150,7 +150,7 @@ static struct tps_info tps65910_regs[] = {
150 .enable_time_us = 100, 150 .enable_time_us = 100,
151 }, 151 },
152 { 152 {
153 .name = "VDAC", 153 .name = "vdac",
154 .min_uV = 1800000, 154 .min_uV = 1800000,
155 .max_uV = 2850000, 155 .max_uV = 2850000,
156 .n_voltages = ARRAY_SIZE(VDAC_VSEL_table), 156 .n_voltages = ARRAY_SIZE(VDAC_VSEL_table),
@@ -158,7 +158,7 @@ static struct tps_info tps65910_regs[] = {
158 .enable_time_us = 100, 158 .enable_time_us = 100,
159 }, 159 },
160 { 160 {
161 .name = "VAUX1", 161 .name = "vaux1",
162 .min_uV = 1800000, 162 .min_uV = 1800000,
163 .max_uV = 2850000, 163 .max_uV = 2850000,
164 .n_voltages = ARRAY_SIZE(VAUX1_VSEL_table), 164 .n_voltages = ARRAY_SIZE(VAUX1_VSEL_table),
@@ -166,7 +166,7 @@ static struct tps_info tps65910_regs[] = {
166 .enable_time_us = 100, 166 .enable_time_us = 100,
167 }, 167 },
168 { 168 {
169 .name = "VAUX2", 169 .name = "vaux2",
170 .min_uV = 1800000, 170 .min_uV = 1800000,
171 .max_uV = 3300000, 171 .max_uV = 3300000,
172 .n_voltages = ARRAY_SIZE(VAUX2_VSEL_table), 172 .n_voltages = ARRAY_SIZE(VAUX2_VSEL_table),
@@ -174,7 +174,7 @@ static struct tps_info tps65910_regs[] = {
174 .enable_time_us = 100, 174 .enable_time_us = 100,
175 }, 175 },
176 { 176 {
177 .name = "VAUX33", 177 .name = "vaux33",
178 .min_uV = 1800000, 178 .min_uV = 1800000,
179 .max_uV = 3300000, 179 .max_uV = 3300000,
180 .n_voltages = ARRAY_SIZE(VAUX33_VSEL_table), 180 .n_voltages = ARRAY_SIZE(VAUX33_VSEL_table),
@@ -182,7 +182,7 @@ static struct tps_info tps65910_regs[] = {
182 .enable_time_us = 100, 182 .enable_time_us = 100,
183 }, 183 },
184 { 184 {
185 .name = "VMMC", 185 .name = "vmmc",
186 .min_uV = 1800000, 186 .min_uV = 1800000,
187 .max_uV = 3300000, 187 .max_uV = 3300000,
188 .n_voltages = ARRAY_SIZE(VMMC_VSEL_table), 188 .n_voltages = ARRAY_SIZE(VMMC_VSEL_table),
@@ -193,11 +193,11 @@ static struct tps_info tps65910_regs[] = {
193 193
194static struct tps_info tps65911_regs[] = { 194static struct tps_info tps65911_regs[] = {
195 { 195 {
196 .name = "VRTC", 196 .name = "vrtc",
197 .enable_time_us = 2200, 197 .enable_time_us = 2200,
198 }, 198 },
199 { 199 {
200 .name = "VIO", 200 .name = "vio",
201 .min_uV = 1500000, 201 .min_uV = 1500000,
202 .max_uV = 3300000, 202 .max_uV = 3300000,
203 .n_voltages = ARRAY_SIZE(VIO_VSEL_table), 203 .n_voltages = ARRAY_SIZE(VIO_VSEL_table),
@@ -205,77 +205,77 @@ static struct tps_info tps65911_regs[] = {
205 .enable_time_us = 350, 205 .enable_time_us = 350,
206 }, 206 },
207 { 207 {
208 .name = "VDD1", 208 .name = "vdd1",
209 .min_uV = 600000, 209 .min_uV = 600000,
210 .max_uV = 4500000, 210 .max_uV = 4500000,
211 .n_voltages = 73, 211 .n_voltages = 73,
212 .enable_time_us = 350, 212 .enable_time_us = 350,
213 }, 213 },
214 { 214 {
215 .name = "VDD2", 215 .name = "vdd2",
216 .min_uV = 600000, 216 .min_uV = 600000,
217 .max_uV = 4500000, 217 .max_uV = 4500000,
218 .n_voltages = 73, 218 .n_voltages = 73,
219 .enable_time_us = 350, 219 .enable_time_us = 350,
220 }, 220 },
221 { 221 {
222 .name = "VDDCTRL", 222 .name = "vddctrl",
223 .min_uV = 600000, 223 .min_uV = 600000,
224 .max_uV = 1400000, 224 .max_uV = 1400000,
225 .n_voltages = 65, 225 .n_voltages = 65,
226 .enable_time_us = 900, 226 .enable_time_us = 900,
227 }, 227 },
228 { 228 {
229 .name = "LDO1", 229 .name = "ldo1",
230 .min_uV = 1000000, 230 .min_uV = 1000000,
231 .max_uV = 3300000, 231 .max_uV = 3300000,
232 .n_voltages = 47, 232 .n_voltages = 47,
233 .enable_time_us = 420, 233 .enable_time_us = 420,
234 }, 234 },
235 { 235 {
236 .name = "LDO2", 236 .name = "ldo2",
237 .min_uV = 1000000, 237 .min_uV = 1000000,
238 .max_uV = 3300000, 238 .max_uV = 3300000,
239 .n_voltages = 47, 239 .n_voltages = 47,
240 .enable_time_us = 420, 240 .enable_time_us = 420,
241 }, 241 },
242 { 242 {
243 .name = "LDO3", 243 .name = "ldo3",
244 .min_uV = 1000000, 244 .min_uV = 1000000,
245 .max_uV = 3300000, 245 .max_uV = 3300000,
246 .n_voltages = 24, 246 .n_voltages = 24,
247 .enable_time_us = 230, 247 .enable_time_us = 230,
248 }, 248 },
249 { 249 {
250 .name = "LDO4", 250 .name = "ldo4",
251 .min_uV = 1000000, 251 .min_uV = 1000000,
252 .max_uV = 3300000, 252 .max_uV = 3300000,
253 .n_voltages = 47, 253 .n_voltages = 47,
254 .enable_time_us = 230, 254 .enable_time_us = 230,
255 }, 255 },
256 { 256 {
257 .name = "LDO5", 257 .name = "ldo5",
258 .min_uV = 1000000, 258 .min_uV = 1000000,
259 .max_uV = 3300000, 259 .max_uV = 3300000,
260 .n_voltages = 24, 260 .n_voltages = 24,
261 .enable_time_us = 230, 261 .enable_time_us = 230,
262 }, 262 },
263 { 263 {
264 .name = "LDO6", 264 .name = "ldo6",
265 .min_uV = 1000000, 265 .min_uV = 1000000,
266 .max_uV = 3300000, 266 .max_uV = 3300000,
267 .n_voltages = 24, 267 .n_voltages = 24,
268 .enable_time_us = 230, 268 .enable_time_us = 230,
269 }, 269 },
270 { 270 {
271 .name = "LDO7", 271 .name = "ldo7",
272 .min_uV = 1000000, 272 .min_uV = 1000000,
273 .max_uV = 3300000, 273 .max_uV = 3300000,
274 .n_voltages = 24, 274 .n_voltages = 24,
275 .enable_time_us = 230, 275 .enable_time_us = 230,
276 }, 276 },
277 { 277 {
278 .name = "LDO8", 278 .name = "ldo8",
279 .min_uV = 1000000, 279 .min_uV = 1000000,
280 .max_uV = 3300000, 280 .max_uV = 3300000,
281 .n_voltages = 24, 281 .n_voltages = 24,
@@ -1039,35 +1039,35 @@ static int tps65910_set_ext_sleep_config(struct tps65910_reg *pmic,
1039#ifdef CONFIG_OF 1039#ifdef CONFIG_OF
1040 1040
1041static struct of_regulator_match tps65910_matches[] = { 1041static struct of_regulator_match tps65910_matches[] = {
1042 { .name = "VRTC", .driver_data = (void *) &tps65910_regs[0] }, 1042 { .name = "vrtc", .driver_data = (void *) &tps65910_regs[0] },
1043 { .name = "VIO", .driver_data = (void *) &tps65910_regs[1] }, 1043 { .name = "vio", .driver_data = (void *) &tps65910_regs[1] },
1044 { .name = "VDD1", .driver_data = (void *) &tps65910_regs[2] }, 1044 { .name = "vdd1", .driver_data = (void *) &tps65910_regs[2] },
1045 { .name = "VDD2", .driver_data = (void *) &tps65910_regs[3] }, 1045 { .name = "vdd2", .driver_data = (void *) &tps65910_regs[3] },
1046 { .name = "VDD3", .driver_data = (void *) &tps65910_regs[4] }, 1046 { .name = "vdd3", .driver_data = (void *) &tps65910_regs[4] },
1047 { .name = "VDIG1", .driver_data = (void *) &tps65910_regs[5] }, 1047 { .name = "vdig1", .driver_data = (void *) &tps65910_regs[5] },
1048 { .name = "VDIG2", .driver_data = (void *) &tps65910_regs[6] }, 1048 { .name = "vdig2", .driver_data = (void *) &tps65910_regs[6] },
1049 { .name = "VPLL", .driver_data = (void *) &tps65910_regs[7] }, 1049 { .name = "vpll", .driver_data = (void *) &tps65910_regs[7] },
1050 { .name = "VDAC", .driver_data = (void *) &tps65910_regs[8] }, 1050 { .name = "vdac", .driver_data = (void *) &tps65910_regs[8] },
1051 { .name = "VAUX1", .driver_data = (void *) &tps65910_regs[9] }, 1051 { .name = "vaux1", .driver_data = (void *) &tps65910_regs[9] },
1052 { .name = "VAUX2", .driver_data = (void *) &tps65910_regs[10] }, 1052 { .name = "vaux2", .driver_data = (void *) &tps65910_regs[10] },
1053 { .name = "VAUX33", .driver_data = (void *) &tps65910_regs[11] }, 1053 { .name = "vaux33", .driver_data = (void *) &tps65910_regs[11] },
1054 { .name = "VMMC", .driver_data = (void *) &tps65910_regs[12] }, 1054 { .name = "vmmc", .driver_data = (void *) &tps65910_regs[12] },
1055}; 1055};
1056 1056
1057static struct of_regulator_match tps65911_matches[] = { 1057static struct of_regulator_match tps65911_matches[] = {
1058 { .name = "VRTC", .driver_data = (void *) &tps65911_regs[0] }, 1058 { .name = "vrtc", .driver_data = (void *) &tps65911_regs[0] },
1059 { .name = "VIO", .driver_data = (void *) &tps65911_regs[1] }, 1059 { .name = "vio", .driver_data = (void *) &tps65911_regs[1] },
1060 { .name = "VDD1", .driver_data = (void *) &tps65911_regs[2] }, 1060 { .name = "vdd1", .driver_data = (void *) &tps65911_regs[2] },
1061 { .name = "VDD2", .driver_data = (void *) &tps65911_regs[3] }, 1061 { .name = "vdd2", .driver_data = (void *) &tps65911_regs[3] },
1062 { .name = "VDDCTRL", .driver_data = (void *) &tps65911_regs[4] }, 1062 { .name = "vddctrl", .driver_data = (void *) &tps65911_regs[4] },
1063 { .name = "LDO1", .driver_data = (void *) &tps65911_regs[5] }, 1063 { .name = "ldo1", .driver_data = (void *) &tps65911_regs[5] },
1064 { .name = "LDO2", .driver_data = (void *) &tps65911_regs[6] }, 1064 { .name = "ldo2", .driver_data = (void *) &tps65911_regs[6] },
1065 { .name = "LDO3", .driver_data = (void *) &tps65911_regs[7] }, 1065 { .name = "ldo3", .driver_data = (void *) &tps65911_regs[7] },
1066 { .name = "LDO4", .driver_data = (void *) &tps65911_regs[8] }, 1066 { .name = "ldo4", .driver_data = (void *) &tps65911_regs[8] },
1067 { .name = "LDO5", .driver_data = (void *) &tps65911_regs[9] }, 1067 { .name = "ldo5", .driver_data = (void *) &tps65911_regs[9] },
1068 { .name = "LDO6", .driver_data = (void *) &tps65911_regs[10] }, 1068 { .name = "ldo6", .driver_data = (void *) &tps65911_regs[10] },
1069 { .name = "LDO7", .driver_data = (void *) &tps65911_regs[11] }, 1069 { .name = "ldo7", .driver_data = (void *) &tps65911_regs[11] },
1070 { .name = "LDO8", .driver_data = (void *) &tps65911_regs[12] }, 1070 { .name = "ldo8", .driver_data = (void *) &tps65911_regs[12] },
1071}; 1071};
1072 1072
1073static struct tps65910_board *tps65910_parse_dt_reg_data( 1073static struct tps65910_board *tps65910_parse_dt_reg_data(