Hi Community,
I am developing ISP driver for Sony IMX678 4K sensor and inheriting from my previous IMX296 2Mpixels. For the IMX296, following setting works well :
mipi_csi0_ep: endpoint {
remote-endpoint = <&imx296_mipi_0_ep>;
data-lanes = <1>;
clock-lane = <0>;
csis-hs-settle = <13>;
csis-clk-settle = <2>;
csis-wclk;
};
For the IMX678 with 1440Mbps/lane, I set :
mipi_csi0_ep: endpoint {
remote-endpoint = <&imx678_mipi_0_ep>;
data-lanes = <2>;
clock-lane = <0>;
csis-hs-settle = <31>;
csis-clk-settle = <2>;
csis-wclk;
};
I received none of following events :
[ 106.507262] mxc-mipi-csi2.0: Frame End events: 0
[ 106.514692] mxc-mipi-csi2.0: Frame Start events: 0
[ 106.519483] mxc-mipi-csi2.0: Non-image data after odd frame events: 0
[ 106.525922] mxc-mipi-csi2.0: Non-image data before odd frame events: 0
[ 106.532448] mxc-mipi-csi2.0: Non-image data after even frame events: 0
[ 106.538974] mxc-mipi-csi2.0: Non-image data before even frame events: 0
[ 106.545586] mxc-mipi-csi2.0: Unknown Error events: 0
[ 106.550548] mxc-mipi-csi2.0: CRC Error events: 0
[ 106.555166] mxc-mipi-csi2.0: ECC Error events: 0
[ 106.559782] mxc-mipi-csi2.0: FIFO Overflow Error events: 0
[ 106.565264] mxc-mipi-csi2.0: Lost Frame End Error events: 0
[ 106.570836] mxc-mipi-csi2.0: Lost Frame Start Error events: 0
[ 106.576581] mxc-mipi-csi2.0: SOT Error events: 0
There's no MIPI clock during the streaming as well.
Checking the sensor's specification, it says :
The pixel signals are output by the CSI-2 High-speed serial interface.
See the MIPI Standard
- MIPI Alliance Standard for Camera Serial Interface 2 (CSI-2) v1.2
- MIPI Alliance Specification for D-PHY Version 1.2
So should I change csis-clk-settle to 0 for MIPI CSI-2 version 1.2 as mentioned in the following ticket https://community.nxp.com/t5/i-MX-Processors/How-to-compute-S-CLKSETTLECTL-value-for-MIPI-CSI-2-rece... ? And could it be the cause of nothing received on the CSI-Rx side?
Best Regards,
Khang