diff mbox series

[v8,09/10] ARM: dts: bcm2711-rpi-4-b: Add CAM1 regulator

Message ID 20240327000510.2541-10-laurent.pinchart@ideasonboard.com (mailing list archive)
State New
Headers show
Series media: Add driver for the Raspberry Pi <5 CSI-2 receiver | expand

Commit Message

Laurent Pinchart March 27, 2024, 12:05 a.m. UTC
Add a fixed regulator to model the power supply to the camera connector.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b.dts | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Dave Stevenson March 27, 2024, 2:49 p.m. UTC | #1
Hi Laurent

On Wed, 27 Mar 2024 at 00:05, Laurent Pinchart
<laurent.pinchart@ideasonboard.com> wrote:
>
> Add a fixed regulator to model the power supply to the camera connector.

As with the I2C0 mux stuff, this ideally wants to be generic rather
than 2711 only, but I'm happy to get it merged for Pi4 first and then
add the others.

Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>

> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> ---
>  arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b.dts | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b.dts b/arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b.dts
> index d5f8823230db..cfc8cb5e10ba 100644
> --- a/arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b.dts
> +++ b/arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b.dts
> @@ -15,6 +15,13 @@ chosen {
>                 stdout-path = "serial1:115200n8";
>         };
>
> +       cam1_reg: regulator-cam1 {
> +               compatible = "regulator-fixed";
> +               regulator-name = "cam1-reg";
> +               enable-active-high;
> +               gpio = <&expgpio 5 GPIO_ACTIVE_HIGH>;
> +       };
> +
>         sd_io_1v8_reg: regulator-sd-io-1v8 {
>                 compatible = "regulator-gpio";
>                 regulator-name = "vdd-sd-io";
> --
> Regards,
>
> Laurent Pinchart
>
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b.dts b/arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b.dts
index d5f8823230db..cfc8cb5e10ba 100644
--- a/arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b.dts
+++ b/arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b.dts
@@ -15,6 +15,13 @@  chosen {
 		stdout-path = "serial1:115200n8";
 	};
 
+	cam1_reg: regulator-cam1 {
+		compatible = "regulator-fixed";
+		regulator-name = "cam1-reg";
+		enable-active-high;
+		gpio = <&expgpio 5 GPIO_ACTIVE_HIGH>;
+	};
+
 	sd_io_1v8_reg: regulator-sd-io-1v8 {
 		compatible = "regulator-gpio";
 		regulator-name = "vdd-sd-io";