Hi!
After successfully launching the camera with continuous clock in this topic, I continued to connect another camera.
I can't get frames.
Camera parameters: 2 lanes mipi, pixel clock - 32.5MHz, width - 1280, height - 1024, fps 20.
I can't understand what I'm doing wrong. Clock waveform attached.
camera_0: camera_0_mipi@3e {
compatible = "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>;
clock-lanes = <0>;
clock-noncontinuous;
remote-endpoint = <&mipi_csi0_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 = <2>;
csis-hs-settle = <13>;
csis-clk-settle=<2>;
csis-wclk;
};
};
};
&mipi_csi_1 {
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
&cameradev {
status = "okay";
};
&isi_0 {
status = "okay";
cap_device {
status = "okay";
};
// m2m_device {
// status = "okay";
// };
};
&isi_1 {
status = "disabled";
cap_device {
status = "disabled";
};
};
&isp_0 {
status = "disabled";
};
&isp_1 {
status = "disabled";
};
&dewarp_0 {
status = "disabled";
};
It turns out that the processor does not see the data at all? Why can this be so?
[ 41.188511] mxc-mipi-csi2.0: mipi_csis_s_stream: 1, state: 0x0 [ 41.188617] mxc-mipi-csi2.0: fmt: 0x2006, 1280 x 1024 [ 41.203853] mxc-mipi-csi2.0: --- mipi_csis_s_stream --- [ 41.203860] mxc-mipi-csi2.0: CSIS_VERSION[0]: 0x03060301 [ 41.203863] mxc-mipi-csi2.0: CSIS_CMN_CTRL[4]: 0x00004905 [ 41.203867] mxc-mipi-csi2.0: CSIS_CLK_CTRL[8]: 0x000f0000 [ 41.203870] mxc-mipi-csi2.0: CSIS_INTMSK[10]: 0x0fffff1f [ 41.203874] mxc-mipi-csi2.0: CSIS_INTSRC[14]: 0x00000000 [ 41.203878] mxc-mipi-csi2.0: CSIS_DPHYSTATUS[20]: 0x000000f1 [ 41.203881] mxc-mipi-csi2.0: CSIS_DPHYCTRL[24]: 0x00000007 [ 41.203885] mxc-mipi-csi2.0: CSIS_DPHYBCTRL_L[30]: 0x000001f4 [ 41.203888] mxc-mipi-csi2.0: CSIS_DPHYBCTRL_H[34]: 0x00000000 [ 41.203892] mxc-mipi-csi2.0: CSIS_DPHYSCTRL_L[38]: 0x00000000 [ 41.203895] mxc-mipi-csi2.0: CSIS_DPHYSCTRL_H[3c]: 0x00000000 [ 41.203899] mxc-mipi-csi2.0: CSIS_ISPCONFIG_CH0[40]: 0x00001078 [ 41.203902] mxc-mipi-csi2.0: CSIS_ISPCONFIG_CH1[50]: 0x000008fd [ 41.203906] mxc-mipi-csi2.0: CSIS_ISPCONFIG_CH2[60]: 0x000008fe [ 41.203910] mxc-mipi-csi2.0: CSIS_ISPCONFIG_CH3[70]: 0x000008ff [ 41.203913] mxc-mipi-csi2.0: CSIS_ISPRESOL_CH0[44]: 0x04000500 [ 41.203917] mxc-mipi-csi2.0: CSIS_ISPRESOL_CH1[54]: 0x80008000 [ 41.203920] mxc-mipi-csi2.0: CSIS_ISPRESOL_CH2[64]: 0x80008000 [ 41.203924] mxc-mipi-csi2.0: CSIS_ISPRESOL_CH3[74]: 0x80008000 [ 41.203927] mxc-mipi-csi2.0: CSIS_ISPSYNC_CH0[48]: 0x00000000 [ 41.203931] mxc-mipi-csi2.0: CSIS_ISPSYNC_CH1[58]: 0x00000000 [ 41.203934] mxc-mipi-csi2.0: CSIS_ISPSYNC_CH2[68]: 0x00000000 [ 41.203938] mxc-mipi-csi2.0: CSIS_ISPSYNC_CH3[78]: 0x00000000 [ 41.203941] mxc-mipi-csi2.0: --- mipi_csis_s_stream --- [ 41.203945] mxc-mipi-csi2.0: GPR_GASKET_0_CTRL[60]: 0xffff8000 [ 41.203948] mxc-mipi-csi2.0: GPR_GASKET_0_HSIZE[64]: 0xffff8000 [ 41.203952] mxc-mipi-csi2.0: GPR_GASKET_0_VSIZE[68]: 0xffff8000 [ 42.466803] mxc-mipi-csi2.0: status: 02000000 ..... [ 43.758314] mxc-mipi-csi2.0: status: 00200000 [ 43.762729] mxc-mipi-csi2.0: status: 02000000 [ 43.808155] mxc-mipi-csi2.0: status: 00200000 [ 43.812575] mxc-mipi-csi2.0: status: 02000000 [ 43.858001] mxc-mipi-csi2.0: status: 00200000 [ 43.862418] mxc-mipi-csi2.0: status: 02000000 [ 43.895955] mxc-mipi-csi2.0: mipi_csis_s_stream: 0, state: 0x0 [ 43.895968] mxc-mipi-csi2.0: Frame End events: 0 [ 43.902123] mxc-mipi-csi2.0: Frame Start events: 0 [ 43.909775] mxc-mipi-csi2.0: Non-image data after odd frame events: 0 [ 43.919073] mxc-mipi-csi2.0: Non-image data before odd frame events: 0 [ 43.928458] mxc-mipi-csi2.0: Non-image data after even frame events: 0 [ 43.935673] mxc-mipi-csi2.0: Non-image data before even frame events: 0 [ 43.942283] mxc-mipi-csi2.0: Unknown Error events: 0 [ 43.947244] mxc-mipi-csi2.0: CRC Error events: 0 [ 43.951857] mxc-mipi-csi2.0: ECC Error events: 0 [ 43.956470] mxc-mipi-csi2.0: FIFO Overflow Error events: 0 [ 43.961951] mxc-mipi-csi2.0: Lost Frame End Error events: 0 [ 43.967519] mxc-mipi-csi2.0: Lost Frame Start Error events: 0 [ 43.973261] mxc-mipi-csi2.0: SOT Error events: 0
Hello,
Are you using the MX8Mplus EVK? you have a device tree in linux BSP that support two cameras MIPI-CSI.
Regards
Hello,
I'm using cpu your partner Forlinx FETMX8MP-C. with a kernel version 5.4.70.
I haven't problem problem running two cameras at the same time (4 lanes, continuous clock mode, 1920x1080@30, 148.5MHz pixel clock).
I have a problem connecting a specific camera (2 lanes mipi, pixel clock - 32.5MHz, 1280х1024@20). It issues a clock only at the moment of frame transfer. Clock waveform attached in topic start.
Thank You!