[PATCH v1 17/18] ARM: tegra: tegratab: Add video input configuration
From: Svyatoslav Ryhel
Date: Sun Nov 22 2026 - 15:15:47 EST
Add camera nodes, VI and CSI graphs, and interlink them.
Signed-off-by: Svyatoslav Ryhel <clamor95@xxxxxxxxx>
---
.../tegra114-nvidia-tegratab-common.dtsi | 163 ++++++++++++++++++
1 file changed, 163 insertions(+)
diff --git a/arch/arm/boot/dts/nvidia/tegra114-nvidia-tegratab-common.dtsi b/arch/arm/boot/dts/nvidia/tegra114-nvidia-tegratab-common.dtsi
index 1e9df07dadc98..99f0d1c345e63 100644
--- a/arch/arm/boot/dts/nvidia/tegra114-nvidia-tegratab-common.dtsi
+++ b/arch/arm/boot/dts/nvidia/tegra114-nvidia-tegratab-common.dtsi
@@ -1,6 +1,8 @@
// SPDX-License-Identifier: GPL-2.0
#include <dt-bindings/input/input.h>
+#include <dt-bindings/media/video-interfaces.h>
+#include <dt-bindings/media/video-interface-devices.h>
#include <dt-bindings/thermal/thermal.h>
#include "tegra114.dtsi"
@@ -61,6 +63,91 @@ trustzone@bfe00000 {
};
host1x@50000000 {
+ vi@54080000 {
+ status = "okay";
+
+ csi@800 {
+ status = "okay";
+
+ avdd-dsi-csi-supply = <&avdd_dsi_csi>;
+
+ /* CSI-A */
+ channel@0 {
+ reg = <0>;
+
+ nvidia,mipi-calibrate = <&mipi 0x003>; /* CSIA & CSIB pads */
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+
+ csia_input: endpoint {
+ data-lanes = <1 2>;
+ remote-endpoint = <&rear_camera_output>;
+ };
+ };
+
+ port@1 {
+ reg = <1>;
+
+ csia_output: endpoint {
+ remote-endpoint = <&vi_ppa_input>;
+ };
+ };
+ };
+
+ /* CSI-B */
+ channel@1 {
+ reg = <1>;
+
+ nvidia,mipi-calibrate = <&mipi 0x00c>; /* CSIC & CSID pads */
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+
+ csib_input: endpoint {
+ data-lanes = <3>;
+ remote-endpoint = <&front_camera_output>;
+ };
+ };
+
+ port@1 {
+ reg = <1>;
+
+ csib_output: endpoint {
+ remote-endpoint = <&vi_ppb_input>;
+ };
+ };
+ };
+ };
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+
+ vi_ppa_input: endpoint {
+ remote-endpoint = <&csia_output>;
+ };
+ };
+
+ port@1 {
+ reg = <1>;
+
+ vi_ppb_input: endpoint {
+ remote-endpoint = <&csib_output>;
+ };
+ };
+ };
+ };
+
hdmi@54280000 {
status = "okay";
@@ -1270,6 +1357,82 @@ power-sensor@44 {
};
};
+ i2c@7000c500 {
+ status = "okay";
+ clock-frequency = <400000>;
+
+ ad5823: coil@c {
+ compatible = "adi,ad5823";
+ reg = <0x0c>;
+
+ VANA-supply = <&avdd_2v8_front>;
+ enable-gpios = <&gpio TEGRA_GPIO(BB, 7) GPIO_ACTIVE_HIGH>;
+ };
+
+ rear-camera@10 {
+ compatible = "ovti,ov5693";
+ reg = <0x10>;
+
+ reset-gpios = <&gpio TEGRA_GPIO(BB, 5) GPIO_ACTIVE_LOW>;
+
+ clocks = <&tegra_car TEGRA114_CLK_CSUS>;
+ clock-names = "xvclk";
+
+ avdd-supply = <&avdd_2v7_rear>;
+ dvdd-supply = <&vdd_1v8_vio>; // vdd_1v2_cam
+ dovdd-supply = <&vddio_1v8_cam>;
+
+ orientation = <MEDIA_ORIENTATION_BACK>;
+ rotation = <90>;
+
+// lens-focus = <&ad5823>;
+
+ assigned-clocks = <&tegra_car TEGRA114_CLK_VI_SENSOR>,
+ <&tegra_car TEGRA114_CLK_CSUS>;
+ assigned-clock-rates = <24000000>;
+ assigned-clock-parents = <&tegra_car TEGRA114_CLK_PLL_P>,
+ <&tegra_car TEGRA114_CLK_VI_SENSOR>;
+
+ port {
+ rear_camera_output: endpoint {
+ data-lanes = <1 2>;
+ bus-type = <MEDIA_BUS_TYPE_CSI2_DPHY>;
+ link-frequencies = /bits/ 64 <400000000>;
+ remote-endpoint = <&csia_input>;
+ };
+ };
+ };
+
+ front-camera@21 {
+ compatible = "ovti,ov7695";
+ reg = <0x21>;
+
+ clocks = <&tegra_car TEGRA114_CLK_CSUS>;
+
+ enable-gpios = <&gpio TEGRA_GPIO(BB, 3) GPIO_ACTIVE_HIGH>;
+
+ vdddo-supply = <&vddio_1v8_cam>;
+ vdda-supply = <&avdd_2v8_front>;
+ vddd-supply = <&vdd_1v8_vio>;
+
+ orientation = <MEDIA_ORIENTATION_FRONT>;
+
+ assigned-clocks = <&tegra_car TEGRA114_CLK_VI_SENSOR>,
+ <&tegra_car TEGRA114_CLK_CSUS>;
+ assigned-clock-rates = <24000000>;
+ assigned-clock-parents = <&tegra_car TEGRA114_CLK_PLL_P>,
+ <&tegra_car TEGRA114_CLK_VI_SENSOR>;
+
+ port {
+ front_camera_output: endpoint {
+ data-lanes = <3>;
+ link-frequencies = /bits/ 64 <96000000>;
+ remote-endpoint = <&csib_input>;
+ };
+ };
+ };
+ };
+
hdmi_ddc: i2c@7000c700 {
status = "okay";
clock-frequency = <100000>;
--
2.53.0