OSDN Git Service

ARM: dts: msm: correct Focaltech CTP irq flag configuration
authorMao Li <maol@codeaurora.org>
Thu, 27 Nov 2014 06:02:04 +0000 (01:02 -0500)
committerGerrit - the friendly Code Review server <code-review@localhost>
Wed, 31 Aug 2016 05:15:27 +0000 (22:15 -0700)
commitff1443ebaacce17599b17f126de3ac161fc0e4a2
tree4f507a0ff72d6347f1052f84129c2fe801aa6856
parentab26d098793adbf90b77d414663e34ac0c7315f6
ARM: dts: msm: correct Focaltech CTP irq flag configuration

Fixed below irq flag issues of Focaltech CTP:
Focaltech CTP firmware generates edge interrupt to MSM, but the
interrupt type in DTSI is level, which will cause CTP interrupt
cannot wake up MSM when system is in deep sleep. Fix this by
setting edge irq flag in DTSI.

For GPIO irq, the irq flag should be specified in "interrupts"
node. Msm_gpio module will only use the lower 8-bit of
"interrupts" node and discards the upper bits. If we specify
0x2002 in "interrupts" node, the upper bits(0x2000) is not used
by msm_gpio, only lower bits(0x2) is used, that means only
lower bits(0x2) should be set in "interrupts" node.

"focaltech,irq-gpio" node is used to specify gpio property,
rather than irq flag. Remove the irq flag setting in this node.

In driver code, specify only "IRQF_ONESHOT". The irq trigger type
is specified by DTSI "interrupts" node. See above.

Change-Id: I4cd8596fb4538b701317f01a6cafaa771041ffdd
Signed-off-by: Mao Li <maol@codeaurora.org>
drivers/input/touchscreen/ft5x06_ts.c