工具与软件:
您好!
我们一直在尝试使用 IMX327摄像头运行电路板、但没有成功。 基于此 链接、 我们已决定按照 IMX290摄像头的安装步骤进行操作、请查看基于现有 IMX219覆盖文件的附加 overlay .dtso 文件。 首先、我们尝试编译文件并将其上传到板中、然后在 Enable a New CSI-2 Sensor 指令后构建下一个全新的内核。 在这两种情况下、电路板均无法检测到摄像头。 为了澄清、.dtbo 文件可在电路板上找到、我们更改了 uEnv.txt 文件以将其包含在内。
// SPDX-License-Identifier: GPL-2.0
/*
* IMX290 Camera Module
*/
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
&{/} {
clk_imx290_fixed: imx290-xclk {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <37125000>; /* 37.125 MHz clock */
};
};
&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>;
imx290: camera@1a {
compatible = "sony,imx290lqr";
reg = <0x1a>;
clocks = <&clk_imx290_fixed>;
clock-names = "xclk";
clock-frequency = <37125000>;
reset-gpios = <&exp1 13 GPIO_ACTIVE_HIGH>;
port {
csi2_cam0: endpoint {
remote-endpoint = <&csi2rx0_in_sensor>;
link-frequencies = /bits/ 64 <445500000 297000000>;
clock-lanes = <0>;
data-lanes = <1 2>;
};
};
};
};
};
};
&cdns_csi2rx0 {
ports {
#address-cells = <1>;
#size-cells = <0>;
csi0_port0: port@0 {
reg = <0>;
status = "okay";
csi2rx0_in_sensor: endpoint {
remote-endpoint = <&csi2_cam0>;
bus-type = <4>; /* CSI2 DPHY */
clock-lanes = <0>;
data-lanes = <1 2>;
};
};
};
};
&ti_csi2rx0 {
status = "okay";
};
&dphy0 {
status = "okay";
};
此致、
Konrad