ESP32-P4 MIPI DSI commands for initializing

Apostal2008
Posts: 2
Joined: Fri Nov 15, 2024 9:59 am

ESP32-P4 MIPI DSI commands for initializing

Postby Apostal2008 » Fri Nov 15, 2024 10:13 am

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?

chegewara
Posts: 2375
Joined: Wed Jun 14, 2017 9:00 pm

Re: ESP32-P4 MIPI DSI commands for initializing

Postby chegewara » Wed Nov 20, 2024 6:04 am


Apostal2008
Posts: 2
Joined: Fri Nov 15, 2024 9:59 am

Re: ESP32-P4 MIPI DSI commands for initializing

Postby Apostal2008 » Wed Nov 20, 2024 11:22 am

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

chegewara
Posts: 2375
Joined: Wed Jun 14, 2017 9:00 pm

Re: ESP32-P4 MIPI DSI commands for initializing

Postby chegewara » Thu Nov 21, 2024 8:55 pm

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.

Who is online

Users browsing this forum: No registered users and 62 guests