Hi All :) that still keep silence!

I would like to mention the following : 
In linux-sunxi there is 
http://dl.linux-sunxi.org/SDK/A80/A80_SDK_20140728_stripped/lichee/linux-3.4/drivers/input/touchscreen/icn83xx/
it is strange that the author is from Chipone, as minimum should be someone 
who adopt this code for sunxi.

Actually in my tablet (Chuwi vi10 11 rev) there is Chipone ICN8528.h that 
is  probably the same as 83xx.
Looks like INT/WAKE gpio pin is between 390-394, Taking into account my 
experience with Chuwi vi8 with GSL1680, - lets assume that it is the same 
in Vi10 - and that is gpio393.

QUESTIONS are: 

1) How to initialize the chip? What is the sequence? It looks it is not 
enough just set gpio to 1.

>From the code I see this but do not understand logic - please explain it 
more detailed!


int ctp_wakeup(int status,int ms)
{
        dprintk(DEBUG_INIT,"***CTP*** %s:status:%d,ms = 
%d\n",__func__,status,ms);

    if (status == 0) {
            if(ms == 0) {
                    __gpio_set_value(config_info.wakeup_gpio.gpio, 0);
            }else {
                    __gpio_set_value(config_info.wakeup_gpio.gpio, 0);
                    msleep(ms);
                    __gpio_set_value(config_info.wakeup_gpio.gpio, 1);
             }
    }
    if (status == 1) {
            if(ms == 0) {
                        __gpio_set_value(config_info.wakeup_gpio.gpio, 1);
              }else {
                        __gpio_set_value(config_info.wakeup_gpio.gpio, 1);
                        msleep(ms);
                        __gpio_set_value(config_info.wakeup_gpio.gpio, 0);
              }
     }
     msleep(5);

     return 0;




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

#define CTP_IRQ_NUMBER          (config_info.int_number)              - 
WHERE THIS VALUE IS LOCATED OR HOW IT IS TAKEN - it is not determined in 
the .h or .c.
#define CTP_IRQ_MODE            (IRQF_TRIGGER_FALLING)

#define SCREEN_MAX_X            (screen_max_x)
#define SCREEN_MAX_Y            (screen_max_y)
#define PRESS_MAX            (255)

static int screen_max_x = 0;
static int screen_max_y = 0;
static int revert_x_flag = 0;
static int revert_y_flag = 0;
static int exchange_x_y_flag = 0;
static u32 int_handle = 0;
static __u32 twi_id = 0;

struct ctp_config_info config_info = {
        .input_type = CTP_TYPE,
        .name = NULL,
};

Regards and thanks in advance, 
                                             Serge Kolotylo.

On Wednesday, February 24, 2016 at 9:22:53 PM UTC, [email protected] wrote:
>
> Coud someone be so kind to describe how to initialize this chip? 
> I guess it has INT/WAKE gpio pin? Am I right?
> How to find out having working touch in Android and Windows it ? There is 
> no at the moment driver in Linux for this touch, so I have not "right point 
> of start" for finding out gpio pin.
> What is my current experience on Chuwi Vi10 with dualboot Android and 
> Windows + ArchLinux:
>
> I have tried to detect gpio INT/WAKE pin using sysfs and i2cdetect -r 4. 
>
> I have Android and Win with this touch, exploring
> Android: registered on i2c-4 0x48.
> In Linux nothing!!!! On this i2c bus via 0x48! This possibly means
> that chip should be initialized to be detected\provide responce on i2c
> bus, probably gpio pin for INT\WAKE.
> Looking through all 1-512 (the last one available for export through
> sysfs) + i2cdetect -r 4 under linux makes me completely confused -
> changing direction to out of gpio[396,430,438,492] makes i2cdetect
> discovers device on i2c-4, 0x48 and at the same time changinf value
> (level) to 1 of gpio 473 and gpio 475 againg makes chip visible for
> i2cdetect.
> At the same time gpios 391-393 - just makes screen black, but do not
> power off device.
> Main question - which one of them  is for INT/WAKE of TS?
>
> Regards and thanks in advance, 
>                                                 Serge Kolotylo.
>
> On Saturday, February 20, 2016 at 7:53:20 PM UTC, [email protected] 
> wrote:
>>
>> Hi all,
>> Could please somebody be so kind to describe or reference to datasheet of 
>> chipone85xx touchscreen controller.
>> AFAIK icn83xx is implemented in linux sunxi.
>> All I have discovered: 
>> http://www.chiponeic.com/index.php/website/products/18
>> But what is the logic? 
>> How to init the chip? Chip is on i2c 0x48 address.
>> How to read x,y coordinates?
>> Which registers does it have and by what addresses?
>> By the link above tx,rx,osc por - what do they mean?
>> PS: I am trying to make it working icn85xx at baytrail arch with vanilla 
>> kernel.
>> Thanks in advance,
>>  Serge Kolotylo. 
>>
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to