Re: [PATCH] arm64: dts: ti: k3-am62x-sk: Add orientation to IMX219 sensor node

From: Kieran Bingham

Date: Wed Nov 04 2026 - 12:30:03 EST


Hi Thorsten,


Quoting Thorsten Lannynd (2026-11-02 21:15:49)
> The IMX219 CSI2 expansion module is externally attached. Without the
> orientation property, V4L2_CID_CAMERA_ORIENTATION (0x009a0922) is not
> exposed and libcamera fails with:
>
> ERROR CameraSensor camera_sensor_raw.cpp:465 'imx219 4-0010':
> Mandatory V4L2 control 0x009a0922 not available
>
> Set orientation = <2> (V4L2_CAMERA_ORIENTATION_EXTERNAL) to fix this.
>
> Signed-off-by: Thorsten Lannynd <t-lannynd@xxxxxx>
> ---
> arch/arm64/boot/dts/ti/k3-am62x-sk-csi2-imx219.dtso | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm64/boot/dts/ti/k3-am62x-sk-csi2-imx219.dtso b/arch/arm64/boot/dts/ti/k3-am62x-sk-csi2-imx219.dtso
> index 149c59c07182..829ed98345dd 100644
> --- a/arch/arm64/boot/dts/ti/k3-am62x-sk-csi2-imx219.dtso
> +++ b/arch/arm64/boot/dts/ti/k3-am62x-sk-csi2-imx219.dtso

#include <dt-bindings/media/video-interface-devices.h>

> @@ -72,6 +72,7 @@ ov5640: camera@10 {
> VDDL-supply = <&reg_1p2v>;
>
> reset-gpios = <&exp1 13 GPIO_ACTIVE_HIGH>;
> + orientation = <2>;

and then you can do:

orientation = <MEDIA_ORIENTATION_EXTERNAL>;

--
Kieran


>
> port {
> csi2_cam0: endpoint {
> --
> 2.34.1
>