From patchwork Tue Jan 17 13:54:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Shyti X-Patchwork-Id: 9521097 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 9034260244 for ; Tue, 17 Jan 2017 14:07:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 76E2928562 for ; Tue, 17 Jan 2017 14:07:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 69DA62856B; Tue, 17 Jan 2017 14:07:09 +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 00B4228562 for ; Tue, 17 Jan 2017 14:07:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751166AbdAQOHH (ORCPT ); Tue, 17 Jan 2017 09:07:07 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:53110 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751051AbdAQOGH (ORCPT ); Tue, 17 Jan 2017 09:06:07 -0500 Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OJX02N6VFZLJC50@mailout4.samsung.com>; Tue, 17 Jan 2017 22:54:57 +0900 (KST) Received: from epsmges5p3.samsung.com (unknown [182.195.40.64]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20170117135457epcas1p13e7aa4686659a60d690597a4c2ef42e6~ak5V7fhlp2006220062epcas1p1d; Tue, 17 Jan 2017 13:54:57 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p3.samsung.com (EPCPMTA) with SMTP id C8.B2.10771.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 20170117135457epcas5p2044e9e5cd9eb6b162bb0acb4e317bdfb~ak5VoUi9s1096110961epcas5p27; Tue, 17 Jan 2017 13:54:57 +0000 (GMT) X-AuditID: b6c32a2e-f79f46d000002a13-b1-587e2231c0a3 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 3A.C9.26370.0322E785; Tue, 17 Jan 2017 22:54:57 +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 3/3] arm64: dts: exynos: Add stmfts touchscreen node for TM2 and TM2E Date: Tue, 17 Jan 2017 22:54:41 +0900 Message-id: <20170117135441.31450-4-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+NgFrrFKsWRmVeSWpSXmKPExsWy7bCmpq6hUl2Ewf9DohbbjzxjtVj84zmT xfUvz1kt5h85x2p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K6hUl2EweS3TBbbjzxjtVj84zmT xfUvz1kt5h85x2pxeNELRos3b9cwWZw/v4Hd4uanb6wWl3fNYbOYcX4fk0Xr3iPsDtwe15d8 YvbYOesuu8emVZ1sHlv6gay+LasYPT5vkgtgi3KzyUhNTEktUkjNS85PycxLt1UKDXHTtVBS yEvMTbVVitD1DQlSUihLzCkF8owM0ICDc4B7sJK+XYJbRu/u/UwFKwQqnvydxt7A+I63i5GT Q0LARGLN40ZmCFtM4sK99WxdjFwcQgJLGSX2393PDpIQEvjIKDHxWDGIzSagKdF0+wdYkYjA dUaJR51LWEAcZoEjjBLPj/czglQJC4RLNFz6D2azCKhKbFvxHGwSr4C1xK4L56DWyUvsarvI 2sXIwcEpYCPxpN0PYpm1xKUFfcwTGHkXMDKsYpRILUguKE5KzzXKSy3XK07MLS7NS9dLzs/d xAiOg2fSOxgP73I/xCjAwajEwxsgWhchxJpYVlyZe4hRgoNZSYR3vxxQiDclsbIqtSg/vqg0 J7X4EKMp0F0TmaVEk/OBMZpXEm9oYm5ibmxgYW5paWKkJM7bOPtZuJBAemJJanZqakFqEUwf EwenVAPjTkGbx1mz238oeZ3dtGWL/q63iitl1cUNzfQYdrDP6RDaVhQSc9iq+c7mpk+7THWP r/3lfVlk1hwWE2V+7Su2fmZLuxP2/njx+OG32RE/7KuvWd+qfn7lVfelO0s2dvC4ZeYdWBB/ a/Gkbo2Tfx1Ts3ILHk/kl20MWhXp9yY92KgvK+6xeOAsJZbijERDLeai4kQAyLKwLpkCAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170117135457epcas5p2044e9e5cd9eb6b162bb0acb4e317bdfb 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: 20170117135457epcas5p2044e9e5cd9eb6b162bb0acb4e317bdfb X-RootMTR: 20170117135457epcas5p2044e9e5cd9eb6b162bb0acb4e317bdfb 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 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" Signed-off-by: Andi Shyti Reviewed-by: Javier Martinez Canillas --- arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi | 13 +++++++++++++ arch/arm64/boot/dts/exynos/exynos5433-tm2.dts | 5 +++++ arch/arm64/boot/dts/exynos/exynos5433-tm2e.dts | 7 +++++++ 3 files changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi b/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi index a5c866901e93..689d5c124a49 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi @@ -745,6 +745,19 @@ }; }; +&hsi2c_5 { + status = "okay"; + + touchscreen: stmfts@49 { + compatible = "st,stmfts"; + reg = <0x49>; + interrupt-parent = <&gpa1>; + interrupts = <1 IRQ_TYPE_NONE>; + avdd-supply = <&ldo30_reg>; + vdd-supply = <&ldo31_reg>; + }; +}; + &hsi2c_7 { status = "okay"; diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts b/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts index 2449266b268f..d0311d34c6bd 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts +++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts @@ -29,3 +29,8 @@ regulator-min-microvolt = <3000000>; regulator-max-microvolt = <3000000>; }; + +&touchscreen { + 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 2fbf3a860316..388880dcb5ae 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433-tm2e.dts +++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2e.dts @@ -29,3 +29,10 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; }; + +&touchscreen { + touchscreen-size-x = <1599>; + touchscreen-size-y = <2559>; + touch-key-connected; + ledvdd-supply = <&ldo33_reg>; +};