Page 1 of 1

ESP32-P4 MIPI DSI commands for initializing

Posted: Fri Nov 15, 2024 10:13 am
by Apostal2008
Good afternoon,
after purchasing the board I start to run the standard display from the kit,
after which I go on to experiments with my display and have a questions.
How to correctly convert initialization MIPI DSI commands into the format as know esp32:

Code: Select all

LCM_Reset(LOW);

	Delay(1);	//1ms

	LCM_Reset(HIGH);

	Delay(5);	//5ms

	MIPI_Write(DCSLongWrite,6,0xF0,0x55,0xAA,0x52,0x08,0x00); 

	MIPI_Write(DCSWriteOneParameter,2,0xD0,0x22);

	MIPI_Write(DCSWriteNoParameter,1,0x11);
reset as I understand it can be done via the LCD_CMD_SWRESET command, but how do I set the levels for it?
and how do I correctly record the short and long recording commands?

Re: ESP32-P4 MIPI DSI commands for initializing

Posted: Wed Nov 20, 2024 6:04 am
by chegewara

Re: ESP32-P4 MIPI DSI commands for initializing

Posted: Wed Nov 20, 2024 11:22 am
by Apostal2008
chegewara wrote:
Wed Nov 20, 2024 6:04 am
I think its good to study existing drivers for mipi dsi displays
https://github.com/espressif/esp-iot-so ... cd_ek79007
https://github.com/espressif/esp-bsp/tr ... d_ili9881c
Of course I looked at these examples, I had questions about the initialization commands in them, that they do not look like the mipi standard. Now I learned that there is also an intermediate driver that interacts with the display and modifies the initialization lines from the example. In general, there is a great lack of documentation on working with mipi on esp32

Re: ESP32-P4 MIPI DSI commands for initializing

Posted: Thu Nov 21, 2024 8:55 pm
by chegewara
This is another driver which may be helpful.
https://github.com/espressif/esp-bsp/bl ... _lt8912b.c

It is MIPI to HDMI chip and i see it a good source of code to learn.
Yes, the mipi is not documented yet, but it is fairly new interface on esp32, so we have to wait.