From patchwork Tue Nov 8 19:15:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Kemnade X-Patchwork-Id: 13036762 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B5427C4332F for ; Tue, 8 Nov 2022 19:17:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=bYEdbk1rFOcOEPZS8zkqTqzMfBjvIRZH51XqjignyRU=; b=EhlacwxMiTMgHs 77+YOOnE5vQ1d//9EAxUHgq2/fwZOFOmwMonplvu8ssneSZRsq253rGTZwVw7GFriUT562Z8Zg9+8 2DVZij8nzmFgh5CSfm88HKyDklHRbh2hxIJhy//eZ37Yp/Y7Fya4emnI4aqHVMUbuf0w2oApgGTYc ABvVIwcbZpsFbqHAhqere2y5C8C2WpNDnjX4/RdGB9R7jSD9MrJIbAAwp9mCPh1fF3Z441rIwC5cC faU5XuqzEP3YlCugGDZsUY5EThHFhk9rooHm8WtZRt0GLVtXY5HEnQbtmuceqyxJFWFG+hHLXKWrA jvL+sqbDyRN2BY8HyjYg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1osU4y-007oTv-QE; Tue, 08 Nov 2022 19:16:12 +0000 Received: from mail.andi.de1.cc ([2a01:238:4321:8900:456f:ecd6:43e:202c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1osU4s-007oRJ-FR for linux-arm-kernel@lists.infradead.org; Tue, 08 Nov 2022 19:16:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20220719; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=S9kcL9L3kIx4P+16IIBvb0i7VOAc8cgMQdqDyHRXBlk=; b=IEYMHHRfG6/Ogsxum4S/1BoTcd AmW8M4fFpfDlRMWRBbbVunDQj67S2wbHnSIIjXCil83eT5MncCcb+ubdMo0+ePUHdiS0w42Krqk7W 8c3O5n95VKlM1PabF7UcmpasamhvmL/p1Ze1JAXCpTYRG+AV2jnBTRPziXXGzv9WSBtgZjGsSDLcS oLxRoLIOj/ucZog9mjoGf/pRwepv55lZ1tGIlxFVdtno6mFf95IZnbBgvvepiF6D67RNJAvEY3pYl 4NK8djEtqC9vrcSbR7iq7GkF6YxzuMa0ebnfxJzlt+stTwnRpoRM2cTkYFs0z+m9R8QtetvQfYTAN bB/8YckA==; Received: from p200300ccff1252001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff12:5200:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1osU4e-0006cz-Jf; Tue, 08 Nov 2022 20:15:52 +0100 Received: from andi by aktux with local (Exim 4.94.2) (envelope-from ) id 1osU4d-007Lo9-9P; Tue, 08 Nov 2022 20:15:51 +0100 From: Andreas Kemnade To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, alistair@alistair23.me Cc: Andreas Kemnade Subject: [PATCH v3] ARM: dts: imx: e60k02: Add touchscreen Date: Tue, 8 Nov 2022 20:15:43 +0100 Message-Id: <20221108191543.1752080-1-andreas@kemnade.info> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221108_111606_714382_EE6F7B39 X-CRM114-Status: GOOD ( 11.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add the touchscreen now, since the driver is available. Signed-off-by: Andreas Kemnade --- Changes in v3: no phandles pointing from dtsi to dts Changes in v2: fix pinmux naming arch/arm/boot/dts/e60k02.dtsi | 9 ++++++++- arch/arm/boot/dts/imx6sl-tolino-shine3.dts | 12 ++++++++++++ arch/arm/boot/dts/imx6sll-kobo-clarahd.dts | 12 ++++++++++++ 3 files changed, 32 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/e60k02.dtsi b/arch/arm/boot/dts/e60k02.dtsi index 935e2359f8df..99091db3ab2a 100644 --- a/arch/arm/boot/dts/e60k02.dtsi +++ b/arch/arm/boot/dts/e60k02.dtsi @@ -104,7 +104,14 @@ &i2c2 { clock-frequency = <100000>; status = "okay"; - /* TODO: CYTTSP5 touch controller at 0x24 */ + cyttsp5: touchscreen@24 { + compatible = "cypress,tt21000"; + reg = <0x24>; + interrupt-parent = <&gpio5>; + interrupts = <6 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; + vdd-supply = <&ldo5_reg>; + }; /* TODO: TPS65185 PMIC for E Ink at 0x68 */ diff --git a/arch/arm/boot/dts/imx6sl-tolino-shine3.dts b/arch/arm/boot/dts/imx6sl-tolino-shine3.dts index e3f1e8d79528..e98dc302e2e3 100644 --- a/arch/arm/boot/dts/imx6sl-tolino-shine3.dts +++ b/arch/arm/boot/dts/imx6sl-tolino-shine3.dts @@ -26,6 +26,11 @@ / { compatible = "kobo,tolino-shine3", "fsl,imx6sl"; }; +&cyttsp5 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_cyttsp5_gpio>; +}; + &gpio_keys { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio_keys>; @@ -52,6 +57,13 @@ &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_hog>; + pinctrl_cyttsp5_gpio: cyttsp5-gpiogrp { + fsl,pins = < + MX6SL_PAD_SD1_DAT3__GPIO5_IO06 0x17059 /* TP_INT */ + MX6SL_PAD_SD1_DAT2__GPIO5_IO13 0x10059 /* TP_RST */ + >; + }; + pinctrl_gpio_keys: gpio-keysgrp { fsl,pins = < MX6SL_PAD_SD1_DAT1__GPIO5_IO08 0x17059 /* PWR_SW */ diff --git a/arch/arm/boot/dts/imx6sll-kobo-clarahd.dts b/arch/arm/boot/dts/imx6sll-kobo-clarahd.dts index 90b32f5eb529..6bb80720ea66 100644 --- a/arch/arm/boot/dts/imx6sll-kobo-clarahd.dts +++ b/arch/arm/boot/dts/imx6sll-kobo-clarahd.dts @@ -36,6 +36,11 @@ &cpu0 { soc-supply = <&dcdc1_reg>; }; +&cyttsp5 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_cyttsp5_gpio>; +}; + &gpio_keys { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio_keys>; @@ -62,6 +67,13 @@ &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_hog>; + pinctrl_cyttsp5_gpio: cyttsp5-gpiogrp { + fsl,pins = < + MX6SLL_PAD_SD1_DATA3__GPIO5_IO06 0x17059 /* TP_INT */ + MX6SLL_PAD_SD1_DATA2__GPIO5_IO13 0x10059 /* TP_RST */ + >; + }; + pinctrl_gpio_keys: gpio-keysgrp { fsl,pins = < MX6SLL_PAD_SD1_DATA1__GPIO5_IO08 0x17059 /* PWR_SW */