arm64: dts: ti: k3-am62p-verdin: Add Toradex OV5640 CSI Cameras

Add device tree overlays for the Toradex OV5640 CSI Cameras on Verdin
AM62P CSI_1. Two variants are supported: the current CSI Camera Set 5MP
OV5640 with a 27 MHz oscillator and the legacy CSI Camera Module 5MP
OV5640 with a 24 MHz oscillator.

Link: https://developer.toradex.com/hardware/accessories/cameras/csi-camera-module-5mp-ov5640-arducam
Link: https://developer.toradex.com/hardware/legacy-products/other/csi-camera-module-5mp-ov5640/
Reviewed-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Signed-off-by: Vitor Soares <vitor.soares@toradex.com>
Link: https://patch.msgid.link/20260716184300.85413-7-ivitro@gmail.com
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
This commit is contained in:
Vitor Soares 2026-07-16 19:43:01 +01:00 committed by Vignesh Raghavendra
parent 6060bb0c91
commit 8fa44cad1a
4 changed files with 115 additions and 0 deletions

View File

@ -90,6 +90,8 @@ dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-nonwifi-dev.dtb
dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-nonwifi-ivy.dtb
dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-nonwifi-mallow.dtb
dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-nonwifi-yavia.dtb
dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-ov5640-24mhz.dtbo
dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-ov5640.dtbo
dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-wifi-dahlia.dtb
dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-wifi-dev.dtb
dtb-$(CONFIG_ARCH_K3) += k3-am62p5-verdin-wifi-ivy.dtb
@ -312,6 +314,10 @@ k3-am62p5-sk-csi2-tevi-ov5640-dtbs := k3-am62p5-sk.dtb \
k3-am62x-sk-csi2-tevi-ov5640.dtbo
k3-am62p5-verdin-wifi-dev-nau8822-btl-dtbs := k3-am62p5-verdin-wifi-dev.dtb \
k3-am62p5-verdin-dev-nau8822-btl.dtbo
k3-am62p5-verdin-wifi-dev-ov5640-24mhz-dtbs := k3-am62p5-verdin-wifi-dev.dtb \
k3-am62p5-verdin-ov5640-24mhz.dtbo
k3-am62p5-verdin-wifi-dev-ov5640-dtbs := k3-am62p5-verdin-wifi-dev.dtb \
k3-am62p5-verdin-ov5640.dtbo
k3-am642-evm-icssg0-dtbs := \
k3-am642-evm.dtb k3-am642-evm-icssg0.dtbo
k3-am642-evm-icssg1-dualemac-dtbs := \
@ -435,6 +441,8 @@ dtb- += k3-am625-beagleplay-csi2-ov5640.dtb \
k3-am62p5-sk-csi2-ov5640.dtb \
k3-am62p5-sk-csi2-tevi-ov5640.dtb \
k3-am62p5-verdin-wifi-dev-nau8822-btl.dtb \
k3-am62p5-verdin-wifi-dev-ov5640-24mhz.dtb \
k3-am62p5-verdin-wifi-dev-ov5640.dtb \
k3-am642-evm-icssg0.dtb \
k3-am642-evm-icssg1-dualemac.dtb \
k3-am642-evm-icssg1-dualemac-mii.dtb \

View File

@ -0,0 +1,17 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/*
* Copyright (c) Toradex
*
* Toradex CSI Camera Module 5MP OV5640 on Verdin AM62P CSI_1.
*
* https://developer.toradex.com/hardware/legacy-products/other/csi-camera-module-5mp-ov5640/
*/
/dts-v1/;
/plugin/;
#include "k3-am62p5-verdin-ov5640.dtsi"
&clock_camera {
clock-frequency = <24000000>;
};

View File

@ -0,0 +1,72 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/*
* Copyright (c) Toradex
*
* Common device tree include for Toradex OV5640 CSI camera on Verdin AM62P CSI_1.
*/
#include <dt-bindings/gpio/gpio.h>
&{/} {
clock_camera: clock-camera {
compatible = "fixed-clock";
#clock-cells = <0>;
};
regulator_camera: regulator-camera {
compatible = "regulator-fixed";
/* Verdin GPIO_8_CSI (SODIMM 222) - CAM_1_CON_PWRCTRL */
gpio = <&main_gpio0 52 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-name = "V_CSI";
startup-delay-us = <5000>;
};
};
&csi0_port0 {
status = "okay";
csi2rx0_in_sensor: endpoint {
remote-endpoint = <&csi2_cam0>;
bus-type = <4>; /* CSI2 DPHY */
clock-lanes = <0>;
data-lanes = <1 2>;
};
};
&dphy0 {
status = "okay";
};
/* Verdin I2C_4_CSI */
&main_i2c3 {
#address-cells = <1>;
#size-cells = <0>;
camera@3c {
compatible = "ovti,ov5640";
reg = <0x3c>;
clocks = <&clock_camera>;
clock-names = "xclk";
AVDD-supply = <&regulator_camera>;
DOVDD-supply = <&regulator_camera>;
DVDD-supply = <&regulator_camera>;
/* Verdin GPIO_6 (SODIMM 218) - CAM_1_CON_PWRDWN */
powerdown-gpios = <&main_gpio0 50 GPIO_ACTIVE_HIGH>;
/* Verdin GPIO_5 (SODIMM 216) - CAM_1_CON_RST */
reset-gpios = <&main_gpio0 49 GPIO_ACTIVE_LOW>;
port {
csi2_cam0: endpoint {
remote-endpoint = <&csi2rx0_in_sensor>;
clock-lanes = <0>;
data-lanes = <1 2>;
};
};
};
};
&ti_csi2rx0 {
status = "okay";
};

View File

@ -0,0 +1,18 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/*
* Copyright (c) Toradex
*
* Toradex CSI Camera Set 5MP OV5640 on Verdin AM62P CSI_1.
*
* https://developer.toradex.com/hardware/accessories/cameras/csi-camera-module-5mp-ov5640-arducam
* https://www.toradex.com/accessories/csi-camera-ov5640
*/
/dts-v1/;
/plugin/;
#include "k3-am62p5-verdin-ov5640.dtsi"
&clock_camera {
clock-frequency = <27000000>;
};