b0fe1e20a5217d7410da350fa38bc796273d44af
[openwrt/staging/neocturne.git] /
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
5 framework
6
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.
9
10 The driver is now updated to use the regulator framework, so switch
11 to using that instead.
12
13 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
14 ---
15 arch/arm/boot/dts/overlays/ov5647-overlay.dts | 12 ++++++------
16 1 file changed, 6 insertions(+), 6 deletions(-)
17
18 --- a/arch/arm/boot/dts/overlays/ov5647-overlay.dts
19 +++ b/arch/arm/boot/dts/overlays/ov5647-overlay.dts
20 @@ -18,9 +18,12 @@
21 reg = <0x36>;
22 status = "okay";
23
24 - pwdn-gpios = <&gpio 41 1>, <&gpio 32 1>;
25 clocks = <&cam1_clk>;
26
27 + avdd-supply = <&cam1_reg>;
28 + dovdd-supply = <&cam_dummy_reg>;
29 + dvdd-supply = <&cam_dummy_reg>;
30 +
31 rotation = <0>;
32 orientation = <2>;
33
34 @@ -67,12 +70,9 @@
35 };
36
37 fragment@4 {
38 - target-path="/__overrides__";
39 + target = <&cam1_reg>;
40 __overlay__ {
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>;
46 };
47 };
48