From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753004AbdC0NIY (ORCPT ); Mon, 27 Mar 2017 09:08:24 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:49315 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752779AbdC0NIO (ORCPT ); Mon, 27 Mar 2017 09:08:14 -0400 X-AuditID: b6c32a37-f79f46d000003503-a5-58d90eacd3f2 From: Andi Shyti To: Dmitry Torokhov , Rob Herring Cc: Javier Martinez Canillas , Andrzej Hajda , Chanwoo Choi , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andi Shyti , Andi Shyti Subject: [PATCH v3 0/2] STM FingerTip S touchscreen support for TM2 board Date: Mon, 27 Mar 2017 22:07:41 +0900 Message-id: <20170327130743.27783-1-andi.shyti@samsung.com> X-Mailer: git-send-email 2.11.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrJKsWRmVeSWpSXmKPExsWy7bCmge4avpsRBqdfyljcWneO1WL7kWes Fot/PGeyuP7lOavF/CNAscOLXjBavHm7hsni5qdvrBaXd81hs2jde4Tdgcvj+pJPzB47Z91l 99i0qpPNY0s/kNW3ZRWjx+dNcgFsUak2GamJKalFCql5yfkpmXnptkrewfHO8aZmBoa6hpYW 5koKeYm5qbZKLj4Bum6ZOUCnKSmUJeaUAoUCEouLlfTtbIryS0tSFTLyi0tslaINDY30DA3M 9YyMjPRMjGOtjEyBShJSMzZfncdesEewYt/024wNjPd5uxg5OSQETCRm/ljNCmGLSVy4t56t i5GLQ0hgB6NE18QrrBBOO5PEhtfv2WE6Nu57zQiRmMMocePmQXYI5yOjxPoNS1lAqtgENCWa bv9gA7FFBIIlJiz/xQxSxCywmEmi9fF1sISwgKfEx9b1YA0sAqoSs64vAzuEV8BaYvfNk1BH yUvsarsIdoeEwGc2iccz5wI1cAA5shKbDjBD1LhILF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8qzUktPsRoCnTARGYp0eR8YKzllcQbmpibmBsb WJhbWpoYKYnzNs5+Fi4kkJ5YkpqdmlqQWgTTx8TBKdXA2Pwu6J2odWFQS9KLpWdNwvds0lvm /p6Tf0bIxpwta88lGyZMDXzrefS/p/229Ias2HDnzwde5IWmt/1/91tx6dR/0gluu+WPrpMV T/monT7flv1fa8DVI9vePn8o7Nq/QYxBhq3tS7zL7Tc/rO2c4+9r+uwK9FNtbXykLvFYVaNp UtmXpm5/JZbijERDLeai4kQACxs3Hn0CAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170327130756epcas1p3e4d73c234d6f5b613b0b7cb37b54b972 X-Msg-Generator: CA X-Sender-IP: 203.254.230.26 X-Local-Sender: =?UTF-8?B?7JWI65SUG1RpemVuIFBsYXRmb3JtIExhYihTL1fshLzthLAp?= =?UTF-8?B?G+yCvOyEseyghOyekBtTZW5pb3IgRW5naW5lZXI=?= X-Global-Sender: =?UTF-8?B?QW5kaSBTaHl0aRtUaXplbiBQbGF0Zm9ybSBMYWIuG1NhbXN1?= =?UTF-8?B?bmcgRWxlY3Ryb25pY3MbU2VuaW9yIEVuZ2luZWVy?= X-Sender-Code: =?UTF-8?B?QzEwG1NUQUYbQzEwVjgxMTE=?= CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-HopCount: 7 X-CMS-RootMailID: 20170327130756epcas1p3e4d73c234d6f5b613b0b7cb37b54b972 X-RootMTR: 20170327130756epcas1p3e4d73c234d6f5b613b0b7cb37b54b972 References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, this patchset provides support for the ST-Microelectronics FingerTip S device driver and enables it in the tm2 and tm2e devices. It's tested on top of next-20170210 kernel. Thanks, Andi Changelog V2-V3 =============== V2: https://marc.info/?l=linux-kernel&m=148669314305915&w=2 - fixed multi touch broken protocol reported by Chanwoo; - disabled irqs at the registration by setting the IRQ_NOAUTOEN flag, as suggested by Andrzej; - changed the interrupt handling policy: in the V1 and V2 the events were read one by one (8 each), this was increasing the overhead. Now all the events are read in a single operation, but because the stack is deep 32 events (256bytes, 32*8), it's impossible to use the smbus protocol. The i2c_transfer() functions is used instead; - random code changes; - patch 3 in the V1 and V2 patchset has been omitted because Krzysztof already merged it. Changelog V1-V2 =============== V1: https://marc.info/?l=linux-kernel&m=148466204431327&w=2 - fixed Javier's, Krzysztof's and Dmitry's reviews - added Javier's review tag on patch 1 and 3 - the main difference of the driver from v2 is that the driver generates only one input interface instead of two (one for the touchscreen and one for the touchkeys). The job of filtering the events is demanded to userspace applications that are accessing the device. This is done by making an ioctl call: ioctl(fd, EVIOCSMASK, &mask); where 'mask' is an 'input_mask' structure that contains the type variable of the EV_* that needs to be filtered out. Andi Shyti (2): Input: add STMicroelectronics FingerTip touchscreen driver Input: add support for the STMicroelectronics FingerTip touchscreen .../bindings/input/touchscreen/st,stmfts.txt | 43 ++ drivers/input/touchscreen/Kconfig | 12 + drivers/input/touchscreen/Makefile | 1 + drivers/input/touchscreen/stmfts.c | 805 +++++++++++++++++++++ 4 files changed, 861 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/st,stmfts.txt create mode 100644 drivers/input/touchscreen/stmfts.c -- 2.11.0