From patchwork Wed Oct 26 17:30:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Kemnade X-Patchwork-Id: 13020923 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 7C769C38A2D for ; Wed, 26 Oct 2022 17:31:44 +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=j5DEf4DySUYPU0mutvNKSsASZQ+ZY8APpi9wL4xLrPk=; b=sxCe5EMuCapCdk xic/5BrjkliecBhyNDCrV6UOFtXyS1AdIHJjRZb9SSaPm1vu1t0jyNTx+NoUwQob0qUURx3cHuRmk kBYcAN4TLBJ0ZjUTJEkWHXamevJTlRW6hyaTNrkVwN3hQueb4ZQRMy9jIQ7YekO5lntyBrQah6j6g G4bN9b7edv2tEOsz/Z4Nl318fyGEAxNwTPTsYcTL9CO1V5O/MEDTa8sRyFDZ57thNd8A4ndJyISA3 A1VcsrFW1ilRny4ikdQqEymhsdHznJZZjMyNDnGLH54kHwMVX86h6114c5ULT3vBqWEfHdLDTlFdk gcBgUrERwPK/ziSa7T/Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1onkEl-00ANrM-Ld; Wed, 26 Oct 2022 17:30:43 +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 1onkEi-00ANpb-NX for linux-arm-kernel@lists.infradead.org; Wed, 26 Oct 2022 17:30:42 +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=HiYVn9aMwL/cWE4Pz4ri7pgwUgzFfzrAUVxWFAzu0XU=; b=lbgn16i1S9eaojGWW0u6VDtvT6 wZ9+ttvwf2RdDDlT0lVZa2xUuvLZbKtiIrXT99Wg/lEVBRkcbdJ6ZdoiwIn+OuloJyKayizfL8R/w DJyjHEzUevenSvxxpa56SpisTwUO5GUs3GpJmL8z9CrVolq5ZEHoqv9qpfbfeMaaMYv7VQoiGs/6Q e4v79x2YsjQeRLjoI7QaHXVp/SSVF3knBAdSz91AjFO5DtbTxY9iDz4Yvr6T0FImlTz1FYGTPfF3q db0o9hMIjyGgECPV1x8gZCPfDCzLttLkdPv7aUc0i7R9awbd/ntqBkuCmMWm9wP5be6SpodQ7ZMFg DtsG4M4Q==; Received: from p200300ccff073f001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff07:3f00: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 1onkER-00017B-Q5; Wed, 26 Oct 2022 19:30:24 +0200 Received: from andi by aktux with local (Exim 4.94.2) (envelope-from ) id 1onkEQ-004v7B-W7; Wed, 26 Oct 2022 19:30:23 +0200 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 Francis Cc: Andreas Kemnade Subject: [PATCH] arm: dts: imx: e60k02: Add touchscreen Date: Wed, 26 Oct 2022 19:30:15 +0200 Message-Id: <20221026173015.1172816-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-20221026_103040_945226_6B732E60 X-CRM114-Status: GOOD ( 10.16 ) 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 --- runtime/dtbs_check depends https://lore.kernel.org/linux-devicetree/20221026114908.191472-1-alistair@alistair23.me/T/#t arch/arm/boot/dts/e60k02.dtsi | 12 +++++++++++- arch/arm/boot/dts/imx6sl-tolino-shine3.dts | 14 ++++++++++++++ arch/arm/boot/dts/imx6sll-kobo-clarahd.dts | 14 ++++++++++++++ 3 files changed, 39 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/e60k02.dtsi b/arch/arm/boot/dts/e60k02.dtsi index 935e2359f8df..4f36cc181a52 100644 --- a/arch/arm/boot/dts/e60k02.dtsi +++ b/arch/arm/boot/dts/e60k02.dtsi @@ -104,7 +104,17 @@ &i2c2 { clock-frequency = <100000>; status = "okay"; - /* TODO: CYTTSP5 touch controller at 0x24 */ + touchscreen@24 { + compatible = "cypress,tt21000"; + reg = <0x24>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&pinctrl_cyttsp5_gpio>; + pinctrl-1 = <&pinctrl_cyttsp5_gpio_sleep>; + 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..82d9ed91df92 100644 --- a/arch/arm/boot/dts/imx6sl-tolino-shine3.dts +++ b/arch/arm/boot/dts/imx6sl-tolino-shine3.dts @@ -52,6 +52,20 @@ &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_hog>; + pinctrl_cyttsp5_gpio: cyttsp5_gpio_grp { + fsl,pins = < + MX6SL_PAD_SD1_DAT3__GPIO5_IO06 0x17059 /* TP_INT */ + MX6SL_PAD_SD1_DAT2__GPIO5_IO13 0x10059 /* TP_RST */ + >; + }; + + pinctrl_cyttsp5_gpio_sleep: cyttsp5_gpio_grp_sleep { + fsl,pins = < + MX6SL_PAD_SD1_DAT3__GPIO5_IO06 0x10059 /* 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..d743bf4fd8e6 100644 --- a/arch/arm/boot/dts/imx6sll-kobo-clarahd.dts +++ b/arch/arm/boot/dts/imx6sll-kobo-clarahd.dts @@ -62,6 +62,20 @@ &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_cyttsp5_gpio_sleep: cyttsp5-gpiogrp-sleep { + fsl,pins = < + MX6SLL_PAD_SD1_DATA3__GPIO5_IO06 0x10059 /* 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 */