mbox series

[RESEND,0/2] media: i2c: imx412: Add regulator control to imx412

Message ID 20220410163553.3501938-1-bryan.odonoghue@linaro.org
Headers show
Series media: i2c: imx412: Add regulator control to imx412 | expand

Message

Bryan O'Donoghue April 10, 2022, 4:35 p.m. UTC
The imx412 has three regulators which depending on platform may need to be
individually enabled.

- dovdd
- avdd
- dvdd

Existing code for an Intel platform doesn't appear to need to enable these
rails directly. On my reference hardware, a Qualcomm Thundercomm RB5 some
of these rails do need to be enabled individually.

Add in the above named rails as optional in the YAML in the first patch
along with code to switch them on in the second patch.

Existing imx412 users should get dummy regulators populated which the
regulator_bulk_enable()/regulator_bulk_disable() code can safely ignore.

Resend + devicetree@vger.kernel.org 

Bryan O'Donoghue (2):
  media: dt-bindings: imx412: Add regulator descriptions
  media: i2c: imx412: Add bulk regulator support

 .../bindings/media/i2c/sony,imx412.yaml       | 12 ++++++
 drivers/media/i2c/imx412.c                    | 38 +++++++++++++++++++
 2 files changed, 50 insertions(+)