What's new

4" 640x480 IPS LCD Investigation (RG40XX)

YveltalGriffin

First Wii U Trimmer
.
Joined
Jun 7, 2016
Messages
435
Likes
2,021
Location
South Florida
Portables
5
In January, I noticed a recent Linux kernel patch for the LCD used in the Anbernic RG40XX series of handhelds ( YLM-LBV0400001X-V1 )

https://lkml.iu.edu/hypermail/linux/kernel/2411.0/04250.html

1749045984767.png


The panel part number prefix is YLM, which stands for Shenzhen Yangliming Electronic Technology Co., Ltd. (Anbernic's Chinese name). I've chased panel manufacturers before for quotes of similar 4" 640x480 panels, and GiantPlus (who makes the TFT glass) enforces a strict 10k pc MOQ. At $10-15 per panel wholesale, it's likely this panel was a big investment for Anbernic!

It uses the same NV3052C controller that the 3.5" 640x480 IPS LCD uses. The patches indicate it's a native landscape panel, and has a 24-bit parallel interface (RGB888)!

This is important because previously, the only 4" 640x480 panel on the market was a portrait, MIPI panel used in the RG405M. MIPI and portrait made it unusable for our projects.

A Reddit post from someone who damaged their RG40XXV corroborates the kernel patch-- the LCD FPC has lots of parallel data lines, indicating it's not MIPI. Furthermore, the RG40XX devices use an Allwinner H700 SOC. The H700 does not have a MIPI DSI PHY, only RGB888.

n3cf9446bfce1 (1).jpg
1749046511604.png


I purchased an RG40XXV to conduct some experiments. The panel is laminated with a glass bezel.

IMG_20250120_165705.jpg


To reverse engineer the pinout of the LCD, I first made some educated guesses based on the FPC layout and motherboard circuitry, and then wired out pins of interest to a logic analyzer.

Do not reference this pic for LCD pinout information!
IMG_20250120_123519.jpg


1000004496.jpg
1000004495.jpg


1000004494.jpg
1000004493.jpg


1000004492.jpg


The logic analyzer captures made it trivial to identify all the sideband and sync signals. But the order of the color signals was still a mystery. I wired the panel up to an RVL-DD for further testing.

1000004498.jpg


1000004483.jpg
1000004482.jpg


After a couple of days debugging with @Aurelio, we got the RGB bit order figured out and the panel sprang to life!

1000004484.jpg
1000004485.jpg

1000004486.jpg
1000004487.jpg


This screen is much more vibrant than the 3.5" 640x480 IPS!



While I can't share the test bitstream that Aurelio made for RVL-DD, I can share all of the information I gathered along the way. First, here's the final LCD pinout.

1000004479.png


The RG40XX drives the backlight at 30mA.

Next, this is the mating connector for the panel:

TE Connectivity 3-2328724-9
https://www.mouser.com/ProductDetail/TE-Connectivity/3-2328724-9?qs=w/v1CP2dgqqcC4iE1R/bkA==

Finally, I've attached a couple files to this post:
  • The cleaned up 9-bit SPI init sequence for the 4" 640x480 panel (csv format)
  • A DSView logic analyzer capture of various LCD signals (dsl format, contains timing/sync/reset information)
  • A basic 3D model of the 4" panel (F3D and STEP format)
This information should enable advanced users to pair this panel with FPGAs, driver boards such as the UT-HDMI035, or Retro GEM. Enjoy and have fun!
 

Attachments

Last edited:

Y2K

"The PS1 Guy"
Staff member
.
.
.
Joined
Apr 14, 2022
Messages
206
Likes
459
Location
Chicago, IL
Amazing work! I imagine this would "just work" with the UT-HDMI035 driver, provided you include a separate MCU to handle the SPI init sequence?
 

YveltalGriffin

First Wii U Trimmer
.
Joined
Jun 7, 2016
Messages
435
Likes
2,021
Location
South Florida
Portables
5
Good question!

H-Sync and V-Sync were inverted on this panel compared to the 3.5" panel, but that may or may not break compatibility with UT-HDMI035. The NV3052C datasheet doesn't seem to mention sync polarity, so maybe it can handle either type. Worst case, you could slap an inverter on the sync lines.

Other than that, yes, it should "just work" with an external host for SPI init. This is high on my list of things to test, so once I have results I will share them here.
 

Xenii

.
Joined
Feb 16, 2024
Messages
72
Likes
280
Location
Switzerland
Portables
Xii-Boy Original, Xii-Boy Pocket, Xii-Boy Ultra
Amazing work! ;)
 
Top