All of lore.kernel.org
 help / color / mirror / Atom feed
From: sergk sergk2mail <sergk.admin@gmail.com>
To: linux-input@vger.kernel.org
Subject: How to setup Touchscreen IRQ mode?
Date: Mon, 21 Mar 2016 00:43:32 +0000	[thread overview]
Message-ID: <CA+V1LzrL6G1FJ6qXuTuiQQiMrZnj_QaHbGhFwBxpJrB9J=ZSGw@mail.gmail.com> (raw)

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.

             reply	other threads:[~2016-03-21  0:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-21  0:43 sergk sergk2mail [this message]
2016-03-21  0:51 ` How to setup Touchscreen IRQ mode? 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+V1LzrL6G1FJ6qXuTuiQQiMrZnj_QaHbGhFwBxpJrB9J=ZSGw@mail.gmail.com' \
    --to=sergk.admin@gmail.com \
    --cc=linux-input@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.