OSDN Git Service

arm64: dts: imx8mq-librem5: describe power supply for cameras
authorMartin Kepplinger <martin.kepplinger@puri.sm>
Thu, 4 Nov 2021 13:22:11 +0000 (14:22 +0100)
committerShawn Guo <shawnguo@kernel.org>
Mon, 22 Nov 2021 01:10:23 +0000 (09:10 +0800)
commit1019b783696aa0705517d8a23f29dbbc8ec64048
tree0d7b0be66c7007e3954323a0720deba592c2cc77
parentb43e6c03a85423db959f88d96ddd682e5c09f8fd
arm64: dts: imx8mq-librem5: describe power supply for cameras

CAMERA_PWR_EN controls two different power supplies that cameras will use.
The hardware killswitch controls a third one. Describe that appropriately.

The pinctrl that describes the gpio that is used in 2 places here is added
to the pmic. This is done because pmic is powered early enough to make
sure this will work.

When we would have put the same pinctrl property into the 2 regulator nodes
(instead of the pmic), we'd get:

imx8mq-pinctrl 30330000.pinctrl: pin MX8MQ_IOMUXC_GPIO1_IO00 already requested by regulator-csi-1v8; cannot claim for regulator-vcam-2v8
imx8mq-pinctrl 30330000.pinctrl: pin-10 (regulator-vcam-2v8) status -22
imx8mq-pinctrl 30330000.pinctrl: could not request pin 10 (MX8MQ_IOMUXC_GPIO1_IO00) from group camerapwrgrp  on device 30330000.pinctrl

Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi