dt: Add camX_reg and camX_reg_gpio overrides to CM4S

CM4S follows the pattern of CM1&3 for routing camera
GPIO control, but didn't have the overrides defined to
allow enabling and configuring the camera regulator
GPIOs. Add them.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
This commit is contained in:
Dave Stevenson
2022-12-15 16:15:27 +00:00
committed by Phil Elwell
parent ea5c70aa80
commit 00a49aede8
2 changed files with 9 additions and 4 deletions

View File

@@ -400,12 +400,12 @@
};
&cam1_reg {
gpio = <&gpio 2 GPIO_ACTIVE_HIGH>;
gpio = <&gpio 3 GPIO_ACTIVE_HIGH>;
status = "disabled";
};
cam0_reg: &cam0_regulator {
gpio = <&gpio 30 GPIO_ACTIVE_HIGH>;
gpio = <&gpio 31 GPIO_ACTIVE_HIGH>;
status = "disabled";
};
@@ -418,5 +418,10 @@ cam0_reg: &cam0_regulator {
sd_poll_once = <&emmc2>, "non-removable?";
spi_dma4 = <&spi0>, "dmas:0=", <&dma40>,
<&spi0>, "dmas:8=", <&dma40>;
cam0_reg = <&cam0_reg>,"status";
cam0_reg_gpio = <&cam0_reg>,"gpio:4";
cam1_reg = <&cam1_reg>,"status";
cam1_reg_gpio = <&cam1_reg>,"gpio:4";
};
};

View File

@@ -148,7 +148,7 @@ Params:
Only required on CM1 & 3.
cam0_reg_gpio Set GPIO for CAM 0 regulator.
Default 31 on CM1 & 3.
Default 31 on CM1, 3, and 4S.
Default of GPIO expander 5 on CM4, but override
switches to normal GPIO.
@@ -156,7 +156,7 @@ Params:
Only required on CM1 & 3.
cam1_reg_gpio Set GPIO for CAM 1 regulator.
Default 3 on CM1 & 3.
Default 3 on CM1, 3, and 4S.
Default of GPIO expander 5 on CM4, but override
switches to normal GPIO.