关于sensor植入

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

关于sensor植入

415 Views
lei11
Contributor I

我使用的是imx8mp开发板,我有一个自己的sensor(ar0234)需要接入开发板。

我基于ov5640驱动的基础上进行了修改。

目前ar0234 2lane,1920*1080的配置能够正常接收并存下图片

但是ar0234 4lane 1920*1080配置无法正常接收。

请问除了设备树上这两个地方需要修改成4lane,我还有什么需要注意什么地方吗

port {
ov5640_mipi_0_ep: endpoint {
remote-endpoint = <&mipi_csi0_ep>;
data-lanes = <1 2 3 4>;
clock-lanes = <0>;
};
};
 
 
port@0 {
reg = <0>;
mipi_csi0_ep: endpoint {
remote-endpoint = <&ov5640_mipi_0_ep>;
data-lanes = <4>;
csis-hs-settle = <13>;
csis-clk-settle = <2>;
csis-wclk;
};
};
Tags (1)
0 Kudos
Reply
1 Reply

400 Views
khang_letruong
Senior Contributor III

You will need to change the sensor's configuration (number of lane configuration register) so that it outputs data on all 4 lanes. You can use the oscilloscope to probe the signals of the data and clock lanes during the streaming. 

In the device-tree, you only need to change the number of lanes in the mipi-csi node to be connected to the sensor :

port@0 {
reg = <0>;
mipi_csi0_ependpoint {
remote-endpoint = <&ov5640_mipi_0_ep>;
data-lanes = <4>;
csis-hs-settle = <13>;
csis-clk-settle = <2>;
csis-wclk;
};
};

 

You can enable the debugging of mipi-csi driver in order to adjust the csis-hs-settle, csis-clk-settle if necessary: 

echo 2 > /sys/module/imx8_mipi_csi2_sam/parameters/debug

 

0 Kudos
Reply