Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp725211imu; Tue, 11 Dec 2018 06:39:03 -0800 (PST) X-Google-Smtp-Source: AFSGD/XbZnnke1rqWO2wPR0ttRvOjjXjVqqRedXDhh9S4l55kijOyzc9VQ2c9xYZnSbGjJ45LyLh X-Received: by 2002:a63:9041:: with SMTP id a62mr14460116pge.163.1544539143420; Tue, 11 Dec 2018 06:39:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544539143; cv=none; d=google.com; s=arc-20160816; b=zCqnzWvonqIhtYlsjmuRZMGJQGOBagYHSEzyJHKhPS0DXctYJoZSLRUUdKy3Z1rI/B FhtQA3IW6F4IE1m+pyZy3LlFvLGFYozvtG3ZGvHLB0kF9fkINM1lzNIN379pzSkbY6LW 8lfePADQgo1rTLOCnictLrdQz/oTqF7rNjZe7a01GOFPMx/svSBxusnDH3lJHeCRIcJC KarErmHO7MreT2UWcvg/4mQ9I1HcUea7EeNm4XO6rhIP+6qreqSZxzlPRgR53FfP4MBc H4o9l1yN6CmUNlot0oo7flCDY0KZKvVBYcnzpcOF0hxaST17VATDGBzc1BrRqu3MHZ8k 0c6Q== 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=NI/PiMoKgCegV/VPcvn+cPsXFsiWaTz8/9BSlgZfV00=; b=w1u40oNgg3RlJ0a6XWz+pgmciPcTGbl51PMn7ncbSOar0kjvy0CfP24qSOYDtyGUT/ M5+OVftOMkavZ+spBe+5Tepe5jUeHLb/Ku27IOjdP+YJQJxyZ11rbve1Oi7A5/7IoXMA hPcmYh03MyOjncMd3kYosq3uIODEUecDVhdlVO1p8NbAKIEL9ZxKj2WDARzd68E/WSOt Sowx7J15bSpbxCrRMamM5meQFfPCBMLdnKrtesrgfz0Zb1E36dvgqiVjcoXtEeW39vwJ rKt5Mzci/mQwZrmgcQh2bI4Idn2xLxoMqYhVDnHv+Q77Uf6aYvXMgIvCy1Q3Q1fZ9UdF Kigw== 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 m188si13631209pfb.266.2018.12.11.06.38.47; Tue, 11 Dec 2018 06:39:03 -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 S1726590AbeLKOft (ORCPT + 99 others); Tue, 11 Dec 2018 09:35:49 -0500 Received: from mail.bootlin.com ([62.4.15.54]:51231 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726176AbeLKOft (ORCPT ); Tue, 11 Dec 2018 09:35:49 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id CF281207B0; Tue, 11 Dec 2018 15:35:46 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from localhost (242.171.71.37.rev.sfr.net [37.71.171.242]) by mail.bootlin.com (Postfix) with ESMTPSA id 9EA0E206D8; Tue, 11 Dec 2018 15:35:46 +0100 (CET) Date: Tue, 11 Dec 2018 15:35:45 +0100 From: Alexandre Belloni To: Tudor.Ambarus@microchip.com Cc: Nicolas.Ferre@microchip.com, Ludovic.Desroches@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 Subject: Re: [PATCH] ARM: dts: at91: sama5d2 Xplained: add QSPI0 + SPI NOR memory nodes Message-ID: <20181211143545.GR8952@piout.net> References: <20181210171511.21002-1-tudor.ambarus@microchip.com> <20181210213553.GK8952@piout.net> <22730de3-55f0-df21-312a-560a02f02dc7@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <22730de3-55f0-df21-312a-560a02f02dc7@microchip.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com