mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/3] arm64: dts: ti: k3-am67a-beagley-ai: Add orientation to IMX219 sensors
@ 2026-11-09 18:08 Thorsten Lannynd
  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
  0 siblings, 2 replies; 3+ messages in thread
From: Thorsten Lannynd @ 2026-11-09 18:08 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: b-brnich, praneeth, r-donadkar, devarsht, kieran.bingham,
	jai.luthra, Nishanth Menon, Vignesh Raghavendra, Tero Kristo,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
	linux-kernel

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 2/3] arm64: dts: ti: k3-j721e-sk: Add orientation to IMX219 sensors
  2026-11-09 18:08 [PATCH 1/3] arm64: dts: ti: k3-am67a-beagley-ai: Add orientation to IMX219 sensors Thorsten Lannynd
@ 2026-11-09 18:08 ` Thorsten Lannynd
  2026-11-09 18:08 ` [PATCH 3/3] arm64: dts: ti: k3-j722s-evm: " Thorsten Lannynd
  1 sibling, 0 replies; 3+ messages in thread
From: Thorsten Lannynd @ 2026-11-09 18:08 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: b-brnich, praneeth, r-donadkar, devarsht, kieran.bingham,
	jai.luthra, Nishanth Menon, Vignesh Raghavendra, Tero Kristo,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
	linux-kernel

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@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@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@10 {
 		VANA-supply = <&reg_2p8v>;
 		VDIG-supply = <&reg_1p8v>;
 		VDDL-supply = <&reg_1p2v>;
+		orientation = <MEDIA_ORIENTATION_EXTERNAL>;
 
 		port {
 			csi2_cam1: endpoint {
-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 3/3] arm64: dts: ti: k3-j722s-evm: Add orientation to IMX219 sensors
  2026-11-09 18:08 [PATCH 1/3] arm64: dts: ti: k3-am67a-beagley-ai: Add orientation to IMX219 sensors Thorsten Lannynd
  2026-11-09 18:08 ` [PATCH 2/3] arm64: dts: ti: k3-j721e-sk: " Thorsten Lannynd
@ 2026-11-09 18:08 ` Thorsten Lannynd
  1 sibling, 0 replies; 3+ messages in thread
From: Thorsten Lannynd @ 2026-11-09 18:08 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: b-brnich, praneeth, r-donadkar, devarsht, kieran.bingham,
	jai.luthra, Nishanth Menon, Vignesh Raghavendra, Tero Kristo,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
	linux-kernel

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 all four sensor nodes
to fix this.

Signed-off-by: Thorsten Lannynd <t-lannynd@ti.com>
---
 .../boot/dts/ti/k3-j722s-evm-csi2-quad-rpi-cam-imx219.dtso   | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-j722s-evm-csi2-quad-rpi-cam-imx219.dtso b/arch/arm64/boot/dts/ti/k3-j722s-evm-csi2-quad-rpi-cam-imx219.dtso
index 4107ef8c7b74..5d03e199b321 100644
--- a/arch/arm64/boot/dts/ti/k3-j722s-evm-csi2-quad-rpi-cam-imx219.dtso
+++ b/arch/arm64/boot/dts/ti/k3-j722s-evm-csi2-quad-rpi-cam-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"
 
 &main_pmx0 {
@@ -106,6 +107,7 @@ imx219_0: sensor@10 {
 			pinctrl-0 = <&cam0_reset_pins_default>;
 
 			reset-gpios = <&main_gpio0 15 GPIO_ACTIVE_HIGH>;
+			orientation = <MEDIA_ORIENTATION_EXTERNAL>;
 
 			port {
 				csi2_cam0: endpoint {
@@ -138,6 +140,7 @@ imx219_1: sensor@10 {
 			pinctrl-0 = <&cam1_reset_pins_default>;
 
 			reset-gpios = <&main_gpio0 17 GPIO_ACTIVE_HIGH>;
+			orientation = <MEDIA_ORIENTATION_EXTERNAL>;
 
 			port {
 				csi2_cam1: endpoint {
@@ -175,6 +178,7 @@ imx219_2: sensor@10 {
 			pinctrl-0 = <&cam2_reset_pins_default>;
 
 			reset-gpios = <&main_gpio0 19 GPIO_ACTIVE_HIGH>;
+			orientation = <MEDIA_ORIENTATION_EXTERNAL>;
 
 			port {
 				csi2_cam2: endpoint {
@@ -207,6 +211,7 @@ imx219_3: sensor@10 {
 			pinctrl-0 = <&cam3_reset_pins_default>;
 
 			reset-gpios = <&main_gpio0 21 GPIO_ACTIVE_HIGH>;
+			orientation = <MEDIA_ORIENTATION_EXTERNAL>;
 
 			port {
 				csi2_cam3: endpoint {
-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-09 18:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-09 18:08 [PATCH 1/3] arm64: dts: ti: k3-am67a-beagley-ai: Add orientation to IMX219 sensors Thorsten Lannynd
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

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®