1 From 395fb7877a140602e4247690ad02975259bcc6ab Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Mon, 22 Nov 2021 12:30:18 +0000
4 Subject: [PATCH] dtoverlays: Convert ov5647 to use the regulator
7 Fixing up shutdown GPIOs via overrides is ugly, and doesn't work
8 on eg CM4 where both cameras share the same shutdown GPIO.
10 The driver is now updated to use the regulator framework, so switch
11 to using that instead.
13 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
15 arch/arm/boot/dts/overlays/ov5647-overlay.dts | 12 ++++++------
16 1 file changed, 6 insertions(+), 6 deletions(-)
18 --- a/arch/arm/boot/dts/overlays/ov5647-overlay.dts
19 +++ b/arch/arm/boot/dts/overlays/ov5647-overlay.dts
24 - pwdn-gpios = <&gpio 41 1>, <&gpio 32 1>;
27 + avdd-supply = <&cam1_reg>;
28 + dovdd-supply = <&cam_dummy_reg>;
29 + dvdd-supply = <&cam_dummy_reg>;
38 - target-path="/__overrides__";
39 + target = <&cam1_reg>;
41 - cam0-pwdn-ctrl = <&ov5647>,"pwdn-gpios:0";
42 - cam0-pwdn = <&ov5647>,"pwdn-gpios:4";
43 - cam0-led-ctrl = <&ov5647>,"pwdn-gpios:12";
44 - cam0-led = <&ov5647>,"pwdn-gpios:16";
45 + startup-delay-us = <20000>;