mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
arm64: dts: ti: k3-am69-aquila: Add Toradex OV5640 CSI cameras
Add device tree overlays for the Toradex OV5640 CSI cameras on Aquila CSI_1 and CSI_2. Two variants are supported for each interface: the current CSI Camera Set 5MP OV5640 with a 27 MHz oscillator and the legacy CSI Module 5MP OV5640 with a 24 MHz oscillator. On the Aquila AM69 Development Board, CSI_1 is exposed on connector J70 and CSI_2 is exposed on connector J71. 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/ Signed-off-by: Vitor Soares <vitor.soares@toradex.com> Reviewed-by: Francesco Dolcini <francesco.dolcini@toradex.com> Link: https://patch.msgid.link/20260602115123.1324474-16-ivitro@gmail.com Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
This commit is contained in:
parent
9adea5f841
commit
c43c1b16c6
|
|
@ -200,6 +200,10 @@ dtb-$(CONFIG_ARCH_K3) += k3-am69-aquila-adapter-panel-cap-touch-10inch-dsi.dtbo
|
|||
dtb-$(CONFIG_ARCH_K3) += k3-am69-aquila-adapter-panel-cap-touch-7inch-dsi.dtbo
|
||||
dtb-$(CONFIG_ARCH_K3) += k3-am69-aquila-clover-panel-cap-touch-10inch-dsi.dtb
|
||||
dtb-$(CONFIG_ARCH_K3) += k3-am69-aquila-clover.dtb
|
||||
dtb-$(CONFIG_ARCH_K3) += k3-am69-aquila-csi1-ov5640-24mhz.dtbo
|
||||
dtb-$(CONFIG_ARCH_K3) += k3-am69-aquila-csi1-ov5640.dtbo
|
||||
dtb-$(CONFIG_ARCH_K3) += k3-am69-aquila-csi2-ov5640-24mhz.dtbo
|
||||
dtb-$(CONFIG_ARCH_K3) += k3-am69-aquila-csi2-ov5640.dtbo
|
||||
dtb-$(CONFIG_ARCH_K3) += k3-am69-aquila-dev.dtb
|
||||
dtb-$(CONFIG_ARCH_K3) += k3-am69-aquila-dev-dsi-to-hdmi.dtb
|
||||
dtb-$(CONFIG_ARCH_K3) += k3-am69-aquila-dsi-to-hdmi.dtbo
|
||||
|
|
@ -329,6 +333,14 @@ k3-am69-aquila-dev-adapter-panel-cap-touch-10inch-dsi-dtbs := \
|
|||
k3-am69-aquila-dev-adapter-panel-cap-touch-7inch-dsi-dtbs := \
|
||||
k3-am69-aquila-dev.dtb \
|
||||
k3-am69-aquila-adapter-panel-cap-touch-7inch-dsi.dtbo
|
||||
k3-am69-aquila-dev-csi-ov5640-24mhz-dtbs := \
|
||||
k3-am69-aquila-dev.dtb \
|
||||
k3-am69-aquila-csi1-ov5640-24mhz.dtbo \
|
||||
k3-am69-aquila-csi2-ov5640-24mhz.dtbo
|
||||
k3-am69-aquila-dev-csi-ov5640-dtbs := \
|
||||
k3-am69-aquila-dev.dtb \
|
||||
k3-am69-aquila-csi1-ov5640.dtbo \
|
||||
k3-am69-aquila-csi2-ov5640.dtbo
|
||||
k3-am69-aquila-dev-dsi-to-lvds-panel-cap-touch-10inch-dtbs := \
|
||||
k3-am69-aquila-dev.dtb \
|
||||
k3-am69-aquila-dsi-to-lvds-panel-cap-touch-10inch.dtbo
|
||||
|
|
@ -418,6 +430,8 @@ dtb- += k3-am625-beagleplay-csi2-ov5640.dtb \
|
|||
k3-am69-aquila-clover-panel-cap-touch-7inch-dsi.dtb \
|
||||
k3-am69-aquila-dev-adapter-panel-cap-touch-10inch-dsi.dtb \
|
||||
k3-am69-aquila-dev-adapter-panel-cap-touch-7inch-dsi.dtb \
|
||||
k3-am69-aquila-dev-csi-ov5640-24mhz.dtb \
|
||||
k3-am69-aquila-dev-csi-ov5640.dtb \
|
||||
k3-am69-aquila-dev-dsi-to-lvds-panel-cap-touch-10inch.dtb \
|
||||
k3-am69-sk-csi2-dual-imx219.dtb \
|
||||
k3-am69-sk-pcie0-ep.dtb \
|
||||
|
|
|
|||
18
arch/arm64/boot/dts/ti/k3-am69-aquila-csi1-ov5640-24mhz.dtso
Normal file
18
arch/arm64/boot/dts/ti/k3-am69-aquila-csi1-ov5640-24mhz.dtso
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/*
|
||||
* Copyright (c) Toradex
|
||||
*
|
||||
* Toradex CSI Camera Module 5MP OV5640 on Aquila CSI_1.
|
||||
* Used on Development Board (J70). Uses a 24 MHz oscillator.
|
||||
*
|
||||
* https://developer.toradex.com/hardware/legacy-products/other/csi-camera-module-5mp-ov5640/
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include "k3-am69-aquila-csi1-ov5640.dtsi"
|
||||
|
||||
&clock_camera_csi_1 {
|
||||
clock-frequency = <24000000>;
|
||||
};
|
||||
76
arch/arm64/boot/dts/ti/k3-am69-aquila-csi1-ov5640.dtsi
Normal file
76
arch/arm64/boot/dts/ti/k3-am69-aquila-csi1-ov5640.dtsi
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/*
|
||||
* Copyright (c) Toradex
|
||||
*
|
||||
* Common device tree include for Toradex OV5640 CSI Camera on Aquila CSI_1.
|
||||
* Used on Development Board (J70).
|
||||
*/
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
&{/} {
|
||||
clock_camera_csi_1: clock-camera-csi-1 {
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
};
|
||||
|
||||
regulator_camera_csi_1: regulator-camera-csi-1 {
|
||||
compatible = "regulator-fixed";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_gpio_12_csi_1>;
|
||||
/* Aquila GPIO_12_CSI_1 - Camera Connector 24 */
|
||||
gpio = <&main_gpio0 48 GPIO_ACTIVE_HIGH>;
|
||||
enable-active-high;
|
||||
regulator-name = "V_CSI_1";
|
||||
startup-delay-us = <5000>;
|
||||
};
|
||||
};
|
||||
|
||||
&csi0_port0 {
|
||||
status = "okay";
|
||||
|
||||
csi0_port0_in: endpoint {
|
||||
remote-endpoint = <&csi0_port0_cam_out>;
|
||||
bus-type = <4>; /* CSI2 DPHY. */
|
||||
clock-lanes = <0>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
};
|
||||
|
||||
&dphy0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
/* Aquila I2C_4_CSI1 */
|
||||
&main_i2c1 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
camera@3c {
|
||||
compatible = "ovti,ov5640";
|
||||
reg = <0x3c>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_gpio_09_csi_1>, <&pinctrl_gpio_10_csi_1>;
|
||||
clocks = <&clock_camera_csi_1>;
|
||||
clock-names = "xclk";
|
||||
AVDD-supply = <®ulator_camera_csi_1>;
|
||||
DOVDD-supply = <®ulator_camera_csi_1>;
|
||||
DVDD-supply = <®ulator_camera_csi_1>;
|
||||
/* Aquila GPIO_10_CSI_1 - Camera Connector 22 */
|
||||
powerdown-gpios = <&main_gpio0 2 GPIO_ACTIVE_HIGH>;
|
||||
/* Aquila GPIO_09_CSI_1 - Camera Connector 11 */
|
||||
reset-gpios = <&main_gpio0 1 GPIO_ACTIVE_LOW>;
|
||||
|
||||
port {
|
||||
csi0_port0_cam_out: endpoint {
|
||||
remote-endpoint = <&csi0_port0_in>;
|
||||
clock-lanes = <0>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&ti_csi2rx0 {
|
||||
status = "okay";
|
||||
};
|
||||
19
arch/arm64/boot/dts/ti/k3-am69-aquila-csi1-ov5640.dtso
Normal file
19
arch/arm64/boot/dts/ti/k3-am69-aquila-csi1-ov5640.dtso
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/*
|
||||
* Copyright (c) Toradex
|
||||
*
|
||||
* Toradex CSI Camera Set 5MP OV5640 on Aquila CSI_1.
|
||||
* Used on Development Board (J70). Uses a 27 MHz oscillator.
|
||||
*
|
||||
* 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-am69-aquila-csi1-ov5640.dtsi"
|
||||
|
||||
&clock_camera_csi_1 {
|
||||
clock-frequency = <27000000>;
|
||||
};
|
||||
18
arch/arm64/boot/dts/ti/k3-am69-aquila-csi2-ov5640-24mhz.dtso
Normal file
18
arch/arm64/boot/dts/ti/k3-am69-aquila-csi2-ov5640-24mhz.dtso
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/*
|
||||
* Copyright (c) Toradex
|
||||
*
|
||||
* Toradex CSI Camera Module 5MP OV5640 on Aquila CSI_2.
|
||||
* Used on Development Board (J71). Uses a 24 MHz oscillator.
|
||||
*
|
||||
* https://developer.toradex.com/hardware/legacy-products/other/csi-camera-module-5mp-ov5640/
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include "k3-am69-aquila-csi2-ov5640.dtsi"
|
||||
|
||||
&clock_camera_csi_2 {
|
||||
clock-frequency = <24000000>;
|
||||
};
|
||||
76
arch/arm64/boot/dts/ti/k3-am69-aquila-csi2-ov5640.dtsi
Normal file
76
arch/arm64/boot/dts/ti/k3-am69-aquila-csi2-ov5640.dtsi
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/*
|
||||
* Copyright (c) Toradex
|
||||
*
|
||||
* Common device tree include for Toradex OV5640 CSI Camera on Aquila CSI_2.
|
||||
* Used on Development Board (J71).
|
||||
*/
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
&{/} {
|
||||
clock_camera_csi_2: clock-camera-csi-2 {
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
};
|
||||
|
||||
regulator_camera_csi_2: regulator-camera-csi-2 {
|
||||
compatible = "regulator-fixed";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_gpio_16_csi_2>;
|
||||
/* Aquila GPIO_16_CSI_2 - Camera Connector 24 */
|
||||
gpio = <&wkup_gpio0 39 GPIO_ACTIVE_HIGH>;
|
||||
enable-active-high;
|
||||
regulator-name = "V_CSI_2";
|
||||
startup-delay-us = <5000>;
|
||||
};
|
||||
};
|
||||
|
||||
&csi1_port0 {
|
||||
status = "okay";
|
||||
|
||||
csi1_port0_in: endpoint {
|
||||
remote-endpoint = <&csi1_port0_cam_out>;
|
||||
bus-type = <4>; /* CSI2 DPHY. */
|
||||
clock-lanes = <0>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
};
|
||||
|
||||
&dphy1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
/* Aquila I2C_5_CSI2 */
|
||||
&main_i2c2 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
camera@3c {
|
||||
compatible = "ovti,ov5640";
|
||||
reg = <0x3c>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_gpio_13_csi_2>, <&pinctrl_gpio_14_csi_2>;
|
||||
clocks = <&clock_camera_csi_2>;
|
||||
clock-names = "xclk";
|
||||
AVDD-supply = <®ulator_camera_csi_2>;
|
||||
DOVDD-supply = <®ulator_camera_csi_2>;
|
||||
DVDD-supply = <®ulator_camera_csi_2>;
|
||||
/* Aquila GPIO_14_CSI_2 - Camera Connector 22 */
|
||||
powerdown-gpios = <&wkup_gpio0 33 GPIO_ACTIVE_HIGH>;
|
||||
/* Aquila GPIO_13_CSI_2 - Camera Connector 11 */
|
||||
reset-gpios = <&wkup_gpio0 32 GPIO_ACTIVE_LOW>;
|
||||
|
||||
port {
|
||||
csi1_port0_cam_out: endpoint {
|
||||
remote-endpoint = <&csi1_port0_in>;
|
||||
clock-lanes = <0>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&ti_csi2rx1 {
|
||||
status = "okay";
|
||||
};
|
||||
19
arch/arm64/boot/dts/ti/k3-am69-aquila-csi2-ov5640.dtso
Normal file
19
arch/arm64/boot/dts/ti/k3-am69-aquila-csi2-ov5640.dtso
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/*
|
||||
* Copyright (c) Toradex
|
||||
*
|
||||
* Toradex CSI Camera Set 5MP OV5640 on Aquila CSI_2.
|
||||
* Used on Development Board (J71). Uses a 27 MHz oscillator.
|
||||
*
|
||||
* 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-am69-aquila-csi2-ov5640.dtsi"
|
||||
|
||||
&clock_camera_csi_2 {
|
||||
clock-frequency = <27000000>;
|
||||
};
|
||||
Loading…
Reference in New Issue
Block a user