Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Waveshare 35-A working #181

Open
ozett opened this issue Jan 5, 2021 · 2 comments
Open

Waveshare 35-A working #181

ozett opened this issue Jan 5, 2021 · 2 comments

Comments

@ozett
Copy link

ozett commented Jan 5, 2021

glad that i found your comments:

// following values were observed to work (on a Pi 3B):

which states:

// core_freq=400: CDIV=14, results in 28.57MHz
// core_freq=255: CDIV=8, results in 31.875MHz

so i got my waveshare LCD A
https://www.waveshare.com/wiki/3.5inch_RPi_LCD_(A)

failed with 6 and 12, but
working with`-DSPI_BUS_CLOCK_DIVISOR=14 :

cmake -DSTATISTICS=0 -DDISPLAY_ROTATE_180_DEGREES=ON -DSPI_BUS_CLOCK_DIVISOR=14  -DILI9486=ON -DGPIO_TFT_RESET_PIN=25 -DGPIO_TFT_DATA_CONTROL=24 .. && make -j

maybe only different A vs. B on the touch-side

image

@juj
Copy link
Owner

juj commented Jan 9, 2021

Interesting info! By default the Pi 3B idles at 250MHz and turbos up to 400MHz, so divisor 14 gives a max rate of 28.57MHz for that display, same as the 35-B it seems. If you disable or force-enable the turbo on the Pi, then it allows controlling a tighter clock speed (see issue raspberrypi/firmware#992 about that - unfortunately Pi Foundation has stated that SPI displays are a niche use case for the Pi, so they are unwilling to improve this in hardware)

@ozett
Copy link
Author

ozett commented Jan 10, 2021

if i understand it right, i cant go higher than spi max rate of 28.57MHz with divisor 14
( as i experienced as working).

should i try to get the display working lower than 28.57MHz ?
that would mean higer divisors 14,16,18,20.... right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants