From patchwork Wed May 31 06:59:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Shyti X-Patchwork-Id: 9755945 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 16BE460360 for ; Wed, 31 May 2017 06:59:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0703C2679B for ; Wed, 31 May 2017 06:59:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ECE3928484; Wed, 31 May 2017 06:59:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E57CF2679B for ; Wed, 31 May 2017 06:59:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750966AbdEaG7d (ORCPT ); Wed, 31 May 2017 02:59:33 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:24334 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750778AbdEaG7b (ORCPT ); Wed, 31 May 2017 02:59:31 -0400 Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20170531065929epoutp02200ce8c4cd7bcacbab176bfbd13e4bd0~Dnq2J-IED0530505305epoutp02V; Wed, 31 May 2017 06:59:29 +0000 (GMT) Received: from epsmges1p2.samsung.com (unknown [182.195.40.67]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20170531065929epcas1p1a318c381b8ac3acb8bcd901515999884~Dnq18QOss1766517665epcas1p1H; Wed, 31 May 2017 06:59:29 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 3F.6E.11213.1D96E295; Wed, 31 May 2017 15:59:29 +0900 (KST) Received: from epsmgms2p1.samsung.com (unknown [182.195.42.79]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20170531065928epcas1p2b6473d8eb979258cda797bd2664b7680~Dnq1uEOXR0533305333epcas1p2n; Wed, 31 May 2017 06:59:28 +0000 (GMT) X-AuditID: b6c32a36-f79446d000002bcd-0a-592e69d1783b Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p1.samsung.com (Symantec Messaging Gateway) with SMTP id BA.12.02179.0D96E295; Wed, 31 May 2017 15:59:28 +0900 (KST) Received: from gangnam.samsung ([10.113.62.47]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OQT00KY2232ME20@mmp2.samsung.com>; Wed, 31 May 2017 15:59:28 +0900 (KST) From: Andi Shyti To: Dmitry Torokhov , Rob Herring Cc: Javier Martinez Canillas , Krzysztof Kozlowski , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andi Shyti , Andi Shyti Subject: [PATCH v4 1/2] Input: add STMicroelectronics FingerTip touchscreen driver Date: Wed, 31 May 2017 15:59:14 +0900 Message-id: <20170531065915.15695-2-andi.shyti@samsung.com> X-Mailer: git-send-email 2.11.0 In-reply-to: <20170531065915.15695-1-andi.shyti@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWSe0hTcRTH++1ud3fV4rJs/RhZ44bBrK3d+borFcOwVf5haKA90JteNsk9 2J1SQuC0JIcs14PM7KVWNCptiZmUia2EgpWUOukdUU0zUJlYK2i3O//7nHO+53wPh4MhsoBI gZVbHIzdQlcQ6GJhz2OVRj1crinSzjVi1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83yQWwRbnZZKQmpqQWKaTmJeenZOal2yqFhrjpWigp5CXmptoqRej6 hgQpKZQl5pQCeUYGaMDBOcA9WEnfLsEtY+K1V8wFywUq3i7jbGC8yNvFyMkhIWAisW/GV3YI W0ziwr31bF2MXBxCAqsZJZY/7WOHcD4ySpx82M0KUsUmoCnRdPsHG4gtIhAscfZFO1gHs8Av RonTpw4DFXFwCAuESHxd5QlSwyKgKnHj+jxGEJtXwFriZudKNoht8hK72i6CzeQUsJHom7iY GcQWAqqZPb2PfQIj7wJGhlWMXKkFxbnpucVGBYabGIFBve2wlv8Oxh9now8xCnAwKvHwGpTp RgqxJpYVV+YeYpTgYFYS4Z2orxcpxJuSWFmVWpQfX1Sak1p8iNEU6JSJzFKiyfnAiMsriTc0 sTQyMTAzMzQyMDZTEuedEPglQkggPbEkNTs1tSC1CKaPiYNTqoEx6cy0Gw51LxbV9l5ZH/Cq oWX2weW2Zk+PdOyIFq0MZri9Kq7j7BXX7WsmZ5+3ytjErev15X3IhPcTirulz4VKb3Zi1mXt 2PRoMtNzY0H5Qg9BnRMPDmpa6qW8m7ldU5Mtj49rbuhy7vyX63M6+JKO7SraeXDVS6m8gj0b 1rc7M2W8nJO7PGi+EktxRqKhFnNRcSIADzd4sYACAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170531065928epcas1p2b6473d8eb979258cda797bd2664b7680 X-Msg-Generator: CA X-Sender-IP: 182.195.42.79 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?QzEwG1RFTEUbQzEwVjgxMTE=?= CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20170531065928epcas1p2b6473d8eb979258cda797bd2664b7680 X-RootMTR: 20170531065928epcas1p2b6473d8eb979258cda797bd2664b7680 References: <20170531065915.15695-1-andi.shyti@samsung.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add binding for the STMicroelectronics FingerTip (stmfts) touchscreen driver. Signed-off-by: Andi Shyti Reviewed-by: Javier Martinez Canillas Acked-by: Rob Herring --- .../bindings/input/touchscreen/st,stmfts.txt | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/st,stmfts.txt diff --git a/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.txt b/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.txt new file mode 100644 index 000000000000..9683595cd0f5 --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.txt @@ -0,0 +1,43 @@ +* ST-Microelectronics FingerTip touchscreen controller + +The ST-Microelectronics FingerTip device provides a basic touchscreen +functionality. Along with it the user can enable the touchkey which can work as +a basic HOME and BACK key for phones. + +The driver supports also hovering as an absolute single touch event with x, y, z +coordinates. + +Required properties: +- compatible : must be "st,stmfts" +- reg : I2C slave address, (e.g. 0x49) +- interrupt-parent : the phandle to the interrupt controller which provides + the interrupt +- interrupts : interrupt specification +- avdd-supply : analogic power supply +- vdd-supply : power supply +- touchscreen-size-x : see touchscreen.txt +- touchscreen-size-y : see touchscreen.txt + +Optional properties: +- touch-key-connected : specifies whether the touchkey feature is connected +- ledvdd-supply : power supply to the touch key leds + +Example: + +i2c@00000000 { + + /* ... */ + + touchscreen@49 { + compatible = "st,stmfts"; + reg = <0x49>; + interrupt-parent = <&gpa1>; + interrupts = <1 IRQ_TYPE_NONE>; + touchscreen-size-x = <1599>; + touchscreen-size-y = <2559>; + touch-key-connected; + avdd-supply = <&ldo30_reg>; + vdd-supply = <&ldo31_reg>; + ledvdd-supply = <&ldo33_reg>; + }; +};