i.mx93 CSI PPI Pattern Generator

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.mx93 CSI PPI Pattern Generator

1,725 Views
BHC
Contributor I

I am porting an image sensor driver to i.mx93(GitHub - MYiR-Dev/myir-imx-linux at develop_6.1.55). The mipi clock/data lanes seems OK in oscilloscope but there is no pixel received. gasket_dump shows,

[ 110.908719] dwc-mipi-csi2-host 4ae00000.csi: gasket: CSI REG: 0x2371c
[ 110.915164] dwc-mipi-csi2-host 4ae00000.csi: gasket: MIPI -> ISI pixel ctrl: 0x207
[ 110.922738] dwc-mipi-csi2-host 4ae00000.csi: gasket: MIPI -> ISI pixel cnt: 0x0
[ 110.930052] dwc-mipi-csi2-host 4ae00000.csi: gasket: MIPI -> ISI line cnt: 0x0

So I check if any data will be received when PPI Pattern Generator is on,

1.  PG is enabled by:

echo "enabled" > /sys/devices/platform/soc@0/42800000.bus/42800000.bus:camera/4ae00000.csi/ppi_pg_enable

2.  However, after stream is on and before stream is off(dwc_mipi_csi2_s_stream),  

dwc_mipi_csi2_dump shows PG is enabled but not running,

[ 110.782507] dwc-mipi-csi2-host 4ae00000.csi: DWC CSI2 PPI PG PATTERN HIGH: 0x440
[ 110.790003] dwc-mipi-csi2-host 4ae00000.csi: DWC CSI2 PPI PG PATTERN WIDTH: 0x780
[ 110.797512] dwc-mipi-csi2-host 4ae00000.csi: DWC CSI2 PPI PG CONFIG: 0x2400
[ 110.804476] dwc-mipi-csi2-host 4ae00000.csi: DWC CSI2 PPI PG ENABLE: 0x1
[ 110.811188] dwc-mipi-csi2-host 4ae00000.csi: DWC CSI2 PPI PG STATUS: 0x0

 

I am wondering if there is any other register to configure to make PG running on imx93. Any suggestion is greatly appreciated, thx!

0 Kudos
Reply
4 Replies

1,627 Views
BHC
Contributor I

Understood. However, my question has nothing to do with the HW/SW desgin. Would you please let me know the essential REGISTER setting to  get Pattern Generator working? Thanks.

0 Kudos
Reply

1,616 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

We do lack of materials about MIPI CSI2 PPI Pattern generator register info.

There has no more register bits info about data type with Pattern Generator (PPI_PG_CONFIG).

Hui_Ma_0-1724145026679.png

What we know is the pattern supported color coding with below limitation:

RGB888 is supported in D-PHY (1, 2, 4 and 8 lanes) and C-PHY (3 trios) operation modes. No other color coding is supported.

I am sorry for this feedback. 

 

0 Kudos
Reply

1,608 Views
BHC
Contributor I

Hi,

Thanks for your reply. Data type is DT_RGB888(0x24) is my testing, however PG is still enabled but not active.Would anyone in this community like to share more information? Thanks.

0 Kudos
Reply

1,682 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

As our online support metrics, we provided support based NXP product official released evaluation board(i.MX93EVK) and  related software package.

Please contact with MYIR Electronics for MYC-LMX9X board support.

https://www.nxp.com/webapp/connect/displayPartnerProfile.sp?partnerId=12220

Thank you for the understanding.

Mike

0 Kudos
Reply