View: 4218|Reply: 1

SPI freezes with tft and touch enabled together (OPiZero)

[Copy link]

3

threads

6

posts

47

credits

Novice

Rank: 1

credits
47
Published in 2018-8-14 13:32:44 | Show all floors |Read mode
Hi all!

I have Orange Pi Zero with armbian mainline kernel 4.14.
i'm not sure about the topic name, but to me seems like that.

I've managed to make spi tft work flawlessly on my zero. But after i've continued with touchscreen module, i've got problems.
After X is started, i can confirm touch is working, because when i touch the display, mouse pointer moves. But in the strange way, very laggy (more than a second to respond), but is works only for ~10 secs, then display stops to redraw.
And it is not because of bad contacts! Because i've soldered everything together. And it also freezes if i don't touch it.
The system is still working tho, because i can still connect to it.
And there is all fine in dmesg log.
I've also tried lowering SPI clocks from 16M to 500K, but of no good.

I'm not very good at linux, so i don't even know where to look for errors.

For those, who is not familiar with Orange Pi Zero SPI - tft is connected directly to spi bus, touch is connected to same bus, but CE1 is not there, so it is muxed to generic gpio10.
                                       

0

threads

18

posts

122

credits

Registered member

Rank: 2

credits
122
Published in 2018-8-14 20:51:44 | Show all floors
Hi,

do you have a schematic or something else of your circuit?

SPI can handle 2 slaves, if you use Slave Select/Chip select.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list