[linux-sunxi] zet6221 ts driver testing

1,462 views
Skip to first unread message

alex allss

unread,
Mar 14, 2013, 2:18:03 PM3/14/13
to linux...@googlegroups.com
Hello, I make open-source driver for Zet6221 Touchscreen ,and have
workable prototype, still buggy at all.
I need testers who have tablets with this IC an can test prototype,
this IC can have different configuration,
firmware, depend screensize, wires connections, etc. It requred
testing on hardware different than I have.

Francis Mortanian

unread,
Mar 15, 2013, 10:33:07 AM3/15/13
to linux...@googlegroups.com
I have a tablet with this IC running on a sun4i, I'd love to test your driver. The touchscreen is the last bit on this I need working.



--
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



alex allss

unread,
Mar 15, 2013, 10:58:16 AM3/15/13
to linux...@googlegroups.com
are you using android or debian ?

2013/3/15 Francis Mortanian <nautilus...@gmail.com>:

Francis Mortanian

unread,
Mar 15, 2013, 11:09:24 AM3/15/13
to linux...@googlegroups.com
debian sid or debian squeeze, but if you're asking if I need a single-touch version I don't mind patching my xorg for multitouch if that's what the driver is setup for.

alex allss

unread,
Mar 15, 2013, 11:38:43 AM3/15/13
to linux...@googlegroups.com
Firstly you can try insmod this, (for 3.0.62+ kernel) or I have to
build it for other, but costs time.
1) test coordinate mappings
2) fails using
cat /proc/kmsg

2013/3/15 Francis Mortanian <nautilus...@gmail.com>:
zet6221.ko

Francis Mortanian

unread,
Mar 15, 2013, 11:41:16 AM3/15/13
to linux...@googlegroups.com
There's no way this will be compatible with any kernel I'm using, I'll need the source code.  Is there any way you can check this into a github or gitorious repository?

alex allss

unread,
Mar 15, 2013, 11:48:32 AM3/15/13
to linux...@googlegroups.com
I on early stage of development, code not cleaned for merge to
linux-sunxi. After I get stable version I send patch to ML, but I need
testings...

What kernel are you using, and what better for you, patch, github repo
with patch merged, or I can simply send you files (zet6221.ko
zet_ts.h) and you have to connect to build system (add lines to
Kconfig/Makefile)

I can give you sources but you have to add

2013/3/15 Francis Mortanian <nautilus...@gmail.com>:

Francis Mortanian

unread,
Mar 15, 2013, 5:04:31 PM3/15/13
to linux...@googlegroups.com
I don't mind doing that, I already have the lines there for my own incomplete Zet6221 driver development.  You don't need to be shy about code cleanliness this early in the game.

I'm using the 3.0 branch from Git at the moment.

alex allss

unread,
Mar 16, 2013, 5:52:24 AM3/16/13
to linux...@googlegroups.com
core files here:
https://github.com/wingrime/zet6221-ts-drv

you must copy this to drivers/input/touchscreen/
add driver to Makefile/Kconfig

please report testing results and feel free send pull requests

2013/3/16 Francis Mortanian <nautilus...@gmail.com>:

Alegz81

unread,
Apr 15, 2013, 3:26:23 AM4/15/13
to linux-sunxi
I have a table on A13 (sun5i) with Zet6221 Touchscreen
linux-sunxi-3.0 and linaro rootfs
I copied zet6221.c and zet6221.h to drivers/input/touchscreen/
How add driver to Makefile/Kconfig ?

Oliver Schinagl

unread,
Apr 14, 2013, 1:42:43 PM4/14/13
to linux...@googlegroups.com
On 15-04-13 09:26, Alegz81 wrote:
> I have a table on A13 (sun5i) with Zet6221 Touchscreen
> linux-sunxi-3.0 and linaro rootfs
> I copied zet6221.c and zet6221.h to drivers/input/touchscreen/
> How add driver to Makefile/Kconfig ?
Not sure if this drive works or is complete. I know wingrime was working
on it, not sure on its status.

alex allss

unread,
Apr 15, 2013, 10:26:28 AM4/15/13
to linux...@googlegroups.com
this driver workable (for linaro)

present problems related user-space soft:
debian have problems with Xorg (new mt protocol support?) feel only
touch events, not move
also xfce have problems (window headers )

use this branch in my repo don't forget add to make menuconfig

https://github.com/wingrime/linux-sunxi/tree/dma-rework

2013/4/14 Oliver Schinagl <olive...@schinagl.nl>:

Alegz81

unread,
Apr 17, 2013, 9:19:08 AM4/17/13
to linux...@googlegroups.com
Not work (

понедельник, 15 апреля 2013 г., 19:26:28 UTC+5 пользователь wingrime написал:

alex allss

unread,
Apr 18, 2013, 9:41:32 AM4/18/13
to linux...@googlegroups.com
do you tryed to insmod it? driver have not autodetection

2013/4/17 Alegz81 <ale...@gmail.com>:

Alegz81

unread,
Apr 19, 2013, 1:14:56 AM4/19/13
to linux...@googlegroups.com
Yes

modinfo
====================================================
filename:       zet6221.ko
license:        GPL
description:    Zet6221 Touchscreen driver
author:         <wing...@gmail.com
srcversion:     A1B16EC5FA0134BD2C35738
alias:          i2c:zet6221_ts
depends:       
intree:         Y
vermagic:       3.4.29+ preempt mod_unload modversions ARMv7 p2v8

==============================================================

insmod
====================================================================================

insmod: error inserting '/lib/modules/3.4.29+/kernel/drivers/input/touchscreen/zet6221.ko':  -1 operation not permitted

====================================================================================

I have root

четверг, 18 апреля 2013 г., 18:41:32 UTC+5 пользователь wingrime написал:

alex allss

unread,
Apr 19, 2013, 7:19:22 AM4/19/13
to linux...@googlegroups.com
send dmesg after insmod and fex
here,

2013/4/19 Alegz81 <ale...@gmail.com>:

Alegz81

unread,
Apr 22, 2013, 2:08:03 AM4/22/13
to linux...@googlegroups.com
dmesg output
==============================================================================================
[   30.620000] input: Logitech USB Optical Mouse as /devices/platform/sw_hcd_host0/usb1/1-1/1-1:1.0/input/input1
[   30.630000] generic-usb 0003:046D:C05B.0001: input: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-sw_hcd_host0-1/input0
[  293.860000] zet_ts_init
[  293.860000] ctp_fetch_sysconfig_para.
[  293.880000] ctp_fetch_sysconfig_para: name Goodix-TS does not match CTP_NAME.
[  293.900000] zet6221_ts
[  293.900000] zet_ts_init: err.
=====================================================================================================

alex allss

unread,
Apr 22, 2013, 5:36:19 AM4/22/13
to linux...@googlegroups.com
You sure that you realy have zet6221 IC on board? you have Goodix in
fex please send fex

2013/4/22 Alegz81 <ale...@gmail.com>:

Alegz81

unread,
Apr 23, 2013, 4:11:46 AM4/23/13
to linux...@googlegroups.com
Yes i have zet6221
android lsmod
========================================
...
...
zet6221 18409 0 - Live 0xbf000000
==========================================

android modinfo
====================================================
filename:       zet6221.ko
license:        GPL v2
description:    ZET6221 I2C Touch Screen driver
srcversion:     20E3B86B0FFA1573727368D
depends:      
vermagic:       3.0.8+ preempt mod_unload modversions ARMv7
======================================================

changed in default fex for A13 section [ctp_para]
====================================
[ctp_para]
ctp_used = 1
ctp_name = "zet6221_ts"
ctp_twi_id = 1
ctp_twi_addr = 0x5d
ctp_screen_max_x = 800
ctp_screen_max_y = 480
ctp_revert_x_flag = 0
ctp_revert_y_flag = 0
ctp_exchange_x_y_flag = 0
ctp_int_port = port:PG11<6><default><default><default>
ctp_wakeup = port:PB03<1><default><default><1>
==========================================
created .bin

insmod zet6221.ko no error, but not work
dmesg output
================================================================
[   58.790000] input: Logitech USB Optical Mouse as /devices/platform/sw_hcd_host0/usb1/1-1/1-1:1.0/input/input1
[   58.810000] generic-usb 0003:046D:C058.0001: input: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-sw_hcd_host0-1/input0
[  181.260000] zet_ts_init
[  181.260000] ctp_fetch_sysconfig_para.
[  181.270000] ctp_fetch_sysconfig_para: ctp_twi_id is 1.
[  181.270000] ctp_fetch_sysconfig_para: screen_max_x = 800.
[  181.270000] ctp_fetch_sysconfig_para: screen_max_y = 480.
[  181.280000] ctp_fetch_sysconfig_para: revert_x_flag = 0.
[  181.280000] ctp_fetch_sysconfig_para: revert_y_flag = 0.
[  181.300000] ctp_fetch_sysconfig_para: exchange_x_y_flag = 0.
[  181.300000] zet_ts_init:normal_i2c:0x5d.normal_i2c[1]:0xfffe.
[  181.300000] script parser fetch err.
[  181.310000] ctp_init_platform_resource: No valid reset wire defined in fex.
[  181.320000] script parser fetch err.
[  181.320000] ctp_init_platform_resource: No valid power port wire defined in fex.
[  181.330000] ctp_wakeup.
[  181.380000] ctp_detect: Detected chip zet6221_ts at adapter 1, address 0x5d
[  181.390000] input: zet6221_ts as /devices/platform/sunxi-i2c.1/i2c-1/1-005d/input/input2
[  181.410000] ctp_set_irq_mode: config gpio to int mode.
[  181.410000] ctp_set_irq_mode, 188: gpio_int_info, port = 7, port_num = 11.
[  181.420000]  INTERRUPT CONFIG
[  181.420000] Device information.
[  181.430000] incomplete xfer (0x20)
[  181.430000] i2c_write_interface error
[  181.430000] incomplete xfer (0x48)
[  181.430000] msg zet_i2c_rxdata i2c read error: -70
[  181.440000] x_res=54272,y_res=32776,x_t=217,y_t=0,df=0
[  181.440000] ==zet_ts_probe over =
============================================================

alex allss

unread,
Apr 23, 2013, 4:31:20 AM4/23/13
to linux...@googlegroups.com
1) do you touched fex at all?
plase send me original full fex

It look like you fex is invalid
try set
ctp_twi_addr = 0x76

and report



2013/4/23 Alegz81 <ale...@gmail.com>:

Alegz81

unread,
Apr 23, 2013, 6:15:22 AM4/23/13
to linux...@googlegroups.com
Chenged fex to ctp_twi_addr = 0x76
ALL WORK!!!
Big thank
Fex added.

вторник, 23 апреля 2013 г., 13:31:20 UTC+5 пользователь wingrime написал:
original.fex
worked.fex

alex allss

unread,
Apr 23, 2013, 12:16:44 PM4/23/13
to linux...@googlegroups.com
also, are you tested linux or android?

2013/4/23 Alegz81 <ale...@gmail.com>:

Alegz81

unread,
Apr 24, 2013, 2:51:39 AM4/24/13
to linux...@googlegroups.com
linux

Francis Mortanian

unread,
Jun 2, 2013, 1:42:56 AM6/2/13
to linux...@googlegroups.com
I finally got this going on my Q88.  For xorg I had to modify /usr/share/X11/xorg.conf.d/50-multitouch.conf and add a pattern match on "MatchIsTouchscreen" so it would be applied.

(To everybody else, if it registers touch events without coordinates, you probably need this.)

So... confirmed working on the Q88, if nothing else.

I had to edit my fex file to change zet6221-ts to zet6221_ts for the module to load.

Excellent work on this module, it's very well done.  If I find any bugs I'll try to hack up a patch.  If I can't I'll let you know anyway.

Thanks for your hard work alex!

zhilo...@gmail.com

unread,
Sep 23, 2013, 7:28:09 AM9/23/13
to linux...@googlegroups.com
在 2013年3月15日星期五UTC+8上午2时18分03秒,wingrime写道:
Hi, can you send me one? I have many tablet PCs with this touch

ovir...@gmail.com

unread,
Dec 19, 2013, 10:15:59 AM12/19/13
to linux...@googlegroups.com
Hello
I need to include ZET6221 driver for 3SC6410 FriendlyArm board.
Can someone send source files ?

Olliver Schinagl

unread,
Dec 20, 2013, 12:16:19 AM12/20/13
to linux...@googlegroups.com
I think you confuse linux-sunxi with ZET, so maybe ask them.

As for our RE sources or submitted sources, I'm sure you are able to use
google and find what was posted to this list (which is publicly
archived) and/or check wingrime's git account for his efforts.

Heck even the first few google results for zet6221 yield the proper
results, so do at least SOME homework.

Oliver
>

Oviron Electronics

unread,
Dec 20, 2013, 5:34:46 AM12/20/13
to linux...@googlegroups.com
Dear Oliver

Thank You for reply.
I'm experienced in making hardware and PIC ASSEMBLER.
I build my own PCB with 3SC6410 stamp module and I want to use ZET6221 capacitive TSP and AT070TN94 S70 LCD.

My TOTAL LINUX experience is 5 days and 1 day programing in C.So I need to compile my LINUX kernel.
A friend helped me to install compiler and toolchain. I learned how to configure and make zImage, how to add new driver. But when compiling there are some errors. I made corrections and zImage is ready now will investigate what happens if the driver works ...


If You help me to get it working would be fine. I just wanted to get working driver and adapt GPIO to my system. 


Best Regards

ILIAN



--
You received this message because you are subscribed to a topic in the Google Groups "linux-sunxi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/linux-sunxi/_y0NOJL-4YU/unsubscribe.
To unsubscribe from this group and all of its topics, send an email to linux-sunxi+unsubscribe@googlegroups.com.

Oviron Electronics

unread,
Dec 20, 2013, 5:41:19 AM12/20/13
to linux...@googlegroups.com
Dear Oliver

Thank You for reply.
I'm experienced in making hardware and PIC ASSEMBLER.
I build my own PCB with 3SC6410 stamp module and I want to use ZET6221 capacitive TSP and AT070TN94 S70 LCD.

My TOTAL LINUX experience is 5 days and 1 day programing in C.So I need to compile my LINUX kernel.
A friend helped me to install compiler and toolchain. I learned how to configure and make zImage, how to add new driver. But when compiling there are some errors. I made corrections and zImage is ready now will investigate what happens if the driver works ...




Regards

Ilian Tsachev
General manager
Oviron  Electronics Ltd.
Bulgaria, Varna
Tel. +359 887 626483
P Please consider the environment before printing this email


On 20 December 2013 07:16, Olliver Schinagl <olive...@schinagl.nl> wrote:

Olliver Schinagl

unread,
Dec 20, 2013, 3:22:00 AM12/20/13
to linux...@googlegroups.com
On 20-12-13 11:34, Oviron Electronics wrote:
> Dear Oliver
>
> Thank You for reply.
Now this is a far more civilized mail.

We received sample code from ZET a long time ago and is uploaded to our
wiki I think and if I'm not mistaken posted on this mailing list, but it
wasn't something you could just drop in and compile.

Wingrime took this code and wrote a sample driver,
http://github.com/wingrime that should work under linux.

The latest lichee kernel from Allwinner actually also has a driver in
their SDK, so should also be useable.

Due to the nature of many touchscreen controllers, it's a hit/miss
thing, sometimes a driver works, sometimes it needs to be
tweaked/configured slightly different, it really depends on the
touchscreen driver IC.

Oliver
> I'm experienced in making hardware and PIC ASSEMBLER.
> I build my own PCB with 3SC6410 stamp module and I want to use ZET6221
> capacitive TSP and AT070TN94 S70 LCD.
>
> My TOTAL LINUX experience is 5 days and 1 day programing in C.So I need
> to compile my LINUX kernel.
> A friend helped me to install compiler and toolchain. I learned how to
> configure and make zImage, how to add new driver. But when compiling
> there are some errors. I made corrections and zImage is ready now will
> investigate what happens if the driver works ...
>
>
> If You help me to get it working would be fine. I just wanted to get
> working driver and adapt GPIO to my system.
>
>
> **
>
> Best Regards
> *
> *
> *ILIAN*
> *
> *
>
> On 20 December 2013 07:16, Olliver Schinagl <olive...@schinagl.nl
> <mailto:olive...@schinagl.nl>> wrote:
>
> On 19-12-13 16:15, ovir...@gmail.com <mailto:ovir...@gmail.com> wrote:
>
> Hello
> I need to include ZET6221 driver for 3SC6410 FriendlyArm board.
> Can someone send source files ?
>
> I think you confuse linux-sunxi with ZET, so maybe ask them.
>
> As for our RE sources or submitted sources, I'm sure you are able to
> use google and find what was posted to this list (which is publicly
> archived) and/or check wingrime's git account for his efforts.
>
> Heck even the first few google results for zet6221 yield the proper
> results, so do at least SOME homework.
>
> Oliver
>
>
>
> --
> You received this message because you are subscribed to a topic in
> the Google Groups "linux-sunxi" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/__topic/linux-sunxi/_y0NOJL-4YU/__unsubscribe
> <https://groups.google.com/d/topic/linux-sunxi/_y0NOJL-4YU/unsubscribe>.
> To unsubscribe from this group and all of its topics, send an email
> to linux-sunxi+unsubscribe@__googlegroups.com
> <mailto:linux-sunxi%2Bunsu...@googlegroups.com>.
> For more options, visit https://groups.google.com/__groups/opt_out
> <https://groups.google.com/groups/opt_out>.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "linux-sunxi" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to linux-sunxi...@googlegroups.com.

Mikael R

unread,
Feb 16, 2014, 12:52:13 PM2/16/14
to linux...@googlegroups.com
Hi!
I cant seem to get this one working, i have a A13-mid tablet (Q88)
I have built the driver from wingrimes git rep.
everything seems to load, but it does not register any events

uname -a
Linux linaro-alip 3.4.61 #6 PREEMPT Sat Feb 15 14:00:57 CET 2014 armv7l armv7l armv7l GNU/Linux

Relevant code from script.bin
[product]
version = "1.0"
machine = "A13-EVB-V1.0"

[ctp_para]
ctp_used = 1
ctp_name = "zet6221_ts"
ctp_twi_id = 1
ctp_twi_addr = 0x76
ctp_screen_max_x = 800
ctp_screen_max_y = 480
ctp_revert_x_flag = 0
ctp_revert_y_flag = 0
ctp_exchange_x_y_flag = 0
ctp_int_port = port:PG11<6><default><default><default>
ctp_wakeup = port:PB03<1><default><default><1>

Relevant data from dmesg

[   13.658993] zet_ts_init
[   13.661763] ctp_fetch_sysconfig_para.
[   13.675673] ctp_fetch_sysconfig_para: ctp_twi_id is 1.
[   13.729491] ctp_fetch_sysconfig_para: screen_max_x = 800.
[   13.780820] ctp_fetch_sysconfig_para: screen_max_y = 480.
[   13.785094] ctp_fetch_sysconfig_para: revert_x_flag = 0.
[   13.877970] ctp_fetch_sysconfig_para: revert_y_flag = 0.
[   13.937503] ctp_fetch_sysconfig_para: exchange_x_y_flag = 0.
[   13.964502] zet_ts_init:normal_i2c:0x76.normal_i2c[1]:0xfffe.
[   14.002128] ctp_init_platform_resource: No valid reset wire defined in fex.
[   14.039015] ctp_init_platform_resource: No valid power port wire defined in fex.
[   14.081126] ctp_wakeup.
[   14.325072] ctp_detect: Detected chip zet6221_ts at adapter 1, address 0x76
[   14.338361] input: zet6221_ts as /devices/platform/sunxi-i2c.1/i2c-1/1-0076/input/input2
[   14.351157] ctp_set_irq_mode: config gpio to int mode.
[   14.371161] ctp_set_irq_mode, 188: gpio_int_info, port = 7, port_num = 11.
[   14.394004]  INTERRUPT CONFIG
[   14.404607] Device information.
[   14.414790] x_res=65535,y_res=65535,x_t=255,y_t=255,df=255

Relevant data from /var/log/Xorg.0.log

[    17.677] (II) config/udev: Adding input device axp20-supplyer (/dev/input/event0)
[    17.677] (**) axp20-supplyer: Applying InputClass "evdev keyboard catchall"
[    17.677] (II) LoadModule: "evdev"
[    17.678] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[    17.688] (II) Module evdev: vendor="X.Org Foundation"
[    17.688] compiled for 1.13.3, module version = 2.7.3
[    17.688] Module class: X.Org XInput Driver
[    17.688] ABI class: X.Org XInput driver, version 18.0
[    17.688] (II) Using input driver 'evdev' for 'axp20-supplyer'
[    17.688] (**) axp20-supplyer: always reports core events
[    17.688] (**) evdev: axp20-supplyer: Device: "/dev/input/event0"
[    17.689] (--) evdev: axp20-supplyer: Vendor 0x1 Product 0x1
[    17.689] (--) evdev: axp20-supplyer: Found keys
[    17.689] (II) evdev: axp20-supplyer: Configuring as keyboard
[    17.689] (**) Option "config_info" "udev:/sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/input/input0/event0"
[    17.689] (II) XINPUT: Adding extended input device "axp20-supplyer" (type: KEYBOARD, id 6)
[    17.689] (**) Option "xkb_rules" "evdev"
[    17.689] (**) Option "xkb_model" "pc105"
[    17.689] (**) Option "xkb_layout" "us"
[    17.692] (II) config/udev: Adding input device zet6221_ts (/dev/input/event2)
[    17.692] (**) zet6221_ts: Applying InputClass "evdev touchscreen catchall"
[    17.692] (II) Using input driver 'evdev' for 'zet6221_ts'
[    17.692] (**) zet6221_ts: always reports core events
[    17.693] (**) evdev: zet6221_ts: Device: "/dev/input/event2"
[    17.693] (--) evdev: zet6221_ts: Vendor 0 Product 0
[    17.693] (--) evdev: zet6221_ts: Found absolute axes
[    17.693] (--) evdev: zet6221_ts: Found absolute multitouch axes
[    17.693] (--) evdev: zet6221_ts: Found x and y absolute axes
[    17.693] (--) evdev: zet6221_ts: Found absolute touchscreen
[    17.693] (II) evdev: zet6221_ts: Configuring as touchscreen
[    17.693] (**) evdev: zet6221_ts: YAxisMapping: buttons 4 and 5
[    17.693] (**) evdev: zet6221_ts: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[    17.693] (**) Option "config_info" "udev:/sys/devices/platform/sunxi-i2c.1/i2c-1/1-0076/input/input2/event2"
[    17.693] (II) XINPUT: Adding extended input device "zet6221_ts" (type: TOUCHSCREEN, id 7)
[    17.694] (II) evdev: zet6221_ts: initialized for absolute axes.
[    17.695] (**) zet6221_ts: (accel) keeping acceleration scheme 1
[    17.695] (**) zet6221_ts: (accel) acceleration profile 0
[    17.695] (**) zet6221_ts: (accel) acceleration factor: 2.000
[    17.695] (**) zet6221_ts: (accel) acceleration threshold: 4
[    17.696] (II) config/udev: Adding input device zet6221_ts (/dev/input/mouse0)
[    17.696] (II) No input driver specified, ignoring this device.
[    17.696] (II) This device may have been added with another device file.
[    17.698] (II) config/udev: Adding input device ecompass_data (/dev/input/event1)
[    17.698] (II) No input driver specified, ignoring this device.
[    17.698] (II) This device may have been added with another device file.

modinfo zet6221

filename:       /lib/modules/3.4.61/all/zet6221.ko
license:        GPL
description:    Zet6221 Touchscreen driver
author:         <wingrime
srcversion:     AA04CFE9C9A87A0AFEC2BD2
alias:          i2c:zet6221_ts
depends:        
intree:         Y
vermagic:       3.4.61 preempt mod_unload modversions ARMv7 p2v8 

sudo evtest /dev/input/event2

Input driver version is 1.0.1
Input device ID: bus 0x18 vendor 0x0 product 0x0 version 0x0
Input device name: "zet6221_ts"

evtest dont report any events,
Any pointers,ideas,help would be much appreciated

Thanks in advance Mikey

Oviron Electronics

unread,
Feb 17, 2014, 3:07:14 AM2/17/14
to linux...@googlegroups.com
Dear Mikey
The driver is only one of the brunches that you need to get the TSP working.
I'm pretty new to linux and C programing but had a look at lot of files in OS. As you have other platform file names will differ from those I send. Just get this in mind:

0.You have to be sure that TSP pins are properly conected to driver expectations and IO pins definitions in your kernel - /arch/arm/mach-s3c64xx/mach-mini6410.c
1.You have to instantiate I2C device - Documentation/i2c/instantiating-devices
2.Define TS platform device - /arch/arm/mach-s3c64xx/dev-ts-mini6410.c
3.Here is the driver - /drivers/input/touchscreen/zet6221_i2c.c
4.I don't know if this is important - /arch/arm/plat-samsung/include/plat/ts.h

You can try your driver with command modprobe drivername (modprobe zet6221_i2c for my one)

As I did not run my ZET6221 TSP yet because I had another work, will be interesting with your work. Pls, send info. If you have some questions I can try to answer also.

Regards

Ilian Tsachev
General manager
Oviron  Electronics Ltd.
Bulgaria, Varna
Tel. +359 887 626483
P Please consider the environment before printing this email


--
You received this message because you are subscribed to a topic in the Google Groups "linux-sunxi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/linux-sunxi/_y0NOJL-4YU/unsubscribe.
To unsubscribe from this group and all of its topics, send an email to linux-sunxi...@googlegroups.com.

alex allss

unread,
Feb 20, 2014, 10:55:31 PM2/20/14
to linux...@googlegroups.com

If driver successfully read configuration when starting, and than not see any input, so looks like irq not working , possible cases:

1. Irq pin not connected
2. Irq not configured right way

17 февр. 2014 г. 14:07 пользователь "Oviron Electronics" <off...@ovironelectronics.com> написал:
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi...@googlegroups.com.

Oviron Electronics

unread,
Feb 21, 2014, 2:49:48 AM2/21/14
to linux...@googlegroups.com
Did you checkharware connection ? If you can write your own simple program to read GPIO pin you can check if the ZET6221 INT pin is connected to the GPIO you expect. When you touch the TSP INT signal is hold down "0" for a second if I2C not read by CPU.
You should have:
I2C_BOARD_INFO("ft5x06_ts", 0x55),        .irq = IRQ_EINT(4) - this example is for other TSP but

Поздрави 

Ilian Tsachev
General manager
Oviron  Electronics Ltd.
Bulgaria, Varna
Tel. +359 887 626483
P Please consider the environment before printing this email
Reply all
Reply to author
Forward
0 new messages