我有一个内核版本为 5.4.70 的 IMX8MP 处理器。
我正在尝试将相机连接到 csi0(相机 --> mipi csi 0 --> isi0 --> /dev/video0)。
在另一个输入(相机 --> mipi csi 1 --> isi0 --> /dev/video1)上,它可以在相同的设置下正常工作。
可能是什么问题呢?
camera_0: camera_0_mipi@3e {
compa
tible = "camera_0";
reg = <0x3e>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_csi0_rst>, <&pinctrl_csi0_pwn>;
csi_id = <0>;
reset-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>;
enable-gpios = <&gpio3 20 GPIO_ACTIVE_HIGH>;
mipi_csi;
status = "okay";
port {
camera_mipi_0_ep: endpoint {
bus-type = <4>;
data-lanes = <1 2 3 4>;
clock-lanes = <0>;
remote-endpoint = <&mipi_csi0_ep>;
};
};
};
camera_1: camera_1_mipi@3c {
compatible = "camera_1";
reg = <0x3c>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_csi1_rst>, <&pinctrl_csi1_pwn>;
csi_id = <1>;
reset-gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
enable-gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>;
mipi_csi;
status = "okay";
port {
camera_mipi_1_ep: endpoint {
bus-type = <4>;
data-lanes = <1 2 3 4>;
clock-lanes = <0>;
remote-endpoint = <&mipi_csi1_ep>;
};
};
};
&mipi_csi_0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
port@0 {
reg = <0>;
mipi_csi0_ep: endpoint {
remote-endpoint = <&camera_mipi_0_ep>;
data-lanes = <4>;
csis-hs-settle = <13>;
csis-clk-settle=<2>;
csis-wclk;
};
};
};
&mipi_csi_1 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
port@1 {
reg = <1>;
mipi_csi1_ep: endpoint {
remote-endpoint = <&camera_mipi_1_ep>;
data-lanes = <4>;
csis-hs-settle = <13>;
csis-clk-settle=<2>;
csis-wclk;
};
};
};
&cameradev {
status = "okay";
};
&isi_0 {
status = "okay";
cap_device {
status = "okay";
};
// m2m_device {
// status = "okay";
// };
};
&isi_1 {
status = "okay";
cap_device {
status = "okay";
};
};
&isp_0 {
status = "disabled";
};
&isp_1 {
status = "disabled";
};
&dewarp_0 {
status = "disabled";
};