From patchwork Fri Feb 10 02:17:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Shyti X-Patchwork-Id: 9565907 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 082B360573 for ; Fri, 10 Feb 2017 02:18:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E623828548 for ; Fri, 10 Feb 2017 02:18:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB1A82854F; Fri, 10 Feb 2017 02:18:26 +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 569B82854A for ; Fri, 10 Feb 2017 02:18:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751350AbdBJCRx (ORCPT ); Thu, 9 Feb 2017 21:17:53 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:53496 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751029AbdBJCRs (ORCPT ); Thu, 9 Feb 2017 21:17:48 -0500 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OL401WKWZP6C460@mailout2.samsung.com>; Fri, 10 Feb 2017 11:17:30 +0900 (KST) Received: from epsmges5p1.samsung.com (unknown [182.195.40.67]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20170210021730epcas1p3fa596e253764405b15a0a8aec6758660~hy3PUI9Pq0614506145epcas1p3D; Fri, 10 Feb 2017 02:17:30 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p1.samsung.com (EPCPMTA) with SMTP id 51.AE.04990.AB22D985; Fri, 10 Feb 2017 11:17:30 +0900 (KST) Received: from epcpsbgm2new.samsung.com (u27.gpu120.samsung.co.kr [203.254.230.27]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20170210021729epcas5p4101902873e65e0a8faeb2f9cbea5843c~hy3OcyMfO3142531425epcas5p4I; Fri, 10 Feb 2017 02:17:29 +0000 (GMT) X-AuditID: b6c32a2c-f79dd6d00000137e-1f-589d22bac6c4 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 9C.6E.06428.9B22D985; Fri, 10 Feb 2017 11:17:29 +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:29 +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 3/3] arm64: dts: exynos: Add stmfts touchscreen node for TM2 and TM2E Date: Fri, 10 Feb 2017 11:17:21 +0900 Message-id: <20170210021721.12218-4-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+NgFrrNKsWRmVeSWpSXmKPExsWy7bCmpu4upbkRBqe2CFhsP/KM1WLxj+dM Fte/PGe1mH/kHKvF4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/kHKvF4UUvGC3evF3DZHH+/AZ2i5ufvrFaXN41h81ixvl9TBate4+wO3B7XF/y idlj56y77B6bVnWyeWzpB7L6tqxi9Pi8SS6ALcrNJiM1MSW1SCE1Lzk/JTMv3VYpNMRN10JJ IS8xN9VWKULXNyRISaEsMacUyDMyQAMOzgHuwUr6dgluGXMWTGYt2CBSca/tClMD42TBLkZO DgkBE4mG+Q2MELaYxIV769m6GLk4hASWMkrsf7mSGcL5yChxcesaNpAqNgFNiabbP8CqRASu M0o86lzCAuIwCxxhlHh+vB9oFgeHsECUxI0rOiANLAKqEi37L4Kt4BWwlmhdtoAdYp28xK62 i6wgNqeAjUTXiQlgthBQzafHPxgnMPIuYGRYxSiRWpBcUJyUnmuUl1quV5yYW1yal66XnJ+7 iREcCc+kdzAe3uV+iFGAg1GJh9fh1JwIIdbEsuLK3EOMEhzMSiK8uVJzI4R4UxIrq1KL8uOL SnNSiw8xmgIdNpFZSjQ5HxileSXxhibmJubGBhbmlpYmRkrivI2zn4ULCaQnlqRmp6YWpBbB 9DFxcEo1MB7tjrUt6Vhtl5DyyKzKmjuhZ/5Zkb79x31E1D44WAYs9H+y/NW7EjajhwlGmnOr BNNlawXPFJydOfFhh+KJjaeuXHxf4W7ykWXpNYulF68dbeH7eObMETbrhGaWXVfzAh8VRO1W Ec4ufHJm07Gq55f1r1ivW3OM7/drKa9dLEavUhh3Hijft0SJpTgj0VCLuag4EQDqTT/nmgIA AA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170210021729epcas5p4101902873e65e0a8faeb2f9cbea5843c 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: 20170210021729epcas5p4101902873e65e0a8faeb2f9cbea5843c X-RootMTR: 20170210021729epcas5p4101902873e65e0a8faeb2f9cbea5843c 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 TM2 and TM2E devices are provided with a ST-Microelectronics Finger Tip S device with small differences: - screen size - TM2E uses the stmfts also as a touchkey for "back" and "menu" In this commit the initial value of the interrupt line is set to EXYNOS_PIN_PULL_UP as the interrupt is triggered when the line goes down. Signed-off-by: Andi Shyti Reviewed-by: Javier Martinez Canillas --- arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi | 15 ++++++++++++++- arch/arm64/boot/dts/exynos/exynos5433-tm2.dts | 5 +++++ arch/arm64/boot/dts/exynos/exynos5433-tm2e.dts | 7 +++++++ 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi b/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi index 098ad557fee3..b1f7083dbe72 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi @@ -749,6 +749,19 @@ }; }; +&hsi2c_5 { + status = "okay"; + + stmfts: touchscreen@49 { + compatible = "st,stmfts"; + reg = <0x49>; + interrupt-parent = <&gpa1>; + interrupts = <1 IRQ_TYPE_LEVEL_LOW>; + avdd-supply = <&ldo30_reg>; + vdd-supply = <&ldo31_reg>; + }; +}; + &hsi2c_7 { status = "okay"; @@ -894,7 +907,7 @@ PIN(INPUT, gpa0-7, NONE, FAST_SR1); PIN(INPUT, gpa1-0, UP, FAST_SR1); - PIN(INPUT, gpa1-1, NONE, FAST_SR1); + PIN(INPUT, gpa1-1, UP, FAST_SR1); PIN(INPUT, gpa1-2, NONE, FAST_SR1); PIN(INPUT, gpa1-3, DOWN, FAST_SR1); PIN(INPUT, gpa1-4, DOWN, FAST_SR1); diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts b/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts index dea0a6f5bc18..75274b3afbd3 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts +++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts @@ -76,3 +76,8 @@ regulator-min-microvolt = <3000000>; regulator-max-microvolt = <3000000>; }; + +&stmfts { + touchscreen-size-x = <1439>; + touchscreen-size-y = <2559>; +}; diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2e.dts b/arch/arm64/boot/dts/exynos/exynos5433-tm2e.dts index 7891a31adc17..694717ade927 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433-tm2e.dts +++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2e.dts @@ -63,3 +63,10 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; }; + +&stmfts { + touchscreen-size-x = <1599>; + touchscreen-size-y = <2559>; + touch-key-connected; + ledvdd-supply = <&ldo33_reg>; +};