Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4056969rwb; Tue, 8 Nov 2022 11:28:48 -0800 (PST) X-Google-Smtp-Source: AMsMyM54ypy8jXpPJ7zKC0iV1gGmRj8DpjdCgqfWx+7kmnJdCPM/r0/SCbfFPloJ8rwz9QcC3OLs X-Received: by 2002:a17:907:a07a:b0:7ad:88f8:7ed9 with SMTP id ia26-20020a170907a07a00b007ad88f87ed9mr52671540ejc.579.1667935727905; Tue, 08 Nov 2022 11:28:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667935727; cv=none; d=google.com; s=arc-20160816; b=mqQnFJbyznDWQKEwOXBfoT3jhXdouL9jOrnCLzzYb7nVh+pNCRoO7F/hCLVCDnp0NT ga7lJtBhqmHPPbbCSi35fN6mltsdu55IPbLjtYQzp1mZ6fq6aegPWbUDQGEn3TUDRo9I Ed4rHgAlZlrGo9tZt6Q9JSsLLlcvv2itivJlZyaD+j8mpB1EIqhCY4psJfO9/7EstwO+ d+VksCNxhTJsanZq4CKho/koTqDA5ZUCoUBNaoKr6AooPtW3PZIgHtFyFr85hQm2PqD3 F9dTwaZsWXVsrYuuuBibpyz+R3DPjjrcuTjI4oLQQofEe5anJDdTuXQzgDperrST94yJ b5Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=S9kcL9L3kIx4P+16IIBvb0i7VOAc8cgMQdqDyHRXBlk=; b=XwEZF0+GzZnl/Qrjj6QBa4qKZFBiQw+Iji8tdOIUqIFxQMTz9ma95Q0Pe2vzLnJzSk bwed9dFKGlbe4AMpkoT3403l8G2VE/Uw0kOgLYjC6huV+AZspGZ3dO372mf6+Xy9LBc0 DdI+OYxPuoGhh3RWBVfGW0IccUugQqo+LU78NkaRV38mWvyyMvROH+xgzEnXvcdhvcz5 C8flFYsnspTTYsFuFUhkEfr0iwYTmTn3g4YiDH2fJG1672vXoyiR+KOL4hDKaltmVOH1 08xfu/4OqCGXyg92Xa2j1vBlO6Ep7/o3QViUMCu9/d7Gs4LDe/b4rYsX3Xu9Dx6eLUbY Dkqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=IEYMHHRf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a21-20020a1709066d5500b007807e1f3d9dsi9571241ejt.842.2022.11.08.11.28.26; Tue, 08 Nov 2022 11:28:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=IEYMHHRf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229797AbiKHTQC (ORCPT + 91 others); Tue, 8 Nov 2022 14:16:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229556AbiKHTQA (ORCPT ); Tue, 8 Nov 2022 14:16:00 -0500 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a01:238:4321:8900:456f:ecd6:43e:202c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 221B95E3EA; Tue, 8 Nov 2022 11:15:58 -0800 (PST) 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 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.0 (-) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 */ -- 2.30.2