All of lore.kernel.org
 help / color / mirror / Atom feed
* How to setup Touchscreen IRQ mode?
@ 2016-03-21  0:43 sergk sergk2mail
  2016-03-21  0:51 ` Gregor Riepl
  0 siblings, 1 reply; 10+ messages in thread
From: sergk sergk2mail @ 2016-03-21  0:43 UTC (permalink / raw)
  To: linux-input

Hi Gurus of linux-input!
Please help with setuping IRQ mode for touchscreen.
It is declared http://linux-sunxi.org/Touchscreen#General_information
the following:
 "In Interrupt mode every time an event on the touchscreen occurs the
INT pin triggers and notifies the CPU. the cpu then read the new event
from the touchscreen"

Could someone please explain the logic (details) howto process IRQ for
touchscreen.

Input info: have initialized successfully TS and loaded its firmware,
standard registers output correct data!
in ACPI irq is 0x44. i2cbus 3, address is 0x30.

Do not know wakeup pin, actually TS available without any gpios for
loading firmware and reading from it.

What was done by myself:

I have registered irq in such way:
//handler

static irqreturn_t icn85xx_ts_interrupt(int irq, void *dev_id){
    struct icn85xx_ts_data *icn85xx_ts = dev_id;

    printk("==========------icn85xx_ts TS Interrupt-----===========\n");
return 0;
}

err = request_irq(icn85xx_ts->irq, icn85xx_ts_interrupt,
IRQ_TYPE_EDGE_FALLING, "icn85xx_ts", icn85xx_ts);
    if (err < 0){
        icn85xx_error("icn85xx_ts_probe: request irq failed\n");
        return err;
    }


As result have received this: (looks like no any occurrences of my
handler for irq 0x44  = dec: 68)

 cat /proc/interrupts
            CPU0       CPU1       CPU2       CPU3
  68:          0          0          0          0  BYT-GPIO   60  icn85xx_ts


Questions:

1) Does this correct IRQ settings for TS? If not - what is procedure?
What I have missed? H

2) What does mean BYT-GPIO 60 in cat /proc/interrupts?
I could not obtain gpio 60 via gpio_request(60, "TS_INT");

3) how it could be in code example setuping irq with gpio for touch?
Is this so:

 a) obtain gpio
 b) setup gpio to in direction
 c) request irg

4) How to find out gpio for setuping irq having decoded ACPI
DSDT,working Android and Windows with this touch.

Kind regards,
                Serge Kolotylo.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-03-30 11:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-21  0:43 How to setup Touchscreen IRQ mode? sergk sergk2mail
2016-03-21  0:51 ` Gregor Riepl
2016-03-27  0:05   ` sergk sergk2mail
2016-03-29  9:52     ` Mika Westerberg
2016-03-29 12:52       ` sergk sergk2mail
     [not found]       ` <CA+V1LzqzMyxoAQv=DDFvWr_MOTThVnhJwTt8uS_piwVhGJtWgQ@mail.gmail.com>
     [not found]         ` <20160329125642.GM2099@lahna.fi.intel.com>
     [not found]           ` <CA+V1Lzov4WXXjERAwAV03VdMEQKDC_=ADAgr2-0p-k=gYC8i3w@mail.gmail.com>
     [not found]             ` <20160329133307.GO2099@lahna.fi.intel.com>
2016-03-30  0:03               ` sergk sergk2mail
2016-03-30  0:09                 ` sergk sergk2mail
2016-03-30  9:41                 ` Mika Westerberg
2016-03-30 10:28                   ` sergk sergk2mail
2016-03-30 11:03                     ` Mika Westerberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.