Other Parts Discussed in Thread: AM62A7
Hello,
We're working on getting the ov5647 sensor up and running on the AM62A evk for some tests, but we've hit a few bumps. We got the driver and .dtbo compiled and loaded onto the evk using uboot, but no MIPI CSI-2 interfaces are showing up. At first, we thought it could be the clock speed, but after looking into it, the 25 MHz we're using seems right for the ov5647. I've added my .dts code below. Can you check it out and let me know if you see any problems? A lot of the image sensors we plan to use, like the IMX415, aren't officially supported, so we want to be sure we're not missing anything important or messing up as we try to bring new ones online.
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/
*/
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
/ {
fragment@101 {
target-path = "/";
__overlay__ {
clk_ov5647_fixed: ov5647-xclk {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <25000000>;
};
};
};
};
&main_i2c2 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
i2c-switch@71 {
compatible = "nxp,pca9543";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x71>;
/* CAM port */
i2c@1 {
#address-cells = <1>;
#size-cells = <0>;
reg = <1>;
ov5647: camera@36 {
compatible = "ovti,ov5647";
reg = <0x36>;
clocks = <&clk_ov5647_fixed>;
clock-names = "xclk";
reset-gpios = <&exp1 13 GPIO_ACTIVE_LOW>;
port {
csi2_cam0: endpoint {
remote-endpoint = <&csi2rx0_in_sensor>;
//link-frequencies = /bits/ 64 <456000000>;
clock-lanes = <0>;
data-lanes = <1 2>;
};
};
};
};
};
};
&csi0_port0 {
status = "okay";
csi2rx0_in_sensor: endpoint {
remote-endpoint = <&csi2_cam0>;
bus-type = <4>; /* CSI2 DPHY. */
clock-lanes = <0>;
data-lanes = <1 2>;
};
};