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: 17179 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2902406wru; Tue, 8 Nov 2022 11:20:55 -0800 (PST) X-Google-Smtp-Source: AMsMyM4wDoYUsm8UOg3JlNoe5Nv6uJQz36KYy5FZej/rIcJMPrffkCQqWKROPAABawPCyLBWoASi X-Received: by 2002:aa7:c606:0:b0:463:69bc:c574 with SMTP id h6-20020aa7c606000000b0046369bcc574mr991081edq.120.1667935255605; Tue, 08 Nov 2022 11:20:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667935255; cv=none; d=google.com; s=arc-20160816; b=O2zvnYSA60KyrO3KowRE68+f8qLB7yekSzRvqjoeSnxZa0CyJvqP5cIjDdyfZvbO3A 1jj6PllqKVjTeHO0evq3Wuf7PJKCvLXole/gvpXTg7iWp0b++ZlCgHHM0dubiGEGICBS b7+gxBAc5/NXInBBMiG/XQChQDJy4aQPwU3GoMSoiikplAPvZyVJEKeZpdZ+cnlXBvem ET0cENmSP3rJJw0EegYTKh0Y+j2WWqY1+jMLS8j/AByUIDqV6BeYjdS2V+T1N0YQdNSN gH1smXCX4Ytz6BpeF3SPza57OwZpSPR3ZiELggtE/ZUlPQYMaxcSCyd0HI/7mTmI5vXZ BdLw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y5-20020a056402440500b004642b0f2357si16025688eda.589.2022.11.08.11.20.31; Tue, 08 Nov 2022 11:20:55 -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 + 99 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748956878709340949?= X-GMAIL-MSGID: =?utf-8?q?1748956878709340949?= 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 */