1 From afed51afadb2f5d43e093c969bdf6535b2ea0ad3 Mon Sep 17 00:00:00 2001
2 From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
3 Date: Sat, 4 Jul 2020 03:04:38 +0300
4 Subject: [PATCH] dt/dtoverlays: imx477: Add parameter to set camera
7 Add a rotation DT overlay parameter to allow specifying the camera
8 module mounting rotation. Set the default rotation to 180 as the module
9 is typically mounted upside-down.
11 Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
13 arch/arm/boot/dts/overlays/README | 5 +++--
14 arch/arm/boot/dts/overlays/imx477-overlay.dts | 6 ++++++
15 2 files changed, 9 insertions(+), 2 deletions(-)
17 --- a/arch/arm/boot/dts/overlays/README
18 +++ b/arch/arm/boot/dts/overlays/README
19 @@ -1458,8 +1458,9 @@ Name: imx477
20 Info: Sony IMX477 camera module.
21 Uses Unicam 1, which is the standard camera connector on most Pi
23 -Load: dtoverlay=imx477
25 +Load: dtoverlay=imx477,<param>=<val>
26 +Params: rotation Mounting rotation of the camera sensor (0 or
31 --- a/arch/arm/boot/dts/overlays/imx477-overlay.dts
32 +++ b/arch/arm/boot/dts/overlays/imx477-overlay.dts
34 VDIG-supply = <&imx477_vdig>; /* 1.05v */
35 VDDL-supply = <&imx477_vddl>; /* 1.8v */
41 remote-endpoint = <&csi1_ep>;
43 cam0-pwdn = <&imx477_vana>,"gpio:4";
48 + rotation = <&imx477>,"rotation:0";