Hi Gregor, 
Thank you for reply!
As I mentioned in linux-input@How to use ACPI for touchscreen  - the acpi 
provided info looks like total false.
For the begining I am trying to achieve mimimal - detect chip and just wake 
up it.
Actually have tried - modified your driver for gsl1680 and also icn8318 for 
acpi CHPN0001 - looks like it is working with just finding CHPN0001 but I 
could not wake up chip, as far as I am understanding wakeuping process - 
after wake up chip should be permanently visible to i2cdetect 4 on 0x048 - 
but it not happen so - only from time to time.
Registers data is different between icn8318 and 85xx.
I also belive that all is need is  - wakeup chip + load its firmware (I 
have it) and also described in linux input case how it works I guess 
indirect provs this too - so there is no need to wright from scratch driver 
with registering int, intprocessing function and so on, but  at the moment 
I am not sure, it is only my guessing.
Anyway even without INT just polling mode will be also good. ;-) any 
working solution even not perfect better than nothing!

Regards, 
             Serge Kolotylo.



On Tuesday, March 1, 2016 at 10:24:05 AM UTC, Gregor Riepl wrote:
>
> > 1) How to initialize the chip? What is the sequence? It looks it is not 
> enough 
> > just set gpio to 1. 
>
> I think many TS controllers use the same or a similar sequence to this: 
> - Set wakeup pin low 
> - Wait for a few ms 
> - Set wakup pin high 
>
> How long is probably chip dependant. 
>
> > 2) Please describe in a few words the feature of linux-sunxi - what is 
> > ctp_config_info and how input information goes to it. 
> > for example in the mentioned above link there is such lines in icn83xx.c 
>
> ctp_config is hardcoded crap and should not be in any proper driver, IMHO. 
>
> That information is better fetched from 1) ACPI or DT, if available, 2) 
> made 
> available through sysfs, or 3) provided in the firmware. 
>
> 1) silead_ts does this 
> 2) chipone_icn8318 does this 
> 3) gslx680-acpi does this 
>
> 1) is probably the best option, but I don't really know if 2) or 3) is 
> better 
> when 1) is not available. 2) requires user space interaction and 3) 
> requires 
> specially formatted firmware. 
>
> Can you compare the actual I2C and GPIO code from chipone_icn8318 and 
> icn85xx.c and see if the work similarly? In that case, I believe we could 
> just 
> add ACPI support and the correct ACPI IDs for your icn85xx to 
> chipone_icn8318 
> and it should start working. Well, you still need proper firmware, I 
> guess. 
> But let's leave that aside for now. 
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to