Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp737371imu; Tue, 11 Dec 2018 06:51:34 -0800 (PST) X-Google-Smtp-Source: AFSGD/V1N4/9WuCBcSvDq313B/kv7B54psX2mFKnC0Rre9yr9xFJvYimAeA9xtf7Cyp9iHH04f7b X-Received: by 2002:a63:484c:: with SMTP id x12mr14682417pgk.375.1544539894244; Tue, 11 Dec 2018 06:51:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544539894; cv=none; d=google.com; s=arc-20160816; b=N0qypUtxMGlokBwmP1N2SQzM9VVtb2A390FXT/9UmDdOwL7r6aimCi/2pWVmw7wYmg RuRZcHT5J23uY+fBblXZtnlCQCzTZ3Vur2SLDbqFK6KCXP5F3B39hc2iy/LAXDqi9hcF l3TrZ7fUwztth5oxqMfXkqpnSaAQGCbQtxA9ncF+fg1VXPrdXAIJm704dRFAVOX1p8cF 8Mc3nA5WP/okORerUWFSPrFirHsKU1h8FpjKbDkQi0dj8e/5Vnrcpxj0hPvW4BC/xPCM c+uDp4EiEvgraHvcogxTWnA7HwDw/PWPiGXzLmVkm59otUqVdM5FRB2WOnNva/8yQXZL 2hwg== 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=78YHGYkixIklgsAhICBXLc6YgK/7fLMVKfqTVVXWmEA=; b=md/8zi6XiN0KiCJ/iK71jvE58VCGTawsIgmgB8qwvFETVNLfAPU7qDbOi2CBvTIHLB eIlOSq+QCX3VJYYhgRf2J1aSgXiuKMMCP6FEOo/S0N4Wv8sa//TGl8LZacmV7tGOjfba LISObzhuLWCBkN75D/jM9Mv8DLijq89zDcMQUmMgDX6j7TTnKR0KfBSVODLzh1VUGMOP AT2xOyQdNFRCjCsQNrCoyxMiQkLf2p+bPb6vnupBOcp1xDMq+fLAoLaIpUMpfBfcu/3r +AinniTRz2/qDnnKRsStwX4pUTC2t27AlkaIrJlWrP69pxmOfC+UUytKJ4OZIcegspwb rBgA== 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 w24si12123076plp.304.2018.12.11.06.51.18; Tue, 11 Dec 2018 06:51:34 -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 S1726762AbeLKOuL (ORCPT + 99 others); Tue, 11 Dec 2018 09:50:11 -0500 Received: from esa5.microchip.iphmx.com ([216.71.150.166]:10694 "EHLO esa5.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726231AbeLKOuL (ORCPT ); Tue, 11 Dec 2018 09:50:11 -0500 X-IronPort-AV: E=Sophos;i="5.56,342,1539673200"; d="scan'208";a="22136528" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 11 Dec 2018 07:50:10 -0700 Received: from localhost (10.10.76.4) by chn-sv-exch02.mchp-main.com (10.10.76.38) with Microsoft SMTP Server id 14.3.352.0; Tue, 11 Dec 2018 07:50:09 -0700 Date: Tue, 11 Dec 2018 15:50:03 +0100 From: Ludovic Desroches To: Alexandre Belloni CC: , , , , , , , , , , , Subject: Re: [PATCH] ARM: dts: at91: sama5d2 Xplained: add QSPI0 + SPI NOR memory nodes Message-ID: <20181211145003.7bwd5yknm5cegtdj@M43218.corp.atmel.com> Mail-Followup-To: Alexandre Belloni , Tudor.Ambarus@microchip.com, Nicolas.Ferre@microchip.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, boris.brezillon@bootlin.com, linux-mtd@lists.infradead.org, broonie@kernel.org, linux-spi@vger.kernel.org References: <20181210171511.21002-1-tudor.ambarus@microchip.com> <20181210213553.GK8952@piout.net> <22730de3-55f0-df21-312a-560a02f02dc7@microchip.com> <20181211143545.GR8952@piout.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20181211143545.GR8952@piout.net> 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:35:45PM +0100, Alexandre Belloni wrote: > On 11/12/2018 12:32:40+0000, Tudor.Ambarus@microchip.com wrote: > > Hi, Alexandre, > > > > On 12/10/2018 11:35 PM, Alexandre Belloni wrote: > > > Hi, > > > > > > On 10/12/2018 17:15:29+0000, Tudor.Ambarus@microchip.com 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 */ > > > > > > Isn't that conflicting then because I think the default is okay. > > qspi0 is disabled in sama5d2.dtsi. > > > > Ok, then maybe that comment is not necessary at all. Usually we do it the other way around: status = "disabled"; /* conflict with ... */ Regards Ludovic