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!