1 From ca1159109b527af8450b627936c6eb732f496c14 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Wed, 6 Jan 2021 17:42:31 +0000
4 Subject: [PATCH] dtoverlays: Update sensor overlays to use cam1_reg
7 Update those overlays that use the regulator framework to use the
8 new cam1_reg node to control the camera shutdown line, and remove
9 the firmware workaround nodes.
11 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
13 arch/arm/boot/dts/overlays/imx219-overlay.dts | 18 +++++---------
14 .../boot/dts/overlays/imx290_327-overlay.dtsi | 18 +++++---------
15 arch/arm/boot/dts/overlays/imx477-overlay.dts | 24 +++++++------------
16 arch/arm/boot/dts/overlays/ov7251-overlay.dts | 18 +++++---------
17 arch/arm/boot/dts/overlays/ov9281-overlay.dts | 19 ++++++---------
18 5 files changed, 34 insertions(+), 63 deletions(-)
20 --- a/arch/arm/boot/dts/overlays/imx219-overlay.dts
21 +++ b/arch/arm/boot/dts/overlays/imx219-overlay.dts
23 clocks = <&imx219_clk>;
26 - VANA-supply = <&imx219_vana>; /* 2.8v */
27 + VANA-supply = <&cam1_reg>; /* 2.8v */
28 VDIG-supply = <&imx219_vdig>; /* 1.8v */
29 VDDL-supply = <&imx219_vddl>; /* 1.2v */
35 - imx219_vana: fixedregulator@0 {
36 - compatible = "regulator-fixed";
37 - regulator-name = "imx219_vana";
38 - regulator-min-microvolt = <2800000>;
39 - regulator-max-microvolt = <2800000>;
40 - gpio = <&gpio 41 GPIO_ACTIVE_HIGH>;
43 imx219_vdig: fixedregulator@1 {
44 compatible = "regulator-fixed";
45 regulator-name = "imx219_vdig";
50 - target-path="/__overrides__";
51 + target = <&cam1_reg>;
53 - cam0-pwdn-ctrl = <&imx219_vana>,"gpio:0";
54 - cam0-pwdn = <&imx219_vana>,"gpio:4";
56 + regulator-name = "imx219_vana";
57 + regulator-min-microvolt = <2800000>;
58 + regulator-max-microvolt = <2800000>;
62 --- a/arch/arm/boot/dts/overlays/imx290_327-overlay.dtsi
63 +++ b/arch/arm/boot/dts/overlays/imx290_327-overlay.dtsi
66 clock-frequency = <37125000>;
68 - vdda-supply = <&imx290_vdda>; /* 2.8v */
69 + vdda-supply = <&cam1_reg>; /* 2.8v */
70 vdddo-supply = <&imx290_vdddo>; /* 1.8v */
71 vddd-supply = <&imx290_vddd>; /* 1.5v */
77 - imx290_vdda: fixedregulator@0 {
78 - compatible = "regulator-fixed";
79 - regulator-name = "imx290_vdda";
80 - regulator-min-microvolt = <2800000>;
81 - regulator-max-microvolt = <2800000>;
82 - gpio = <&gpio 41 GPIO_ACTIVE_HIGH>;
85 imx290_vdddo: fixedregulator@1 {
86 compatible = "regulator-fixed";
87 regulator-name = "imx290_vdddo";
92 - target-path="/__overrides__";
93 + target = <&cam1_reg>;
95 - cam0-pwdn-ctrl = <&imx290_vdda>,"gpio:0";
96 - cam0-pwdn = <&imx290_vdda>,"gpio:4";
98 + regulator-name = "imx290_vdda";
99 + regulator-min-microvolt = <2800000>;
100 + regulator-max-microvolt = <2800000>;
104 --- a/arch/arm/boot/dts/overlays/imx477-overlay.dts
105 +++ b/arch/arm/boot/dts/overlays/imx477-overlay.dts
107 clocks = <&imx477_clk>;
108 clock-names = "xclk";
110 - VANA-supply = <&imx477_vana>; /* 2.8v */
111 + VANA-supply = <&cam1_reg>; /* 2.8v */
112 VDIG-supply = <&imx477_vdig>; /* 1.05v */
113 VDDL-supply = <&imx477_vddl>; /* 1.8v */
119 - imx477_vana: fixedregulator@0 {
120 - compatible = "regulator-fixed";
121 - regulator-name = "imx477_vana";
122 - regulator-min-microvolt = <2800000>;
123 - regulator-max-microvolt = <2800000>;
124 - gpio = <&gpio 41 GPIO_ACTIVE_HIGH>;
125 - enable-active-high;
126 - startup-delay-us = <300000>;
128 - imx477_vdig: fixedregulator@1 {
129 + imx477_vdig: fixedregulator@0 {
130 compatible = "regulator-fixed";
131 regulator-name = "imx477_vdig";
132 regulator-min-microvolt = <1050000>;
133 regulator-max-microvolt = <1050000>;
135 - imx477_vddl: fixedregulator@2 {
136 + imx477_vddl: fixedregulator@1 {
137 compatible = "regulator-fixed";
138 regulator-name = "imx477_vddl";
139 regulator-min-microvolt = <1800000>;
144 - target-path="/__overrides__";
145 + target = <&cam1_reg>;
147 - cam0-pwdn-ctrl = <&imx477_vana>,"gpio:0";
148 - cam0-pwdn = <&imx477_vana>,"gpio:4";
150 + regulator-name = "imx477_vana";
151 + startup-delay-us = <300000>;
152 + regulator-min-microvolt = <2800000>;
153 + regulator-max-microvolt = <2800000>;
157 --- a/arch/arm/boot/dts/overlays/ov7251-overlay.dts
158 +++ b/arch/arm/boot/dts/overlays/ov7251-overlay.dts
160 clock-frequency = <24000000>;
162 vdddo-supply = <&ov7251_dovdd>;
163 - vdda-supply = <&ov7251_avdd>;
164 + vdda-supply = <&cam1_reg>;
165 vddd-supply = <&ov7251_dvdd>;
167 - enable-gpios = <&gpio 41 GPIO_ACTIVE_HIGH>;
171 remote-endpoint = <&csi1_ep>;
176 - ov7251_avdd: fixedregulator@0 {
177 - compatible = "regulator-fixed";
178 - regulator-name = "ov7251_avdd";
179 - regulator-min-microvolt = <2800000>;
180 - regulator-max-microvolt = <2800000>;
182 ov7251_dovdd: fixedregulator@1 {
183 compatible = "regulator-fixed";
184 regulator-name = "ov7251_dovdd";
189 - target-path="/__overrides__";
190 + target = <&cam1_reg>;
192 - cam0-pwdn-ctrl = <&ov7251>,"enable-gpios:0";
193 - cam0-pwdn = <&ov7251>,"enable-gpios:4";
195 + regulator-name = "ov7251_avdd";
196 + regulator-min-microvolt = <2800000>;
197 + regulator-max-microvolt = <2800000>;
201 --- a/arch/arm/boot/dts/overlays/ov9281-overlay.dts
202 +++ b/arch/arm/boot/dts/overlays/ov9281-overlay.dts
204 clocks = <&ov9281_clk>;
205 clock-names = "xvclk";
207 - avdd-supply = <&ov9281_avdd>;
208 + avdd-supply = <&cam1_reg>;
209 dovdd-supply = <&ov9281_dovdd>;
210 dvdd-supply = <&ov9281_dvdd>;
216 - ov9281_avdd: fixedregulator@0 {
217 - compatible = "regulator-fixed";
218 - regulator-name = "ov9281_avdd";
219 - regulator-min-microvolt = <2800000>;
220 - regulator-max-microvolt = <2800000>;
221 - gpio = <&gpio 41 GPIO_ACTIVE_HIGH>;
222 - enable-active-high;
224 ov9281_dovdd: fixedregulator@1 {
225 compatible = "regulator-fixed";
226 regulator-name = "ov9281_dovdd";
231 - target-path="/__overrides__";
232 + target = <&cam1_reg>;
234 - cam0-pwdn-ctrl = <&ov9281_avdd>,"gpio:0";
235 - cam0-pwdn = <&ov9281_avdd>,"gpio:4";
237 + regulator-name = "ov9281_avdd";
238 + regulator-min-microvolt = <2800000>;
239 + regulator-max-microvolt = <2800000>;