429b2bb2ea0094c7e35da7f561b3c4bbedd5fea5
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.15 / 950-0775-dtoverlays-Add-VCM-option-to-imx219.patch
1 From e6caf0202a5618e9f5a174c2ee4465ed2b44ea9e Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Fri, 11 Mar 2022 15:32:00 +0000
4 Subject: [PATCH] dtoverlays: Add VCM option to imx219
5
6 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
7 ---
8 arch/arm/boot/dts/overlays/README | 1 +
9 arch/arm/boot/dts/overlays/imx219-overlay.dts | 12 +++++++++++-
10 2 files changed, 12 insertions(+), 1 deletion(-)
11
12 --- a/arch/arm/boot/dts/overlays/README
13 +++ b/arch/arm/boot/dts/overlays/README
14 @@ -1869,6 +1869,7 @@ Params: rotation Mounting
15 configuring the sensor (default on)
16 cam0 Adopt the default configuration for CAM0 on a
17 Compute Module (CSI0, i2c_vc, and cam0_reg).
18 + vcm Configure a VCM focus drive on the sensor.
19
20
21 Name: imx290
22 --- a/arch/arm/boot/dts/overlays/imx219-overlay.dts
23 +++ b/arch/arm/boot/dts/overlays/imx219-overlay.dts
24 @@ -63,6 +63,13 @@
25 };
26 };
27 };
28 +
29 + vcm: ad5398@0c {
30 + compatible = "adi,ad5398";
31 + reg = <0x0c>;
32 + status = "disabled";
33 + VANA-supply = <&cam1_reg>;
34 + };
35 };
36 };
37
38 @@ -91,6 +98,9 @@
39 <&csi_frag>, "target:0=",<&csi0>,
40 <&clk_frag>, "target:0=",<&cam0_clk>,
41 <&imx219>, "clocks:0=",<&cam0_clk>,
42 - <&imx219>, "VANA-supply:0=",<&cam0_reg>;
43 + <&imx219>, "VANA-supply:0=",<&cam0_reg>,
44 + <&vcm>, "VANA-supply:0=", <&cam0_reg>;
45 + vcm = <&vcm>, "status=okay",
46 + <&imx219>,"lens-focus:0=", <&vcm>;
47 };
48 };