Skip to content

Commit 6d3b091

Browse files
committed
dt/dtoverlays: imx477: Add parameter to set camera module rotation
Add a rotation DT overlay parameter to allow specifying the camera module mounting rotation. Set the default rotation to 180 as the module is typically mounted upside-down. Signed-off-by: Laurent Pinchart <[email protected]>
1 parent 65ec395 commit 6d3b091

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,8 +1458,9 @@ Name: imx477
14581458
Info: Sony IMX477 camera module.
14591459
Uses Unicam 1, which is the standard camera connector on most Pi
14601460
variants.
1461-
Load: dtoverlay=imx477
1462-
Params: <None>
1461+
Load: dtoverlay=imx477,<param>=<val>
1462+
Params: rotation Mounting rotation of the camera sensor (0 or
1463+
180)
14631464

14641465

14651466
Name: iqaudio-codec

arch/arm/boot/dts/overlays/imx477-overlay.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
VDIG-supply = <&imx477_vdig>; /* 1.05v */
2828
VDDL-supply = <&imx477_vddl>; /* 1.8v */
2929

30+
rotation = <180>;
31+
3032
port {
3133
imx477_0: endpoint {
3234
remote-endpoint = <&csi1_ep>;
@@ -110,4 +112,8 @@
110112
cam0-pwdn = <&imx477_vana>,"gpio:4";
111113
};
112114
};
115+
116+
__overrides__ {
117+
rotation = <&imx477>,"rotation:0";
118+
};
113119
};

0 commit comments

Comments
 (0)