Jump to content

OrangePi Zero LTS ili9341 TFT LCD (and later OrangePi Zero 3)


Go to solution Solved by robertoj,

Recommended Posts

Posted

If anyone needs h264 acceleration in opiz3, it is possible quickly with a version of Armbian from mid 2024, as shown in this thread:

https://forum.armbian.com/topic/32449-repository-for-v4l2request-hardware-video-decoding-rockchip-allwinner/?do=findComment&comment=205516

 

(in opi zero, h264 is already possible with official debian debs)

 

There are a few suggestions to make it work in the latest Armbian... I am bumping this thread because I have limited time with my opiz3, but you may be able to do it (and share).

 

More references of success: https://forum.armbian.com/topic/31848-cant-use-ffmpeg-hardware-accelration-v4l2-orange-pi-4-lts/?do=findComment&comment=175688

 

^ Actually, if you see that link, you will see a way to compile your own Armbian image, with some linux patches that allow ffmpeg-v4l2request do its work.

Posted

i tried your dts for opiz2w, and thank you, its helped me! but i have two problems: first - screen size is not 320x240 for my system (somewhere the line is being moved, although there is still space further on the screen, and the beginning of the line vertically is not at the very top of the screen, but in the middle), and second - bgr... i tried bgr = <0> and bgr = <1> and rgb = <0> etc... do you know, how to fix at least one of it?

Posted

oke, i found out, that system defines display in 240x320 mode, but i need 320x240, idk i tried to change height and weight values in dts

Posted

I can't understand your situation :( can yoiu send a photo of the LCD, the kernel version, and do some of the tests that I wrote in this thread?

 

Start with the DTS here: https://forum.armbian.com/topic/44191-orangepi-zero-lts-ili9341-tft-lcd-and-later-orangepi-zero-3/#findComment-205335

 

 

The bgr and rgb parameters are among the last things to fix (applies to only some LCD drivers)... do you even get a picture in the LCD with wrong colors?

Posted

Is anyone using the orange pi zero LTS or 3, with any ilitek LCD, with spi-gpio driver?

 

I had my LTS working with ili9341 and spi-gpio last year... but the touch is not working now... I think I changed the wiring or the DTS  in the running system but I can't tell.

Posted (edited)

I was having some trouble with newer ili9488 LCD v2.1, and I didn't have ili9488 LCD v1.1, so I decided to experiment again with ili9341 LCD v1.2.

 

I found that this DTS https://forum.armbian.com/topic/44191-orangepi-zero-lts-ili9341-tft-lcd-and-later-orangepi-zero-3/#findComment-204672

 

Doesn't work with the touch chip.

 

By accident, I ran the ili9488 driver on this ili9341, and I saw garbled graphics... but the good news: touch was working. Something in the ili9488 DTS which doesn't work for the ili9488 LCD, works for ili9341.

 

I found the difference was not in the ads7846 section, but in the spi speed for the ili9xxx part.

 

I switched back to the ili9341 DTS (with adafruit driver), but changed the SPI speed from 24MHZ to 40MHz.... then the ili9341 DTS was working with graphics and touch again :) ALTHOUGH the graphics have some flashing pseudo-colors in some places.

 

Maybe the 40MHZ is too much, but I re-gained touch in ili9341 LCD v1.1. I will keep doing experiments.

 

Playing with the SPI Mhz didn't help with the ili9488

Edited by robertoj
Posted

Hello @robertoj
I think i have the same problem with @RimYT above about wrong color with ili9486, i'm using screen MPI3501 which is clone screen of waveshare tft35
I apply the same device tree and guide in https://github.com/dev-null2019/orangepizero2w35tft. The screen work but i wrong color, it seem revered 
Red. —> blue
Green —> red
Blue. —> green

I also write detail in here 


I know my problem not totally related to your topic, but can you suggest me what i should to check more 
 

Posted

About wrong color i think the driver cause it.
Driver for render image in this kernel sunxi is ili9486drmtft. I get right color in raspberry pi 4 but raspberry pi 4 use fb_ili9486.
On this orangepi zero 2 w, i try 3 different OS but still get same wrong color after adding dts for ili9486
1. Orangepi OS Kernel 6.1
2. Armbian OS Kernel 6.1
3. Debian Bookworm 12 Kernel 6.1
All using ili9486drmtft and get wrong color

I also try to change bgr value in dts, but it only create change in .../spi@1.0.../bgr not the color on screen 

I try to get source code https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-6.1-sun50iw9 to change the bgr field in driver, but i can't insmod the module i build. It say invalid symbol

I see someone comment that after kenel 5.4 in repo sunxi remove fbtft_device, so we can't add the fb_ili9486 . The Offical OS supported by Orangepi has Kernel 5.4 Debian, i use it, but after add overlays and reboot, it seem wrong setup, ethernet not working, and i don't know why.
 

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines