How to read MIPI D Phy Register

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to read MIPI D Phy Register

6,855 次查看
milav_soni
Contributor III

Hello Guys,

I need to read the following MIPI D PHY Register value.

I do not find any offset of these registers in the software source.

Can you please help me out with this problem?

 

milav_soni_0-1654267679337.pngmilav_soni_0-1654267679337.png

Thank you

标签 (1)
标记 (1)
0 项奖励
回复
7 回复数

5,961 次查看
hhami_2040
Contributor III

Hello All,
We have a MIPI CSI Camera OV5640 and  Imx8!!
I’m looking into checking the state of the Imx8 MIPI CSI Registers when I run gstreamer pipeline at userspace:

gst-launch-1.0 v4l2src device='/dev/video0' ! video/x-raw,format=YUY2,width=1920,height=1080,framerate=30/1 ! waylandsink -v

Is there a standard command(s) to find out MIPI CSI status register?

I want to check MIPI status register at runtime userpace, such as:
a. ECC and CRC Error Status Register
b. IRQ Status Register
c. ErrSot HS Status Register
d. ErrSotSync HS Status Register
e. ErrEsc Status Register
f. ErrSyncEsc Status Register
g. ErrControl Status Register

Can you please guide me?
Thank you in advance.

0 项奖励
回复

5,070 次查看
zohargolan
Contributor III

Hi @hhami_2040 ,

I have a similar problem now that I tried to get the information on the inside of the MIPI dphy . Did you ever figure out how to get this information from the command line?

 

Thank you for your help

Zohar

0 项奖励
回复

6,834 次查看
joanxie
NXP TechSupport
NXP TechSupport

if you need set PMS, pls refer to the DSI_PLLCTRL register which located at 0x32E10094

S: Bit 1-3 

M : bit 4-13

P : bit 14-19

and you can refer to the driver about this register

"https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/gpu/drm/bridge/sec-dsim.c?h=lf-5.1...

#define PLLCTRL_SET_PMS(x)               REG_PUT(x, 19,  1)

pllctrl |= PLLCTRL_SET_PMS(dsim->pms) | PLLCTRL_PLLEN;

dsim_write(dsim, pllctrl, DSIM_PLLCTRL);

 

 

 

0 项奖励
回复

6,823 次查看
milav_soni
Contributor III

Hello @joanxie ,

I need to read the MIPI_DPHY memory map register value (section 13.7.10 in i.MX 8M Nano Application Processor Ref. Manual Rev. 1, 11/2020)which is 64bits in width.

  • Master PLL PMS Value setting Register
    (MIPI_DPHY_M_PLLPMS)
  • Master PLL Control Register (MIPI_DPHY_M_PLLCTL)
  • Master and Slave DPHY Control Register
    (MIPI_DPHY_B_DPHYCTL)
  • Master and Slave DPHY Control Register
    (MIPI_DPHY_M_DPHYCTL)
  • Master and Slave DPHY Control Register
    (MIPI_DPHY_S_DPHYCTL)

 

can you please tell me which of the above registers are located in which offset of the memory map?

Thank you in advance.

 

0 项奖励
回复

6,813 次查看
joanxie
NXP TechSupport
NXP TechSupport

current bsp doesn't use these registers, and you can check the latest i.mx8mp reference manual, which remove these registers already, imx8mn should be updated in the newer reference manual, so I couldn't tell the address of these registers

 

0 项奖励
回复

6,802 次查看
milav_soni
Contributor III

Hello @joanxie ,

Thank You for your reply.

So how i can verify, whether MIPI D Phy is working fine or not?

Because I am getting zero value in the "MIPI_CSIS_FRAME_COUNTER_CH0" register when 5MP Image capture.

So where is the problem? please help me out with this problem.

Thank You

0 项奖励
回复

6,783 次查看
joanxie
NXP TechSupport
NXP TechSupport

you can dump csi registers to check one by one and check the logfile, your information is too limited to know the issue

 

0 项奖励
回复