Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp346722ybg; Tue, 28 Jul 2020 07:32:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNXrscWc34XKqTLR3PKux3vfT3Dl8TgzHohok9+HArZEAA9WTUZIvSbZIQTkxsd98V5hw5 X-Received: by 2002:aa7:d516:: with SMTP id y22mr1128730edq.221.1595946727866; Tue, 28 Jul 2020 07:32:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595946727; cv=none; d=google.com; s=arc-20160816; b=sB+F9ZZGJCVVZ6Z8GbLVrm3gggIFy55dDIaeS6jZAyUGEc5FfufHhKA2feG1rTZjP5 uGmyeKcjwybLr0Anwgc5fuOvXMyfJet7Z6WDZQoczUDnl0q3ENL5BZd1Z8Xfzf76B4Qy FxMb/bsjx+6HaCKZn+FhH7fvif0hHwOpNzNVrZzDlVDZM2kl8aGnkqVJeajEAsJATAFv 5IEfCJlmlEotaLoevpgx3qoIxCAGgln96omF21Frt2MiW6G2PAj9yjgy7lmvRX1W540t mg/dqF+C+KlzS9U9ebPdQsh55HHFcKPMzneCtJlwVwWL46VZYA0Fw0imGFuhjI89Qczb lfpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=PuCFx4/5GPBtkhZdQtt0ppjx/Eupj5+RcHFgg8Hc7vM=; b=IHZGRas++onA6h14Y1f28uRntjoO8sk/Tf8hVzXPnJdRWy8CTSawleiTnO5Nc+32JG iyuRkVnifGRrjwzmVG1BFwSqKmPc4eRjwIuJtobKROiXsAiMHcqE8ILp+HLr/yAXy3It 68erKvr7bgE/qWTjQqTyjBka/AtgW4vwXMytXlT06wdTAj068zqJN/8ltlb5j/QU/E2B Uc6HIa9ECYM/8Lq6KkDMWqhYOkPVvbaWLyRgqUjF1nqNOJBklloLrSiM9VOzk5gXSRzU pHb6Uiz/EssJC9gnzjVLSWfeO60zkiRB6bFZmOLCP5pdsYvQjTs6ywhoICYZrTk3fzxs x/dQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 89si4650637edr.415.2020.07.28.07.31.45; Tue, 28 Jul 2020 07:32:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730413AbgG1ObK (ORCPT + 99 others); Tue, 28 Jul 2020 10:31:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729410AbgG1ObK (ORCPT ); Tue, 28 Jul 2020 10:31:10 -0400 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 59547C061794 for ; Tue, 28 Jul 2020 07:31:10 -0700 (PDT) Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k0QdH-0005d1-7u; Tue, 28 Jul 2020 16:31:07 +0200 Received: from mfe by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1k0QdG-0004du-1g; Tue, 28 Jul 2020 16:31:06 +0200 Date: Tue, 28 Jul 2020 16:31:06 +0200 From: Marco Felsch To: Matthias Schiffer Cc: Shawn Guo , Sascha Hauer , linux-kernel@vger.kernel.org, NXP Linux Team , Pengutronix Kernel Team , Fabio Estevam , linux-arm-kernel@lists.infradead.org Subject: Re: (EXT) Re: [PATCH] arm: dts: imx7: add QSPI Message-ID: <20200728143105.ckc55z6j64e5hiun@pengutronix.de> References: <20200728112814.14158-1-matthias.schiffer@ew.tq-group.com> <20200728135155.aqz3xkcwpgqmvzro@pengutronix.de> <8ea0b3f655b60be02384f22c0aa4dfee9d788d71.camel@ew.tq-group.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8ea0b3f655b60be02384f22c0aa4dfee9d788d71.camel@ew.tq-group.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 16:22:55 up 256 days, 5:41, 241 users, load average: 0.08, 0.05, 0.07 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20-07-28 16:05, Matthias Schiffer wrote: > On Tue, 2020-07-28 at 15:51 +0200, Marco Felsch wrote: > > Hi Matthias, > > > > thanks for the patch. > > > > On 20-07-28 13:28, Matthias Schiffer wrote: > > > In preparation for an update of the TQ-Systems TQMa7x/MBa7x DTS, > > > add the > > > QSPI controller to imx7s.dtsi. > > > > > > Based-on-patch-by: Han Xu > > > Signed-off-by: Matthias Schiffer > > > > > > --- > > > arch/arm/boot/dts/imx7s.dtsi | 13 +++++++++++++ > > > 1 file changed, 13 insertions(+) > > > > > > diff --git a/arch/arm/boot/dts/imx7s.dtsi > > > b/arch/arm/boot/dts/imx7s.dtsi > > > index 1cfaf410aa43..e45683e61593 100644 > > > --- a/arch/arm/boot/dts/imx7s.dtsi > > > +++ b/arch/arm/boot/dts/imx7s.dtsi > > > @@ -1162,6 +1162,19 @@ > > > status = "disabled"; > > > }; > > > > > > + qspi1: spi@30bb0000 { > > > > Are there more controllers and why not using "qspi@30bb0000" as node > > name? > > The vast majority of QSPI controllers use spi@ node names, qspi@ only > appears in a single example in Documentation/devicetree/bindings/, and > in no actual DTS(I) files. IMHO using spi as node name is incorrect because this inherits the assumption to connect 'normal' spi devices to these controllers. But this is absolutly not the case since in most cases the qspi controllers are state-machines optimized for qspi memory devices. So all dts(i) files using spi as node name are incorrect IMHO. But we can't change that due to the backward compability. > There is only one controller. The label "qspi1" is chosen as this has > been in use in the linux-imx vendor kernels for years; IMHO, switching > to "qspi" would just cause unnecessary churn for dependent device > trees. I have no strong opinions on this though. Why? There is no _mainline_ imx7s devicetree using this node currently. I would drop the number since we have only one instance. Regards, Marco > > > + #address-cells = <1>; > > > + #size-cells = <0>; > > > + compatible = "fsl,imx7d-qspi"; > > > + reg = <0x30bb0000 0x10000>, <0x60000000 > > > 0x10000000>; > > > + reg-names = "QuadSPI", "QuadSPI- > > > memory"; > > > > The node should begin with compatible, reg, reg-names properties. > > Pls check the current .dtsi file for examples. > > Thanks, will fix. > > > > > > + interrupts = > > IRQ_TYPE_LEVEL_HIGH>; > > > + clocks = <&clks IMX7D_QSPI_ROOT_CLK>, > > > + <&clks IMX7D_QSPI_ROOT_CLK>; > > > + clock-names = "qspi_en", "qspi"; > > > + status = "disabled"; > > > + }; > > > + > > > sdma: sdma@30bd0000 { > > > compatible = "fsl,imx7d-sdma", > > > "fsl,imx35-sdma"; > > > reg = <0x30bd0000 0x10000>; > > > > Regards, > > Marco > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |