Message ID | 20221108191543.1752080-1-andreas@kemnade.info |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> 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 <rfc822;tony84727@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <andreas@kemnade.info>) 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 <andreas@kemnade.info>) id 1osU4d-007Lo9-9P; Tue, 08 Nov 2022 20:15:51 +0100 From: Andreas Kemnade <andreas@kemnade.info> 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 <andreas@kemnade.info> 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: <linux-kernel.vger.kernel.org> 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?= |
Series |
[v3] ARM: dts: imx: e60k02: Add touchscreen
|
|
Commit Message
Andreas Kemnade
Nov. 8, 2022, 7:15 p.m. UTC
Add the touchscreen now, since the driver is available.
Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
---
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(-)
Comments
Hi Andreas, On 22-11-08, Andreas Kemnade wrote: > Add the touchscreen now, since the driver is available. > > Signed-off-by: Andreas Kemnade <andreas@kemnade.info> > --- > Changes in v3: no phandles pointing from dtsi to dts Thanks for this change... > 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>; > + }; but we still have a cross-reference to the .dtsi file here. Therefore I said to move the interrupt/reset-gpio into the dts file too. I know this is a kind of a nitpick but I really don't like such cross-references. Regards, Marco > > /* 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 > > >
On Wed, 9 Nov 2022 10:23:50 +0100 Marco Felsch <m.felsch@pengutronix.de> wrote: > Hi Andreas, > > On 22-11-08, Andreas Kemnade wrote: > > Add the touchscreen now, since the driver is available. > > > > Signed-off-by: Andreas Kemnade <andreas@kemnade.info> > > --- > > Changes in v3: no phandles pointing from dtsi to dts > > Thanks for this change... > > > 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>; > > + }; > > but we still have a cross-reference to the .dtsi file here. Therefore > I said to move the interrupt/reset-gpio into the dts file too. I know > this is a kind of a nitpick but I really don't like such > cross-references. > hmm. &gpio5 references to imx6sl[l].dtsi, not dts, so what is the problem here? And we have this pattern all over the place. What is different to the touchscreen that this pattern is not wanted here but accepted everywhere else? It is there for - backlight - irq of pmic - reset/gpio-regulator of wifi - leds - keys And you have also done some review work there. Here I am caring a bit about readability since I have still to do maintenance work on this file, so I am a bit more concerned than that it a) just works and b) is being accepted upstream. If it is not allowed to have common things in the e60k02.dtsi file, what about ditching that file alltogether and just have the two .dts files? I personally prefer the v2 variant, but v3 is a compromise. For comparison, the feature-complete version used by postmarketOS is here: https://github.com/akemnade/linux/blob/kobo/drm-merged-5.19/arch/arm/boot/dts/e60k02.dtsi Regards, Andreas
Hi Andreas, On 22-11-09, Andreas Kemnade wrote: > On Wed, 9 Nov 2022 10:23:50 +0100 > Marco Felsch <m.felsch@pengutronix.de> wrote: > > > Hi Andreas, > > > > On 22-11-08, Andreas Kemnade wrote: > > > Add the touchscreen now, since the driver is available. > > > > > > Signed-off-by: Andreas Kemnade <andreas@kemnade.info> > > > --- > > > Changes in v3: no phandles pointing from dtsi to dts > > > > Thanks for this change... > > > > > 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>; > > > + }; > > > > but we still have a cross-reference to the .dtsi file here. Therefore > > I said to move the interrupt/reset-gpio into the dts file too. I know > > this is a kind of a nitpick but I really don't like such > > cross-references. > > > hmm. &gpio5 references to imx6sl[l].dtsi, not dts, so what is the > problem here? Sorry for the missunderstanding, I didn't mean the phandle. I mean the mux setting which is done in the dts right? I'm just not a fan of muxing pins in one file an using those 'assumptions' in others. Except for platforms like the imx8mm-evk which is exactly the same hardware and only differs in the RAM they used. But you have two different platforms right? Hope this clears some of the confusions. > And we have this pattern all over the place. > > What is different to the touchscreen that this pattern is not wanted > here but > accepted everywhere else? It is there for > - backlight > - irq of pmic > - reset/gpio-regulator of wifi > - leds > - keys > > And you have also done some review work there. > > Here I am caring a bit about readability since I have still to do > maintenance work on this file, so I am a bit more concerned than that > it a) just works and b) is being accepted upstream. > > If it is not allowed to have common things in the e60k02.dtsi file, what > about ditching that file alltogether and just have the two .dts files? > > I personally prefer the v2 variant, but v3 is a compromise. > > For comparison, the feature-complete version used by postmarketOS is > here: > https://github.com/akemnade/linux/blob/kobo/drm-merged-5.19/arch/arm/boot/dts/e60k02.dtsi > > Regards, > Andreas >
Hi Marco, On Fri, 11 Nov 2022 10:12:23 +0100 Marco Felsch <m.felsch@pengutronix.de> wrote: > Hi Andreas, > > On 22-11-09, Andreas Kemnade wrote: > > On Wed, 9 Nov 2022 10:23:50 +0100 > > Marco Felsch <m.felsch@pengutronix.de> wrote: > > > > > Hi Andreas, > > > > > > On 22-11-08, Andreas Kemnade wrote: > > > > Add the touchscreen now, since the driver is available. > > > > > > > > Signed-off-by: Andreas Kemnade <andreas@kemnade.info> > > > > --- > > > > Changes in v3: no phandles pointing from dtsi to dts > > > > > > Thanks for this change... > > > > > > > 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>; > > > > + }; > > > > > > but we still have a cross-reference to the .dtsi file here. Therefore > > > I said to move the interrupt/reset-gpio into the dts file too. I know > > > this is a kind of a nitpick but I really don't like such > > > cross-references. > > > > > hmm. &gpio5 references to imx6sl[l].dtsi, not dts, so what is the > > problem here? > > Sorry for the missunderstanding, I didn't mean the phandle. I mean the > mux setting which is done in the dts right? I'm just not a fan of > muxing pins in one file an using those 'assumptions' in others. Except > for platforms like the imx8mm-evk which is exactly the same hardware and > only differs in the RAM they used. But you have two different platforms > right? > Same board, same PCB marking, the only spotted difference is the name on the case and the SoC (which is pin-compatible, so GPIOs will be all the same). In the case of different hardware platforms I would understand your ruffled feathers. Regards, Andreas
On 22-11-11, Andreas Kemnade wrote: > Hi Marco, > > On Fri, 11 Nov 2022 10:12:23 +0100 > Marco Felsch <m.felsch@pengutronix.de> wrote: > > > Hi Andreas, > > > > On 22-11-09, Andreas Kemnade wrote: > > > On Wed, 9 Nov 2022 10:23:50 +0100 > > > Marco Felsch <m.felsch@pengutronix.de> wrote: > > > > > > > Hi Andreas, > > > > > > > > On 22-11-08, Andreas Kemnade wrote: > > > > > Add the touchscreen now, since the driver is available. > > > > > > > > > > Signed-off-by: Andreas Kemnade <andreas@kemnade.info> > > > > > --- > > > > > Changes in v3: no phandles pointing from dtsi to dts > > > > > > > > Thanks for this change... > > > > > > > > > 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>; > > > > > + }; > > > > > > > > but we still have a cross-reference to the .dtsi file here. Therefore > > > > I said to move the interrupt/reset-gpio into the dts file too. I know > > > > this is a kind of a nitpick but I really don't like such > > > > cross-references. > > > > > > > hmm. &gpio5 references to imx6sl[l].dtsi, not dts, so what is the > > > problem here? > > > > Sorry for the missunderstanding, I didn't mean the phandle. I mean the > > mux setting which is done in the dts right? I'm just not a fan of > > muxing pins in one file an using those 'assumptions' in others. Except > > for platforms like the imx8mm-evk which is exactly the same hardware and > > only differs in the RAM they used. But you have two different platforms > > right? > > > Same board, same PCB marking, the only spotted difference is the name on the > case and the SoC (which is pin-compatible, so GPIOs will be all the same). > > In the case of different hardware platforms I would understand your > ruffled feathers. Okay, if it is the same PCB, you're right. In that case v2 should be sufficient. Sorry for the noise, but I didn't not assume that due to the complete different the .dts file names. Regards, Marco > > Regards, > Andreas >
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 */