In SabreSD board, ov5640_mipi have 2 lane and connected to MIPI CSI port.
In Customer board and test a custom mipi camera with two modes:
1. 1280x720@30fps 2lanes
2. 1920x1080@30fps 4lanes
Customer setting MIPI DPHY clock to match camera sensor clock.
Customer set lane=4 can get below log:
mipi csi2 can not reveive data correctly!
According the AN5305 doc, setting the MIPI DPHY clock (CSI2_PHY_TST_CTRL1)
- mipi_csi2_write(info, 0x00000014, CSI2_PHY_TST_CTRL1);
+ mipi_csi2_write(info, 0x00000008, CSI2_PHY_TST_CTRL1);
status = "okay";
ipu_id = <0>;
csi_id = <1>;
v_channel = <0>;
lanes = <2>; -> change to 4
Do you have any ideas about this? Thank you very Much.
Hi, Jimmy Chen,
The issue should be related to the MIPI Clock setting, customer's log "mipi csi2 can not reveive data correctly!", means data not correct, that is data has been received, but not correct.
So my advice is try to modify the clock root of MIPI CSI2 module.
So suggest you'd better try to modify MIPI CSI2's clock ROOT. you can find source code of i.MX6Q's clock tree at path "arch/arm/machimx/" or "drivers/clk/..."
Have a nice day!
NXP TIC weidong sun
Hi Wigros Sun,
We modify axi_clk rate from 264M to 528M as below setting.
It's can read AXI_PODF field set to divide by 1 (original setting is 2)
root@dmsst17_6dq:/data # ./memtool -32 0x20C4014 1
But the mipi camera still not worked and get error log.