mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thorsten Lannynd <t-lannynd@ti.com>
To: <linux-arm-kernel@lists.infradead.org>
Cc: <b-brnich@ti.com>, <praneeth@ti.com>, <r-donadkar@ti.com>,
	<devarsht@ti.com>, <kieran.bingham@ideasonboard.com>,
	<jai.luthra@ideasonboard.com>, Nishanth Menon <nm@ti.com>,
	"Vignesh Raghavendra" <vigneshr@ti.com>,
	Tero Kristo <kristo@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>, <devicetree@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>
Subject: [PATCH 1/3] arm64: dts: ti: k3-am67a-beagley-ai: Add orientation to IMX219 sensors
Date: Mon, 9 Nov 2026 12:08:57 -0600	[thread overview]
Message-ID: <20261109180859.4139929-1-t-lannynd@ti.com> (raw)

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 CSI0 and CSI1
sensor nodes to fix this.

Signed-off-by: Thorsten Lannynd <t-lannynd@ti.com>
---
 arch/arm64/boot/dts/ti/k3-am67a-beagley-ai-csi0-imx219.dtso | 2 ++
 arch/arm64/boot/dts/ti/k3-am67a-beagley-ai-csi1-imx219.dtso | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am67a-beagley-ai-csi0-imx219.dtso b/arch/arm64/boot/dts/ti/k3-am67a-beagley-ai-csi0-imx219.dtso
index 1b1c68f23cc3..c4c906f0000c 100644
--- a/arch/arm64/boot/dts/ti/k3-am67a-beagley-ai-csi0-imx219.dtso
+++ b/arch/arm64/boot/dts/ti/k3-am67a-beagley-ai-csi0-imx219.dtso
@@ -9,6 +9,7 @@
 /plugin/;
 
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/media/video-interface-devices.h>
 #include "k3-pinctrl.h"
 
 &{/} {
@@ -78,6 +79,7 @@ imx219_0: sensor@10 {
 		pinctrl-0 = <&cam0_reset_pins_default>;
 
 		reset-gpios = <&mcu_gpio0 15 GPIO_ACTIVE_HIGH>;
+		orientation = <MEDIA_ORIENTATION_EXTERNAL>;
 
 		port {
 			csi2_cam0: endpoint {
diff --git a/arch/arm64/boot/dts/ti/k3-am67a-beagley-ai-csi1-imx219.dtso b/arch/arm64/boot/dts/ti/k3-am67a-beagley-ai-csi1-imx219.dtso
index cf3729f5ae60..32305f46e58d 100644
--- a/arch/arm64/boot/dts/ti/k3-am67a-beagley-ai-csi1-imx219.dtso
+++ b/arch/arm64/boot/dts/ti/k3-am67a-beagley-ai-csi1-imx219.dtso
@@ -9,6 +9,7 @@
 /plugin/;
 
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/media/video-interface-devices.h>
 #include "k3-pinctrl.h"
 
 &{/} {
@@ -78,6 +79,7 @@ imx219_1: sensor@10 {
 		pinctrl-0 = <&cam1_reset_pins_default>;
 
 		reset-gpios = <&main_gpio1 24 GPIO_ACTIVE_HIGH>;
+		orientation = <MEDIA_ORIENTATION_EXTERNAL>;
 
 		port {
 			csi2_cam1: endpoint {
-- 
2.34.1


             reply	other threads:[~2026-11-09 18:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-09 18:08 Thorsten Lannynd [this message]
2026-11-09 18:08 ` [PATCH 2/3] arm64: dts: ti: k3-j721e-sk: " Thorsten Lannynd
2026-11-09 18:08 ` [PATCH 3/3] arm64: dts: ti: k3-j722s-evm: " Thorsten Lannynd

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261109180859.4139929-1-t-lannynd@ti.com \
    --to=t-lannynd@ti.com \
    --cc=b-brnich@ti.com \
    --cc=conor+dt@kernel.org \
    --cc=devarsht@ti.com \
    --cc=devicetree@vger.kernel.org \
    --cc=jai.luthra@ideasonboard.com \
    --cc=kieran.bingham@ideasonboard.com \
    --cc=kristo@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nm@ti.com \
    --cc=praneeth@ti.com \
    --cc=r-donadkar@ti.com \
    --cc=robh@kernel.org \
    --cc=vigneshr@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®