Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp736054imu; Tue, 11 Dec 2018 06:50:15 -0800 (PST) X-Google-Smtp-Source: AFSGD/WHamO/hPhuLzbPzEd3iw5ZkyQuwPy4JBGWkog+E/TXMGSErsDlaT4/ewjSWgB7IZwYnpl9 X-Received: by 2002:a63:334a:: with SMTP id z71mr15035753pgz.400.1544539815506; Tue, 11 Dec 2018 06:50:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544539815; cv=none; d=google.com; s=arc-20160816; b=juQuCljE2GAFQF8ruEM7RrnJEH1TOOgSMvYXQLhWsl/JGHf3gN1tycerigDCKIsPnt M27R3aZ5luZ2FowPL9JpTmE3M1b4YnWrvo0cDvREmwGtXQYHeIR5tDDR1Y/uz/cCW6zn c8qRpogZ3+BIRAPp5HUKrVY4nyaRLbUgBTsAsgjaJTCHKthh97SpScDagZH7D7ytF26H zxQpRjtab60S5stmsX/R+JYesrNIy4T0Q6FcIcXrj7dn/Nm//R3cH9SsJoBDAUERAx0H 1SAxesNOuu9RoX2ZeHbpz3SPEkJyK9ZjgakWWsEkFCi9IyfT5614/5tNOX0/piMHoZzE jq+A== 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:mail-followup-to :message-id:subject:cc:to:from:date; bh=mMIWpezxIAHGqTwiTFybxPTj3o/x7an3AxzQ9+Vlh7s=; b=OClu8YwVugtzEqqIvFuMgrgt1GQ5/WzV6U3eQziYrDqj+pxcuG4BDEmz0RENhYtPhD Q6MJEpbRlnGInaTpINxPEEcwN3xLI5W48O4intH+OG1CQ5DlYIpjgMU7N5voem12SKXP 5UFlBeB42WQlUr1mMbO1AN5Ak1gD6biN3uDaAnPXRCtkvFzAV1IpB/N8fhxGbf1SRo+R 8dQv4yVYoW5iBa2XBBmXITbyK7anfkv3X3Kir86i4g+ET7yr59amfQg8SDxU5Z0xWNtN pIwRvyjf9GkhV4IuU7RpUNRqTLaaMOE6MxSoyyo6oJnqJyEYeRKile1HlHmv04bT1qO2 9xUg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r7si12975986ple.281.2018.12.11.06.50.00; Tue, 11 Dec 2018 06:50:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726631AbeLKOtF (ORCPT + 99 others); Tue, 11 Dec 2018 09:49:05 -0500 Received: from esa2.microchip.iphmx.com ([68.232.149.84]:20928 "EHLO esa2.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726536AbeLKOtF (ORCPT ); Tue, 11 Dec 2018 09:49:05 -0500 X-IronPort-AV: E=Sophos;i="5.56,342,1539673200"; d="scan'208";a="24079869" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 11 Dec 2018 07:49:04 -0700 Received: from localhost (10.10.76.4) by chn-sv-exch05.mchp-main.com (10.10.76.106) with Microsoft SMTP Server id 14.3.352.0; Tue, 11 Dec 2018 07:49:03 -0700 Date: Tue, 11 Dec 2018 15:48:58 +0100 From: Ludovic Desroches To: Boris Brezillon CC: , , , , , , , , , , , Subject: Re: [PATCH] ARM: dts: at91: sama5d2 Xplained: add QSPI0 + SPI NOR memory nodes Message-ID: <20181211144858.dnbj5iozgk74wzdm@M43218.corp.atmel.com> Mail-Followup-To: Boris Brezillon , Tudor.Ambarus@microchip.com, Nicolas.Ferre@microchip.com, alexandre.belloni@bootlin.com, robh+dt@kernel.org, mark.rutland@arm.com, Cyrille.Pitchen@microchip.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, broonie@kernel.org, linux-spi@vger.kernel.org References: <20181210171511.21002-1-tudor.ambarus@microchip.com> <20181211154033.076506aa@bbrezillon> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20181211154033.076506aa@bbrezillon> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 11, 2018 at 03:40:33PM +0100, Boris Brezillon wrote: > On Mon, 10 Dec 2018 17:15:29 +0000 > wrote: > > > From: Cyrille Pitchen > > > > This patch configures the QSPI0 controller pin muxing and declares > > a jedec,spi-nor memory. > > > > sama5d2 Xplained RevB and RevC use the Macronix MX25L25673G flash > > memory which advertises a maximum frequency of 80MHz for Quad IO > > Fast Read. Set the spi-max-frequency to 80MHz knowing that actually > > the QSPI drver will set the SPI bus clock to 166MHz / 3 = 55.3MHz. > > > > Signed-off-by: Cyrille Pitchen > > [tudor.ambarus@microchip.com: > > - drop partitions, > > - add spi-rx/tx-bus-width > > - change spi-max-frequency to match the 80MHz limit advertised by > > MX25L25673G for Quad IO Fast Read, > > - reword commit message and subject.] > > Signed-off-by: Tudor Ambarus > > --- > > arch/arm/boot/dts/at91-sama5d2_xplained.dts | 31 +++++++++++++++++++++++++++++ > > 1 file changed, 31 insertions(+) > > > > diff --git a/arch/arm/boot/dts/at91-sama5d2_xplained.dts b/arch/arm/boot/dts/at91-sama5d2_xplained.dts > > index 518e2b095ccf..171bc82cfbbf 100644 > > --- a/arch/arm/boot/dts/at91-sama5d2_xplained.dts > > +++ b/arch/arm/boot/dts/at91-sama5d2_xplained.dts > > @@ -108,6 +108,21 @@ > > }; > > > > apb { > > + qspi0: spi@f0020000 { > > + pinctrl-names = "default"; > > + pinctrl-0 = <&pinctrl_qspi0_default>; > > + /* status = "okay"; */ /* conflict with sdmmc1 */ > > + > > + flash@0 { > > + compatible = "jedec,spi-nor"; > > + reg = <0>; > > + spi-max-frequency = <80000000>; > > + spi-tx-bus-width = <4>; > > + spi-rx-bus-width = <4>; > > + m25p,fast-read; > > + }; > > I'm a bit lost. What's the point of defining this if the QSPI > controller is not enabled? It's a way to avoid customer struggling with the device tree. If he doesn't care about sdmmc1, he can easily enable the qpsi controller and get access to the memory. Regards Ludovic