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
1 hour ago, waylander said:

in my latest armbian

 

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

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

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...
0