Commit fb6ba07
media: ov2740: Add regulator support
On some designs the regulators for the AVDD / DOVDD / DVDD power rails
are controlled by Linux.
Add support to the driver for getting regulators for these 3 rails and
for enabling these regulators when necessary.
The datasheet specifies a delay of 0ns between enabling the regulators,
IOW they can all 3 be enabled at the same time. This allows using the bulk
regulator API.
The regulator core will provide dummy regulators for the 3 power-rails
when necessary.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ricardo Ribalda <ribalda@chromium.org>
Tested-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>1 parent fa3772f commit fb6ba07
1 file changed
+27
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
79 | 88 | | |
80 | 89 | | |
81 | 90 | | |
| |||
523 | 532 | | |
524 | 533 | | |
525 | 534 | | |
526 | | - | |
| 535 | + | |
527 | 536 | | |
528 | 537 | | |
529 | 538 | | |
| 539 | + | |
530 | 540 | | |
531 | 541 | | |
532 | 542 | | |
| |||
1309 | 1319 | | |
1310 | 1320 | | |
1311 | 1321 | | |
| 1322 | + | |
1312 | 1323 | | |
1313 | 1324 | | |
1314 | 1325 | | |
| |||
1318 | 1329 | | |
1319 | 1330 | | |
1320 | 1331 | | |
1321 | | - | |
| 1332 | + | |
1322 | 1333 | | |
1323 | 1334 | | |
1324 | 1335 | | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
1325 | 1342 | | |
1326 | 1343 | | |
1327 | 1344 | | |
| |||
1334 | 1351 | | |
1335 | 1352 | | |
1336 | 1353 | | |
1337 | | - | |
| 1354 | + | |
1338 | 1355 | | |
1339 | 1356 | | |
1340 | 1357 | | |
| |||
1372 | 1389 | | |
1373 | 1390 | | |
1374 | 1391 | | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
1375 | 1399 | | |
1376 | 1400 | | |
1377 | 1401 | | |
| |||
0 commit comments