Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2351109rwb; Fri, 11 Nov 2022 08:09:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf4P+rhrvckr1pUD/MsaBJLO0UY4gep+ZwibtNx2A0b2TI0gin5Ssq0KIJrsyjKnctwMlE4L X-Received: by 2002:a17:90a:7442:b0:212:d686:f99f with SMTP id o2-20020a17090a744200b00212d686f99fmr2582256pjk.109.1668182972999; Fri, 11 Nov 2022 08:09:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668182972; cv=none; d=google.com; s=arc-20160816; b=eHMMp8XhC+HH7biVDb7/7PMBXgQcBTuDB6FrxeizCdQJJvwee6DzPPYv0ypKFGFkvW bMiyb5ahVMpYnfRrJuCyqoxDGwxJjUSbOrup8d+Y2rtU9NdahhFIPl5nI1xYeATuqxy+ OWA8+sNbZtoilkglIC0pFKDfn/DQmGDGdPuJoial6Ix3QwAk0EZJBI7HJ+BBxpiEbMkh BPlXo8XWmS881zvfIe7YLEaU4SLKMJUqroQQt5AnIry8LhHJB3npwSwVvBfi18uuZop6 9U+HuiEAspIWKJyiCrwivZSGrovJ9lzJoHEn/lac5WTl2v53WEo+IhYPITFqbyB3YQzs LPew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=EH9vkMmlEvWhD8QgiuTj+xfgwCdk4g1wWiZnV8HG0m8=; b=PmomHGS8tiHeszAtEvsVqpF28gTsJzXcm6q7LpaQPxVdMKj2DoOe6ViCSAsPBS0PLp ui0sWwloecSi/NyKR1JyPfDjpLUVcwGx7SDxZs60N7BRcp5I6Uyim4ePMitl3vx9DmHl nyewa16ChmujvU6iAzljKTHJ2Tt6olpAucmBbBZfWlGpPYTBLsywCHJLqIKY5OzVi7zf BchMQY8nDYjyeEDLv3+sL0vUz4k/b9F9RlaQRoojntSRHrClCZvLcknU78413Z2hs0sq mcy0TOx0sKbrtNa7lQBXfnohWKAsXpdVnLJXVNs96pm+LujhQNbnwjvpsZFX3/uyzmuQ Rqqg== ARC-Authentication-Results: i=1; mx.google.com; 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 d14-20020a056a00244e00b005698856bb2bsi2508791pfj.330.2022.11.11.08.09.20; Fri, 11 Nov 2022 08:09:32 -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; 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 S233845AbiKKPjI (ORCPT + 91 others); Fri, 11 Nov 2022 10:39:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233851AbiKKPjE (ORCPT ); Fri, 11 Nov 2022 10:39:04 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 830DF14D20 for ; Fri, 11 Nov 2022 07:39:02 -0800 (PST) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1otW7J-00032x-OM; Fri, 11 Nov 2022 16:38:53 +0100 Received: from mfe by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1otW7G-0004Fi-Sa; Fri, 11 Nov 2022 16:38:50 +0100 Date: Fri, 11 Nov 2022 16:38:50 +0100 From: Marco Felsch To: Andreas Kemnade Cc: 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 Subject: Re: [PATCH v3] ARM: dts: imx: e60k02: Add touchscreen Message-ID: <20221111153850.kxg7yyn2azrr5mu4@pengutronix.de> References: <20221108191543.1752080-1-andreas@kemnade.info> <20221109092350.2ke6sbgbcp3wpelc@pengutronix.de> <20221109124536.5154cb03@aktux> <20221111091223.if2ahwz67vkf72ba@pengutronix.de> <20221111105438.26c477ae@aktux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221111105438.26c477ae@aktux> User-Agent: NeoMutt/20180716 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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 On 22-11-11, Andreas Kemnade wrote: > Hi Marco, > > On Fri, 11 Nov 2022 10:12:23 +0100 > Marco Felsch wrote: > > > Hi Andreas, > > > > On 22-11-09, Andreas Kemnade wrote: > > > On Wed, 9 Nov 2022 10:23:50 +0100 > > > Marco Felsch wrote: > > > > > > > Hi Andreas, > > > > > > > > On 22-11-08, Andreas Kemnade wrote: > > > > > Add the touchscreen now, since the driver is available. > > > > > > > > > > Signed-off-by: Andreas Kemnade > > > > > --- > > > > > 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 >