我使用的是imx8mp开发板,我有一个自己的sensor(ar0234)需要接入开发板。
我基于ov5640驱动的基础上进行了修改。
目前ar0234 2lane,1920*1080的配置能够正常接收并存下图片
但是ar0234 4lane 1920*1080配置无法正常接收。
请问除了设备树上这两个地方需要修改成4lane,我还有什么需要注意什么地方吗
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 :
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