October 25Oct 25 Hi, I'm working on bringing back support for the original LeMaker LCD panels on the Banana Pi Pro (LeMaker Banana Pro, A20) with current Armbian kernels. The old script.bin / fex files only worked with sunxi-3.4, so I ported the settings to device tree overlays: - 3.5" RGB 320x240 (BL035-RGB-002, already in panel-simple) - 5" RGB 800x480 (panel-dpi) - 7" LVDS 1024x600 (panel-lvds) - FT5x06 touch for all three (edt-ft5x06 driver) Repository: https://github.com/cyryllo/fex_configuration The overlays compile and apply cleanly to sun7i-a20-bananapro.dtb (kernel 6.18). I'm now building a Debian 13 (trixie) minimal image with the Armbian build framework that includes the overlays and the edt-ft5x06 module, and I'll test it on my 5" and 7" panels. I don't have the 3.5" panel, so testers are welcome. Plan once it's tested: - enable CONFIG_TOUCHSCREEN_EDT_FT5X06=m in the sunxi kernel config - submit the overlays, so the panels work on standard images I've also applied to become the maintainer of this board, as it currently has none. Feedback and test reports are very welcome.
October 26Oct 26 Author Quick update: the LeMaker panels work on current kernels! I've tested the 5" and 7" panels on real hardware, and both work on the Banana Pi Pro as well as on the original Banana Pi (non-Pro), using the same image (Armbian Debian 13 trixie, kernel 6.18). The picture appears as soon as the kernel starts, the backlight works too. The 3.5" panel is still untested since I don't have it, but it shares almost everything with the 5" one, so it will most likely work as well. The minimal image has no desktop, so I couldn't check touch yet. I'm now preparing an image with the XFCE desktop, which also includes a simple script to switch panels after boot (sudo lemaker-lcd 5 / 7 / 35 / off), so a single image will work with every panel. I'll post soon whether touch works too. Overlays, build scripts and images: https://github.com/cyryllo/fex_configuration
October 26Oct 26 Author Update: touch works now! The LeMaker 7" panel works completely on the Banana Pi Pro with a current kernel (Armbian Debian 13 trixie, kernel 6.18): display, backlight and touch. The 5" panel works too (display confirmed, touch uses exactly the same controller and wiring as the 7"), and the same image also runs on the original Banana Pi. Getting touch to work needed two fixes. First, the pin called ctp_wakeup in the old fex files (PH7) is actually the RESET line of the FT5x06 controller. Described as a "wake" pin, the edt-ft5x06 driver only waits 5 ms after power-up, and the controller doesn't answer yet. Described as reset-gpios, the driver waits 300 ms and the controller responds. Second, at boot the driver's first probe always fails with an I2C bus error (mv64xxx Ctlr Error, status 0x0, error -11), while the same probe a moment later succeeds. For now a small systemd service retries binding the driver after boot, so touch works right away. If anyone has an idea what causes that first I2C error on the A20, I'd be happy to hear it. There's now a single image for all panels with the XFCE desktop. The 7" panel is enabled by default, and you can switch panels with sudo lemaker-lcd 5 (or 35, 7, off) followed by a reboot, or by uncommenting one line in /boot/armbianEnv.txt. Image, overlays and build scripts: https://github.com/cyryllo/fex_configuration/releases https://photos.app.goo.gl/pM8WR9rU6tHn9ESh9 Edited October 26Oct 26 by Cyryl Sochacki
October 27Oct 27 Thank you for sharing your results Which other armbian boards would be compatible with the LeMaker LCD?
October 27Oct 27 Author @robertoj only boards with A20. I know they work with Banana Pi , Banana PRO (From lemaker) and Banana M1 and M1+ (from SINOVOIP). Edited October 27Oct 27 by Cyryl Sochacki
November 2Nov 2 Hey @Cyryl Sochacki ,thanks a lot for this work. Now my 12 year old SBCs can continue working.I have one problem: When I boot the Banana without connected HDMI the display works, but with HDMI connected I get the flicker und no stable picture on the lcd.Steffen Edited November 2Nov 2 by sgei
November 3Nov 3 Author 17 hours ago, sgei said:I have one problem: When I boot the Banana without connected HDMI the display works, but with HDMI connected I get the flicker und no stable picture on the lcd.Thanks a lot for the kind words and for the report!I found the cause: in the mainline kernel the LCD and HDMI share the same clock (PLL3). When HDMI is connected at boot, it reprograms that clock after the LCD has been set up, so the LCD ends up with a wrong pixel clock and the picture becomes unstable.I’ll fix this in the next version of the overlays. Until then, the simplest workaround is to boot without the HDMI cable connected.Could you tell me which screen you are using (5" or 7")? That will help me test the fix.
November 3Nov 3 Author @sgei New images are up: v0.5, with the LCD and an HDMI monitor working at the same time.Thanks for reporting the flickering. The cause was in the kernel: the LCD and HDMI share one clock source (PLL3) on the A20. When HDMI starts, it changes that clock after the LCD has already set it, so the LCD ends up with a wrong pixel clock and the picture flickers or isn't stable. The LCD clocks are now chosen so that they come from the same 297 MHz that HDMI uses, so they no longer fight over it. HDMI is set to 1920x1080 by default (1080p and 720p are the modes that match the LCD).There are two images. The XFCE image has the 7" panel enabled by default (the new 7-hdmi variant, it works with and without an HDMI monitor, about 50 Hz). The minimal image has no desktop and the LCD disabled, as a base for your own setup. You can switch panels with sudo lemaker-lcd 7-hdmi (or 7, 5, 35, off) followed by a reboot. If you don't need HDMI at all, there's also an overlay that turns it off. The release notes also explain how to change the brightness.I've tested the 7" together with an HDMI monitor and it works fine for me now. Could you please flash the new image and confirm that the flickering is gone on your setup too? If something is still wrong, please tell me which panel you use, which HDMI resolution, and post the output of dmesg | grep -iE "sun4i|lvds|panel|hdmi" and cat /boot/armbianEnv.txt.Download: https://github.com/cyryllo/fex_configuration/releasesThe 5" panel got the same fix (29.7 MHz instead of 30 MHz), but I haven't tested it with HDMI yet, so reports from 5" users are very welcome too.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.