1 From 9637391eb4ad9410f4a366b4d78c7cfd909572da Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Mon, 2 Aug 2021 14:30:15 +0100
4 Subject: [PATCH] dtoverlays: Add orientation (and rotation) parameter
7 Add the orientation parameter to all the camera sensor overlays to
8 avoid libcamera complaining, and add the rotation parameter where
9 it hadn't been added before.
11 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
13 arch/arm/boot/dts/overlays/README | 26 ++++++++++++++++---
14 arch/arm/boot/dts/overlays/imx219-overlay.dts | 2 ++
15 .../boot/dts/overlays/imx290_327-overlay.dtsi | 5 ++++
16 .../boot/dts/overlays/imx477_378-overlay.dtsi | 2 ++
17 arch/arm/boot/dts/overlays/ov5647-overlay.dts | 2 ++
18 arch/arm/boot/dts/overlays/ov7251-overlay.dts | 8 ++++++
19 arch/arm/boot/dts/overlays/ov9281-overlay.dts | 7 +++++
20 7 files changed, 48 insertions(+), 4 deletions(-)
22 --- a/arch/arm/boot/dts/overlays/README
23 +++ b/arch/arm/boot/dts/overlays/README
24 @@ -1682,6 +1682,8 @@ Info: Sony IMX219 camera module.
25 Load: dtoverlay=imx219,<param>=<val>
26 Params: rotation Mounting rotation of the camera sensor (0 or
28 + orientation Sensor orientation (0 = front, 1 = rear,
29 + 2 = external, default external)
33 @@ -1698,6 +1700,10 @@ Params: 4lane Enable 4
34 (the default), whilst those from Innomaker use
36 mono Denote that the module is a mono sensor.
37 + orientation Sensor orientation (0 = front, 1 = rear,
38 + 2 = external, default external)
39 + rotation Mounting rotation of the camera sensor (0 or
44 @@ -1707,6 +1713,8 @@ Info: Sony IMX378 camera module.
45 Load: dtoverlay=imx378,<param>=<val>
46 Params: rotation Mounting rotation of the camera sensor (0 or
48 + orientation Sensor orientation (0 = front, 1 = rear,
49 + 2 = external, default external)
53 @@ -1716,6 +1724,8 @@ Info: Sony IMX477 camera module.
54 Load: dtoverlay=imx477,<param>=<val>
55 Params: rotation Mounting rotation of the camera sensor (0 or
57 + orientation Sensor orientation (0 = front, 1 = rear,
58 + 2 = external, default external)
62 @@ -2141,22 +2151,30 @@ Info: Omnivision OV5647 camera module.
63 Load: dtoverlay=ov5647,<param>=<val>
64 Params: rotation Mounting rotation of the camera sensor (0 or
66 + orientation Sensor orientation (0 = front, 1 = rear,
67 + 2 = external, default external)
71 Info: Omnivision OV7251 camera module.
72 Uses Unicam 1, which is the standard camera connector on most Pi
74 -Load: dtoverlay=ov7251
76 +Load: dtoverlay=ov7251,<param>=<val>
77 +Params: rotation Mounting rotation of the camera sensor (0 or
79 + orientation Sensor orientation (0 = front, 1 = rear,
80 + 2 = external, default external)
84 Info: Omnivision OV9281 camera module.
85 Uses Unicam 1, which is the standard camera connector on most Pi
87 -Load: dtoverlay=ov9281
89 +Load: dtoverlay=ov9281,<param>=<val>
90 +Params: rotation Mounting rotation of the camera sensor (0 or
92 + orientation Sensor orientation (0 = front, 1 = rear,
93 + 2 = external, default external)
97 --- a/arch/arm/boot/dts/overlays/imx219-overlay.dts
98 +++ b/arch/arm/boot/dts/overlays/imx219-overlay.dts
100 VDDL-supply = <&imx219_vddl>; /* 1.2v */
110 rotation = <&imx219>,"rotation:0";
111 + orientation = <&imx219>,"orientation:0";
114 --- a/arch/arm/boot/dts/overlays/imx290_327-overlay.dtsi
115 +++ b/arch/arm/boot/dts/overlays/imx290_327-overlay.dtsi
117 clock-names = "xclk";
118 clock-frequency = <37125000>;
123 vdda-supply = <&cam1_reg>; /* 2.8v */
124 vdddo-supply = <&imx290_vdddo>; /* 1.8v */
125 vddd-supply = <&imx290_vddd>; /* 1.5v */
127 4lane = <0>, "-6+7-8+9";
128 clock-frequency = <&imx290_clk>,"clock-frequency:0",
129 <&imx290>,"clock-frequency:0";
130 + rotation = <&imx290>,"rotation:0";
131 + orientation = <&imx290>,"orientation:0";
134 --- a/arch/arm/boot/dts/overlays/imx477_378-overlay.dtsi
135 +++ b/arch/arm/boot/dts/overlays/imx477_378-overlay.dtsi
137 VDDL-supply = <&imx477_vddl>; /* 1.8v */
147 rotation = <&imx477>,"rotation:0";
148 + orientation = <&imx477>,"orientation:0";
151 --- a/arch/arm/boot/dts/overlays/ov5647-overlay.dts
152 +++ b/arch/arm/boot/dts/overlays/ov5647-overlay.dts
154 clocks = <&ov5647_clk>;
164 rotation = <&ov5647>,"rotation:0";
165 + orientation = <&ov5647>,"orientation:0";
168 --- a/arch/arm/boot/dts/overlays/ov7251-overlay.dts
169 +++ b/arch/arm/boot/dts/overlays/ov7251-overlay.dts
171 vdda-supply = <&cam1_reg>;
172 vddd-supply = <&ov7251_dvdd>;
179 remote-endpoint = <&csi1_ep>;
181 regulator-max-microvolt = <2800000>;
186 + rotation = <&ov7251>,"rotation:0";
187 + orientation = <&ov7251>,"orientation:0";
190 --- a/arch/arm/boot/dts/overlays/ov9281-overlay.dts
191 +++ b/arch/arm/boot/dts/overlays/ov9281-overlay.dts
193 dovdd-supply = <&ov9281_dovdd>;
194 dvdd-supply = <&ov9281_dvdd>;
201 remote-endpoint = <&csi1_ep>;
207 + rotation = <&ov9281>,"rotation:0";
208 + orientation = <&ov9281>,"orientation:0";