0
waylander

OPI Zero and XPT2046 (ADS7846) controller

Recommended Posts

Hello all,

 

i wonder what is the status of the support for this touchcontroller.

I've got to know that in latest kernels there is prebuilt support for it and in my latest armbian there is a module for this. But following this:

https://www.raspberrypi.org/forums/viewtopic.php?t=143581

i failed to make it work. May be i've done it the wrong way in armbianEnv.txt tho.

Should i just insert theese line into this file?

dtparam=i2c_arm=on
dtparam=spi=on
dtoverlay=ads7846,penirq=25,speed=10000,penirq_pull=2,xohms=150

According to dmesg log, module is loading, but nothing happens when i touch the screen.

 

If not, should i instead use methods that suggest compiling this driver?

https://sourceforge.net/p/openipmi/linux-ipmi/ci/master/tree/drivers/input/touchscreen/ads7846.c

 

I've made my tft working relatively easily, but now i seem to completely stuck.

Share this post


Link to post
Share on other sites
10 hours ago, Igor said:

 

Are you using 4.17.y or 4.14.y kernel? In 4.17.y this might not work properly yet.

i'm on 4.14 tho. can you confirm that i can simply copy those device tree lines to armbianEnv.txt without changes? i'm not sure here, but don't know the right answer.

Share this post


Link to post
Share on other sites
3 hours ago, waylander said:

can you confirm that i can simply copy those device tree lines to armbianEnv.txt without changes

 

Not that copy/paste simple. Check this generic DT manual https://docs.armbian.com/User-Guide_Allwinner_overlays/. Do some extensive search with www.armbian.com/search since its possible that someone already succeed in this. I don't deal much with those displays to give you the straight answer but I guess it should be possible to set it up.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
0