[PATCH 2/3] arm64: dts: ti: k3-j721e-sk: Add orientation to IMX219 sensors

Thorsten Lannynd t-lannynd at ti.com
Mon Nov 9 10:08:58 PST 2026


The IMX219 CSI2 expansion modules are 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 = <MEDIA_ORIENTATION_EXTERNAL> on both sensor nodes
to fix this.

Signed-off-by: Thorsten Lannynd <t-lannynd at ti.com>
---
 arch/arm64/boot/dts/ti/k3-j721e-sk-csi2-dual-imx219.dtso | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-j721e-sk-csi2-dual-imx219.dtso b/arch/arm64/boot/dts/ti/k3-j721e-sk-csi2-dual-imx219.dtso
index 4eb3cffab032..c3403232d767 100644
--- a/arch/arm64/boot/dts/ti/k3-j721e-sk-csi2-dual-imx219.dtso
+++ b/arch/arm64/boot/dts/ti/k3-j721e-sk-csi2-dual-imx219.dtso
@@ -11,6 +11,7 @@
 /plugin/;
 
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/media/video-interface-devices.h>
 #include "k3-pinctrl.h"
 
 &{/} {
@@ -64,6 +65,7 @@ imx219_0: imx219-0 at 10 {
 		VANA-supply = <&reg_2p8v>;
 		VDIG-supply = <&reg_1p8v>;
 		VDDL-supply = <&reg_1p2v>;
+		orientation = <MEDIA_ORIENTATION_EXTERNAL>;
 
 		port {
 			csi2_cam0: endpoint {
@@ -88,6 +90,7 @@ imx219_1: imx219-1 at 10 {
 		VANA-supply = <&reg_2p8v>;
 		VDIG-supply = <&reg_1p8v>;
 		VDDL-supply = <&reg_1p2v>;
+		orientation = <MEDIA_ORIENTATION_EXTERNAL>;
 
 		port {
 			csi2_cam1: endpoint {
-- 
2.34.1




More information about the linux-arm-kernel mailing list