From patchwork Mon Mar 27 13:07:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Shyti X-Patchwork-Id: 9646619 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 39C1860328 for ; Mon, 27 Mar 2017 13:09:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 294CD28306 for ; Mon, 27 Mar 2017 13:09:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1E14428384; Mon, 27 Mar 2017 13:09:10 +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 95B7828338 for ; Mon, 27 Mar 2017 13:09:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753009AbdC0NI0 (ORCPT ); Mon, 27 Mar 2017 09:08:26 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:47140 "EHLO epoutp02.samsung.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752851AbdC0NIT (ORCPT ); Mon, 27 Mar 2017 09:08:19 -0400 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by epoutp02.samsung.com (KnoxPortal) with ESMTP id 20170327130757epoutp0257401c77cb42a8bca03f50f3d96f86f6~vvxAFy6vK0664606646epoutp023; Mon, 27 Mar 2017 13:07:57 +0000 (GMT) Received: from epsmges1p3.samsung.com (unknown [182.195.40.65]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20170327130756epcas1p3b034bfbaf1ad9997ba59e45935c75959~vvw-eizs92057020570epcas1p3M; Mon, 27 Mar 2017 13:07:56 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id 77.B4.13571.CAE09D85; Mon, 27 Mar 2017 22:07:56 +0900 (KST) Received: from epcpsbgm1new.samsung.com (u26.gpu120.samsung.co.kr [203.254.230.26]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20170327130756epcas1p3134e88ccee37242db029357ae3d52603~vvw-Qlu_91854318543epcas1p32; Mon, 27 Mar 2017 13:07:56 +0000 (GMT) X-AuditID: b6c32a37-f79f46d000003503-a6-58d90eac1e46 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id BB.69.05715.CAE09D85; Mon, 27 Mar 2017 22:07:56 +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 <0ONH00C2A5T4UA40@mmp2.samsung.com>; Mon, 27 Mar 2017 22:07:56 +0900 (KST) 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 1/2] Input: add STMicroelectronics FingerTip touchscreen driver Date: Mon, 27 Mar 2017 22:07:42 +0900 Message-id: <20170327130743.27783-2-andi.shyti@samsung.com> X-Mailer: git-send-email 2.11.0 In-reply-to: <20170327130743.27783-1-andi.shyti@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCKsWRmVeSWpSXmKPExsWy7bCmru4avpsRBie2KVjcWneO1WL7kWes Fot/PGeyuP7lOavF/CNAscOLXjBavHm7hsni5qdvrBaXd81hs2jde4Tdg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TuPcLuwOVxfcknZo+ds+6y e2xa1cnmsaUfyOrbsorR4/MmuQC2KDebjNTElNQihdS85PyUzLx0W6XQEDddCyWFvMTcVFul CF3fkCAlhbLEnFIgz8gADTg4B7gHK+nbJbhlvH7Xy1zwj79i3t0WpgbGtbxdjJwcEgImEl// HmaDsMUkLtxbD2RzcQgJzGKUWHnpCQuE85FRYt3yqywgVWwCmhJNt3+AdYgIBEucfdEO1sEs sJhJYsriI+xdjBwcwgIhEic/JIDUsAioSvx/8IEZxOYVsJb4srKFEWKbvMSutousIDangI3E 7CffwWqEgGqWdO5mm8DIu4CRYRWjRGpBckFxUnquYV5quV5xYm5xaV66XnJ+7iZGcPA/k9rB eHCX+yFGAQ5GJR7eCzw3I4RYE8uKK3MPMUpwMCuJ8H7jBgrxpiRWVqUW5ccXleakFh9iNAU6 bCKzlGhyPjAy80riDU3MTcyNDSzMLS1NjJTEeRtnPwsXEkhPLEnNTk0tSC2C6WPi4JRqYHTl mtV75WC31nfB6HMzxR6vSonZcjCo/Pk1Jo0q3wmfI84+l7nc4n/qDt++OQl8Z73bM2+L2P1I 71VobJyQMnHl7elygs9lOOysb2bU1EbdKmzJlHCpyi7+/Xkd881tyhotny3tfXVX6ab0iSyb xGD4mYtN0ld2EoPv5V6tLw9elaseeesSpMRSnJFoqMVcVJwIADEziJaUAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170327130756epcas1p3134e88ccee37242db029357ae3d52603 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-CMS-RootMailID: 20170327130756epcas1p3134e88ccee37242db029357ae3d52603 X-RootMTR: 20170327130756epcas1p3134e88ccee37242db029357ae3d52603 References: <20170327130743.27783-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>; + }; +};