From patchwork Fri Feb 10 02:17:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Shyti X-Patchwork-Id: 9565897 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 EF1B460572 for ; Fri, 10 Feb 2017 02:17:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D8B5228545 for ; Fri, 10 Feb 2017 02:17:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CBBAD2854A; Fri, 10 Feb 2017 02:17:58 +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 F1BFC28545 for ; Fri, 10 Feb 2017 02:17:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751037AbdBJCR4 (ORCPT ); Thu, 9 Feb 2017 21:17:56 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:54731 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751074AbdBJCRv (ORCPT ); Thu, 9 Feb 2017 21:17:51 -0500 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OL40284AZP58070@mailout1.samsung.com>; Fri, 10 Feb 2017 11:17:29 +0900 (KST) Received: from epsmges5p5.samsung.com (unknown [182.195.40.67]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20170210021729epcas1p3ddd8b30cb2edac12be6df0cf0f6ff72f~hy3OSOxht0597905979epcas1p38; Fri, 10 Feb 2017 02:17:29 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p5.samsung.com (EPCPMTA) with SMTP id 6A.51.04795.9B22D985; Fri, 10 Feb 2017 11:17:29 +0900 (KST) Received: from epcpsbgm2new.samsung.com (u27.gpu120.samsung.co.kr [203.254.230.27]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20170210021728epcas5p46d0256d507157cd4387b707ec616c1d1~hy3N9g6RO1681616816epcas5p4h; Fri, 10 Feb 2017 02:17:28 +0000 (GMT) X-AuditID: b6c32a59-f79be6d0000012bb-8d-589d22b98067 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id DB.6E.06428.8B22D985; Fri, 10 Feb 2017 11:17:28 +0900 (KST) Received: from gangnam.samsung ([10.113.62.47]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OL40065DZP0R1B0@mmp1.samsung.com>; Fri, 10 Feb 2017 11:17:28 +0900 (KST) From: Andi Shyti To: Dmitry Torokhov , Krzysztof Kozlowski , Rob Herring , Chanwoo Choi , Javier Martinez Canillas Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Andi Shyti , Andi Shyti Subject: [PATCH v2 1/3] Input: add STMicroelectronics FingerTip touchscreen driver Date: Fri, 10 Feb 2017 11:17:19 +0900 Message-id: <20170210021721.12218-2-andi.shyti@samsung.com> X-Mailer: git-send-email 2.11.0 In-reply-to: <20170210021721.12218-1-andi.shyti@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrJKsWRmVeSWpSXmKPExsWy7bCmpu5OpbkRBh+/cVtsP/KM1WLxj+dM Fte/PGe1mH/kHKvF4UUvGC3ev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1mH/kHKvF4UUvGC3evF3DZHH+/AZ2i5ufvrFaXN41h81ixvl9TBate4+wO3B7XF/y idlj56y77B6bVnWyeWzpB7L6tqxi9Pi8SS6ALcrNJiM1MSW1SCE1Lzk/JTMv3VYpNMRN10JJ IS8xN9VWKULXNyRISaEsMacUyDMyQAMOzgHuwUr6dgluGa/f9TIX/OOvmHe3hamBcS1vFyMn h4SAicSaj/uYIWwxiQv31rN1MXJxCAksZZTY8PsPM4TzkVHi2t3NjCBVbAKaEk23f4BViQhc Z5R41LmEBcRhFjjCKPH8eD9YlbBAiMTzTZfAbBYBVYlPh38CdXBw8ApYS5xcrQ2xTl5iV9tF VhCbU8BGouvEBDBbCKjk0+MfjBMYeRcwMqxilEgtSC4oTkrPNcpLLdcrTswtLs1L10vOz93E CI6EZ9I7GA/vcj/EKMDBqMTD63BqToQQa2JZcWXuIUYJDmYlEd5cqbkRQrwpiZVVqUX58UWl OanFhxhNge6ayCwlmpwPjNK8knhDE3MTc2MDC3NLSxMjJXHextnPwoUE0hNLUrNTUwtSi2D6 mDg4pRoYY29pLNZhSaj+XJ6VMDuw9JT9f9EpQS1nNouLCpdU2dzfJK/Uk+JscOFYWPFT3TSL QpHIXX3ePE90byjuE9DU8Fa8JCtXfNOhj2Gu3kbFj0U7GXM375aNOmeca7c8oPrmG+tn1w6b 3+L/UBLZG8bz8Fb16bnrrd9F86l9lPyw3GmDW+js5RpKLMUZiYZazEXFiQB1Vqy7mgIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170210021728epcas5p46d0256d507157cd4387b707ec616c1d1 X-Msg-Generator: CA X-Sender-IP: 203.254.230.27 X-Local-Sender: =?UTF-8?B?7JWI65SUG1RpemVuIFBsYXRmb3JtIExhYihTL1fshLzthLAp?= =?UTF-8?B?G+yCvOyEseyghOyekBvssYXsnoQ=?= X-Global-Sender: =?UTF-8?B?QW5kaSBTaHl0aRtUaXplbiBQbGF0Zm9ybSBMYWIuG1NhbXN1?= =?UTF-8?B?bmcgRWxlY3Ryb25pY3MbU2VuaW9yIEVuZ2luZWVy?= X-Sender-Code: =?UTF-8?B?QzEwG1NUQUYbQzEwVjgxMTE=?= CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-HopCount: 7 X-CMS-RootMailID: 20170210021728epcas5p46d0256d507157cd4387b707ec616c1d1 X-RootMTR: 20170210021728epcas5p46d0256d507157cd4387b707ec616c1d1 References: <20170210021721.12218-1-andi.shyti@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@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>; + }; +};