From patchwork Tue Jan 17 13:54:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Shyti X-Patchwork-Id: 9521093 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 170F260449 for ; Tue, 17 Jan 2017 14:07:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F2E5928562 for ; Tue, 17 Jan 2017 14:07:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E0F9B2856E; Tue, 17 Jan 2017 14:07:02 +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=unavailable 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 82BE82856F for ; Tue, 17 Jan 2017 14:07:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751317AbdAQOGJ (ORCPT ); Tue, 17 Jan 2017 09:06:09 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:53217 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751124AbdAQOGC (ORCPT ); Tue, 17 Jan 2017 09:06:02 -0500 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OJX012SGFZLQX60@mailout1.samsung.com>; Tue, 17 Jan 2017 22:54:57 +0900 (KST) Received: from epsmges5p1.samsung.com (unknown [182.195.40.65]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20170117135457epcas1p1d48ab608616738ab1bf4ab4fb3599231~ak5WSPigz1806818068epcas1p1m; Tue, 17 Jan 2017 13:54:57 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p1.samsung.com (EPCPMTA) with SMTP id 20.EE.14952.1322E785; Tue, 17 Jan 2017 22:54:57 +0900 (KST) Received: from epcpsbgm2new.samsung.com (u27.gpu120.samsung.co.kr [203.254.230.27]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20170117135456epcas5p2e303f0c5fa642b43fde543d5d6098dc2~ak5VZ_i081096110961epcas5p26; Tue, 17 Jan 2017 13:54:56 +0000 (GMT) X-AuditID: b6c32a2c-f79bc6d000003a68-61-587e2231f88d Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id B8.C9.26370.0322E785; Tue, 17 Jan 2017 22:54:56 +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 <0OJX0037DFZH4C90@mmp1.samsung.com>; Tue, 17 Jan 2017 22:54:56 +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 1/3] Input: add STMicroelectronics FingerTip touchscreen driver Date: Tue, 17 Jan 2017 22:54:39 +0900 Message-id: <20170117135441.31450-2-andi.shyti@samsung.com> X-Mailer: git-send-email 2.11.0 In-reply-to: <20170117135441.31450-1-andi.shyti@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrBKsWRmVeSWpSXmKPExsWy7bCmlq6hUl2Ewf+vOhbbjzxjtVj84zmT xfUvz1kt5h85x2pxeNELRos3b9cwWZ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xfUvz1kt5h85x2pxeNELRos3b9cwWZw/v4Hd4uanb6wWl3fNYbOYcX4fk0Xr3iPsDtwe15d8 YvbYOesuu8emVZ1sHlv6gay+LasYPT5vkgtgi3KzyUhNTEktUkjNS85PycxLt1UKDXHTtVBS yEvMTbVVitD1DQlSUihLzCkF8owM0ICDc4B7sJK+XYJbRlPbffaCnfwVvbcuszUwvuPpYuTk kBAwkZj48SMzhC0mceHeerYuRi4OIYGljBJ/VhxlBUkICXxklJh4rBjEZhPQlGi6/QOsSETg OqPEo84lLCAOs8ARRonnx/sZQaqEBfwlJj+7wwJiswioSizZ+5Opi5GDg1fAWuLEjhqIbfIS u9ousoKEOQVsJJ60+0Hsspa4tKCPeQIj7wJGhlWMEqkFyQXFSem5Rnmp5XrFibnFpXnpesn5 uZsYwVHwTHoH4+Fd7ocYBTgYlXh4A0TrIoRYE8uKK3MPMUpwMCuJ8O6XAwrxpiRWVqUW5ccX leakFh9iNAU6ayKzlGhyPjBC80riDU3MTcyNDSzMLS1NjJTEeRtnPwsXEkhPLEnNTk0tSC2C 6WPi4JRqYGzZdubomWldZR4JLGpMOUdf++3ufr6m3SBLyf7St/uf/n1m/Xfr446PRVdO8iTn K61v8ow5tzD0VHTB3HcpRwM3nHl99pfQ4sD9N4KX+bTNfWJSIGZ9x/Kgrdm86MybJjOZItMs Yvm2+RyJ9MkqUMw+dHLXmSnr8x8tOXCCa0OYdDdv7+JHjCVKLMUZiYZazEXFiQDcWCK7mAIA AA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170117135456epcas5p2e303f0c5fa642b43fde543d5d6098dc2 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: 20170117135456epcas5p2e303f0c5fa642b43fde543d5d6098dc2 X-RootMTR: 20170117135456epcas5p2e303f0c5fa642b43fde543d5d6098dc2 References: <20170117135441.31450-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 --- .../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..788f4ba744db --- /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 { + + /* ... */ + + stmfts@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>; + }; +};