Driver of ST7703 under Linux 5.4.3

cancel
Showing results for 
Search instead for 
Did you mean: 

Driver of ST7703 under Linux 5.4.3

2,561 Views
snehal_jadhav
Contributor II

Hello all,

We are looking for the driver of the display driver chip ST7703 (The display panel being used is UE040HD-RB30-L043A). We are developing a custom board with i.mx8m mini. The BSP version is Yocto Linux 5.4.3. We are able to find the driver of ST7703 https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/panel/panel-sitronix-st7703.c but unable to port it as the driver which is available is for the latest kernel version.

Thanks.

13 Replies

2,472 Views
sd05
Contributor III

Hello Community,

I have same requirement as @snehal_jadhav, I am able to port the driver for st7703 the driver is getting loaded without any error but there is no display on the panel, please find the patch attached logs.

Someone please suggest how I can debug this issue further.

Driver Probe- Yes
Interface Created -Yes
Init Sequence Completed without any error -Yes
Backlight is on - Yes
Getting any image on display-no

0 Kudos

2,457 Views
davidebonfanti
Contributor II

I have the same behavior with im8mm custom board and ST7703-based panel.
I have a working solution with ilitek-9881 (drivers/drm/panel/panel-ilitek-ili9881c.c), but I'm not able to have backported ST7703 driver working. Also for me the driver behavior is as expected despite of what you can see on the display.

I have another issue: I'm not able to read registers from DSI interface (neither on the ilitek panel). I always get "wait rx done time out"  or   "wait pkthdr tx done time out"...


2,442 Views
sd05
Contributor III

have you tried giving the command user cmd enable before reading?

0 Kudos

2,449 Views
sd05
Contributor III

Can you share your working solution

 

0 Kudos

2,433 Views
davidebonfanti
Contributor II

HI sd05, I attach the ili9881c working solution. I did very minor changes to support my panel...
Its the same work I did without success for ST7703.

The read do not work in the probe (and I expected it since dsi it still not fully enabled) nor in the enable callback when all the writes are performed apparently succesfully.

Of course I would neet it to work in the probe to detect which panel I have connected (reading ID registers) an load the proper module.

Thanks

 

0 Kudos

2,215 Views
sd05
Contributor III

Hello @davidebonfanti 

Thank you so much for sharing with us the working solution.

But still there is one challenge for us, as per our requirement we have to display the battery level on the lcd screen at uboot level, I have tried few ways do so but none of them are working.

If you are able to display the splash screen at uboot level or have any idea to do so please share.

Thanks in advance!

0 Kudos

2,199 Views
davidebonfanti
Contributor II

Hi, I don't have the need to use panel in uboot.
Everything I can tell is that using uboot imx_v2020.04_5.4.24_2.1.0, I had to turn on some clocks to enable dsi bus and being able to communicate with the panel.
I can see that in drivers/video/ there is the support for raydium panel used by the demoboard.
If you see what they have done with this panel and merge with the kernel-sitronix you should get the goal.
I can only share the patch to enable the clocks... (maybe on later uboots these were already running, but I'm not sure).
Hope this can help a bit

0 Kudos

2,195 Views
sd05
Contributor III

Thanks for your quick reply if you can share the patch that will be a great help we are working in the same direction but somehow not able to reach the goal..

uboot version-

U-Boot 2019.04

Thanks!

0 Kudos

2,189 Views
davidebonfanti
Contributor II

Hope this can help... even if it applies on a different version!

2,269 Views
davidebonfanti
Contributor II

I eventually had the sitronix st7703 driver working: the issue was with MIPI_DSI_MODE_LPM flag missing.

I attach the driver working form me in kernel 5.4.70.
For what concerns the driver identification, I ended up reading it in uboot and patching the devicetree accordingly.
Regards,
Davide

953 Views
jiangyaqiang
Contributor III

Hi davidebonfanti:

 

    I know it's a long time ago of your topic, but the issue has blocked me about two weeks.

    I'm tring the driver a ST7703 panel by IMX8MM, kernel 5.4.70. But fail to get it wok.

    I have downloaded your driver , just modify the mode and lane and init parameter according to vendor.

    And I found that it seems sometimes the init command is not send success, because sometimes the VCOM voltage of the panel is not correct(it should changed accord to init command of VCOM), and sometimes is correct.

    Any suggection ?

    Best Regards.

0 Kudos

2,267 Views
sd05
Contributor III

Thank you

0 Kudos

2,552 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Snehal,

 

Sorry but in this case you must port the driver to the current kernel you might have. The linux BSP doesn´t have this driver.

We apologize for the inconvenience