IMX8MP and sec-dsim.c support

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

IMX8MP and sec-dsim.c support

2,177 次查看
tylernol
Contributor IV

hi there,

 I am attempting to bring up a panel connected via MIPI DSI to the imx8MP . While looking at the source for the DSI bridge driver, I noticed that the driver has "disappeared" from the fslc branch. 

This is the last occurrance I see : https://github.com/Freescale/linux-fslc/commits/5.15-2.2.x-imx/drivers/gpu/drm/bridge/sec-dsim.c

I am currently using this branch:

linux-imx_5.10.72_2.2.0

where has the driver moved to in more current branches? I see some activity to consolidate with a Samsung version. 

 

 thanks!

 

 

 

0 项奖励
回复
3 回复数

2,088 次查看
tylernol
Contributor IV

this appears to be fine. Determined that there was bug in the clock enable sequencing, so commands were not being sent out. 

0 项奖励
回复

2,160 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

You need to check if your kernel is available from the new git:

https://github.com/nxp-imx

Regards

2,155 次查看
tylernol
Contributor IV

the driver still exists here, good! The line I am curious about is unchanged, so I will ask here.  https://github.com/nxp-imx/linux-imx/blob/29549c7073bf72cfb2c4614d37de45ec36b60475/drivers/gpu/drm/b...

```

if (packet.payload_length) {		/* Long Packet case */
		reinit_completion(&dsim->pl_tx_done);

		/* write packet payload */
		sec_mipi_dsim_write_pl_to_sfr_fifo(dsim,
						   packet.payload,
						   packet.payload_length);

		/* write packet header */
		sec_mipi_dsim_write_ph_to_sfr_fifo(dsim,
						   packet.header,
						   use_lpm);

		ret = wait_for_completion_timeout(&dsim->ph_tx_done,
						  MIPI_FIFO_TIMEOUT);
		if (!ret) {
			dev_err(dsim->dev, "wait payload tx done time out\n");
			return -EBUSY;
		}
	}
```

we are resetting 

dsim->pl_tx_done

 however we are waiting on :

wait_for_completion_timeout(&dsim->ph_tx_done,

 is this correct? Does the hw generate interrupts for both the pl_tx and the ph_tx for long packets? 

0 项奖励
回复