NXP MCU 技术william hill官网
直播中

王萍

7年用户 1337经验值
私信 关注
[问答]

imx8mp CSI-2无法获取起始帧是为什么?

我正在开发带有 DART-MX8M-PLUS 的 2 通道相机。
CAM -> PR2000K(带 MIPI 输出的高清接收器) -> imx8m
PR2000K 仅支持时钟连续模式。没有非连续模式。
csi2-0 正常工作,但csi2-1 无法获取起始帧。奇怪的是,有时它会起作用。
下面是dts文件设置。
pr2000k_mipi1: pr2000k_mipi@5c {
  compatible = "pixelplus,pr2000k";
  reg = <0x5c>;
  时钟=<&clk IMX8MP_CLK_IPP_DO_CLKO2>;
  时钟名称=“xclk”;
  csi_id = <1>;
  mipi_csi;
  状态=“好的”;
  端口 {
    pr2000k_mipi_1_ep: 端点 {
    远程端点 = <&mipi_csi1_ep>;
    数据通道 = <1 2 3 4>;
    时钟通道=<0>;
  };
};
};
pr2000k_mipi0: pr2000k_mipi@5f {
  compatible = "pixelplus,pr2000k";
  reg = <0x5f>;
  时钟=<&clk IMX8MP_CLK_IPP_DO_CLKO2>;
  时钟名称=“xclk”;
  csi_id = <0>;
  mipi_csi;
  状态=“好的”;
  端口 {
    pr2000k_mipi_0_ep: 端点 {
    远程端点 = <&mipi_csi0_ep>;
    数据通道 = <1 2 3 4>;
    时钟通道=<0>;
  };
};
};
&mipi_csi_0 {
  #address-cells = <1>;
  #size-cells = <0>
  status = "okay";
  端口@0 {
    reg = <0>;
    mipi_csi0_ep: endpoint {
    远程端点 = <&pr2000k_mipi_0_ep>;
    数据通道 = <4>;
    csis-hs-settle = <3>;
    csis-clk-settle = <0>;
    csis-wclk;
  };
};
};
&mipi_csi_1 {
  #address-cells = <1>;
  #size-cells = <0>
  status = "okay";
  端口@1 {
    reg = <1>;
    mipi_csi1_ep: endpoint {
    远程端点 = <&pr2000k_mipi_1_ep>;
    数据通道 = <4>;
    csis-hs-settle = <3>;
    csis-clk-settle = <0>;
    csis-wclk;
  };
};
};

imx8-mipi-csi2-sam.c调试信息
csi2-1 无法获得如下所示的起始帧。
[ 167.160218] mxc-mipi-csi2.0: mipi_csis_s_stream: 1, state: 0x0
[ 167.160329] mxc-mipi-csi2.0: mipi_csis_imx8mp_phy_reset: 总线 fmt 是 12 位!
[ 167.160368] mxc-mipi-csi2.0: fmt: 0x2006, 1280 x 960
[ 167.160405] mxc-mipi-csi2.0: 帧开始: 1 [
167.160410] mxc-mipi-csi2.0: 状态: 01000000
[ 167.176222] mxc-mipi-csi2.0: --- mipi_csis_s_stream ---
[167.176234] mxc-mipi-csi2.0: CSIS_VERSION[0]: 0x03060301 [
167.176241] mxc-mipi-csi2.0: CSIS_CMN_CTRL[4]: 0x00004b05
[ 167.176247] mxc-mipi-csi2.0: CSIS_CLK_CTRL[8]: 0x000f0000
[167.176252] mxc-mipi-csi2.0: CSIS_INTMSK[10]: 0x0fffff1f [167.176258]
mxc-mipi-csi2.0:1CSIS_00:0x0000INTSRC
[167.176264]mxc-mipi-csi2.0:CSIS_DPHYSTATUS[20]:0x00000000
[167.176270]mxc-mipi-csi2.0:CSIS_DPHYCTRL[24]:0x0300001f
[167.176276]mxc-mipi-csi2.0:CSIS_DPHYBCTRL_L[30]:0x000001f4[
167.176283]mxc-mipi-LHY3:CSI2.0 0x00000000
[ 167.176289] mxc-mipi-csi2.0: CSIS_DPHYSCTRL_L[38]: 0x00000000 [
167.176295] mxc-mipi-csi2.0: CSIS_DPHYSCTRL_H[3c]: 0x00000000 [ 167.176295]: 0x00000000 [ 167.17620000000000000000000000000000000000000000000000000000000000000000]
ISPCONFIG_CH0[40] : 0x00001078
[ 167.176306] mxc-mipi-csi2.0: CSIS_ISPCONFIG_CH1[50]: 0x000008fd
[ 167.176313] mxc-mipi-csi2.0: CSIS_ISPCONFIG_CH2[60]: 0x000008fe [ 167.176313] mxc-mipi-csi2.0: 0x000008fe [ 167.17.0008fe: mx00008fe [
167.176313] mxc-mipi-csi-176 CSIS_ISPCONFIG_CH3[70 ]:0x000008ff
[167.176325] mxc-mipi-csi2.0:CSIS_ISPRESOL_CH0[44]:0x03c00500 [
167.176330] mxc-mipi-csi2.0:CSIS_ISPRESOL_CH1[54]:0x80008000
[167.176336] mxc-mipi-csi2.0: CSIS_ISPRESOL_CH2[64]: 0x80008000
[167.176342] mxc-mipi-csi2.0: CSIS_ISPRESOL_CH3[74]: 0x80008000 [167.176348] mxc-mipi-csi2[
167.176348] mxc.mipiYPS08NC[167.176342] mxc-mipi-csi2.0: 0x80008000 : 0x00000000
[ 167.176354] mxc-mipi-csi2.0: CSIS_ISPSYNC_CH1[58]: 0x00000000
[ 167.176359] mxc-mipi-csi2.0: CSIS_ISPSYNC_CH2[68]: 0x00000000 [ 167.176359]: 0x00000000 [
167.17636 ] ISPSYNC_CH3[78] : 0x00000000
[ 167.176371] mxc-mipi-csi2.0: --- mipi_csis_s_stream ---
[ 167.176376] mxc-mipi-csi2.0: GPR_GASKET_0_CTRL[60]: 0xffff8000 [ 167.176384] mxc-mize_0
:GPR_csi2 64]:0xffff8000
[167.176389] mxc-mipi-csi2.0:GPR_GASKET_0_VSIZE[68]:0xffff8000
[167.192412] mxc-mipi-csi2.0:帧结束:1
[167.192426]mxc-mipi-csi2.0:状态:00100000
[167.193739]mxc-mipi-csi2.0:帧开始:2
[167.193752]mxc-mipi-csi2.0:状态:01000000
[167.225753]mxc-mipi- csi2.0: 帧结束: 2
[ 167.225768] mxc-mipi-csi2.0: 状态: 00100000
[ 167.227075] mxc-mipi-csi2.0: 帧开始: 3
[ 167.227090] mxc-mipi-csi2.0: 状态: 01000000
[202.392216]mxc-mipi-csi2.1:mipi_csis_s_stream:1,状态:0x0
[202.392333]mxc-mipi-csi2.1:mipi_csis_imx8mp_phy_reset:总线 fmt 是 12 位!
[202.392372] mxc-mipi-csi2.1: fmt: 0x2006, 1280 x 960
[202.408216] mxc-mipi-csi2.1: --- mipi_csis_s_stream ---
[202.408228] mxc-mipi-csi2.1: CSIS_VERSION[0 ]: 0x03060301
[202.408235] mxc-mipi-csi2.1: CSIS_CMN_CTRL[4]: 0x00004b05
[202.408241] mxc-mipi-csi2.1: CSIS_CLK_CTRL[8]: 0x000f0000
[202.408246] mx000f0000 [202.408241] [ 10]:0x0FFFFF1F
[202.408252] MXC-MIPI-CSI2.1:CSIS_INTSRC [14]:0x00000000 [
202.408258]
MXC-MIPI-CSI2.1:CSIS_DPHYSTATUS [20] [24]: 0x0300001f
[202.408271]mxc-mipi-csi2.1:CSIS_DPHYBCTRL_L[30]:0x000001f4
[202.408279]mxc-mipi-csi2.1:CSIS_DPHYBCTRL_H[34]:0x00000000
[202.408285]mxc-dphybctrl_l[202.408285]mxc-mipi-csi2[202.408285] : 0x00000000
[202.408291] mxc-mipi-csi2.1: CSIS_DPHYSCTRL_H[3c]: 0x00000000
[202.408296] mxc-mipi-csi2.1: CSIS_ISPCONFIG_CH0[40]: 0x00001078 [202.mipi-cSIS-4083]
_ISPCONFIG_CH1[50] :0x000008fd
[202.408308] mxc-mipi-csi2.1:CSIS_ISPCONFIG_CH2[60]:0x000008fe
[202.408314] mxc-mipi-csi2.1:CSIS_ISPCONFIG_CH3[70]:0x000008ff [2022.408314]:0x000008ff [2022.mipicsi3
-mx88] SIS_ISPRESOL_CH0[44 ]:0x03c00500
[202.408327] mxc-mipi-csi2.1:CSIS_ISPRESOL_CH1[54]:0x80008000 [
202.408335] mxc-mipi-csi2.1:CSIS_ISPRESOL_CH2[64]:0x80008000
[202.408341]mxc-mipi-csi2.1:CSIS_ISPRESOL_CH3[74]:0x80008000
[202.408347]mxc-mipi-csi2.1:CSIS_ISPSYNC_CH0[48]:0x00000000
[202.408353]mxc-mipi-csi2[202.408353]mxc-mipi-csi2YPS5NC[202.408347] : 0x00000000
[ 202.408358] mxc-mipi-csi2.1: CSIS_ISPSYNC_CH2[68]: 0x00000000
[ 202.408365] mxc-mipi-csi2.1: CSIS_ISPSYNC_CH3[78]: 0x00000000 [ 202.408365]: 0x00000000
[ 202.40837-micx-micx-mi pi_csis_s_stream ---
[202.408376] mxc-mipi-csi2.1: GPR_GASKET_0_CTRL[60]: 0xffff8000
[202.408382] mxc-mipi-csi2.1: GPR_GASKET_0_HSIZE[64]: 0xffff8000 [202.408388] mxc-mipi2GASKET[GSIZE2-csiZE
] 68]:0xffff8000

两个通道都不是在连续模式下捕获的吗?
我应该用不同的接收芯片重新设计吗?

更多回帖

发帖
×
20
完善资料,
赚取积分