Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp727781imu; Tue, 11 Dec 2018 06:41:43 -0800 (PST) X-Google-Smtp-Source: AFSGD/XybCCngXNKjxi1he6/UjicYLGjGz04qvuroo1oTA0IMY8TGCQrs3yDl+Jz3VpkW7rE4ukm X-Received: by 2002:a63:a112:: with SMTP id b18mr14924873pgf.440.1544539302945; Tue, 11 Dec 2018 06:41:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544539302; cv=none; d=google.com; s=arc-20160816; b=ON5jsB982RI08yEDH/hDWVijzaYnvqilKtfZOLSUerCrlQOy1rOc4+76gnRPKQF3hI C+F8lUmw0Hh8xDWFL6nGzV9dBHxR7syo/iZlhmDEyTibHw5ikVz5NSUBf7cwjG5xW7g2 i55ppKg8tNlSnFlHsZQ75DxhmJVoXe7AalBNS73+e10Ik+MkB4x4a/XuqapqkSD5FqOQ iRWlN/yhvohNKJjjnoO/LcY5zJdOQKcIlZn8aaDd+hqi4vfByl5uwP6KCcLHH1Dyng3+ w3HKIRmmNr/aB/jEKHigGUGrlsQKlUsUmiN0YDHJvMbW8eLqu9EHuFBQHpVxLt2K1Ib5 wKIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=yOkpZV1FpzT3zlG+dPVQdEqNNX79MMLtVFaY4BRlVR8=; b=Kg2FcVsOlEpnQWnHHu9OwpRYqUKKU0zv0TzrNLpyWrhPRKGhq7DbAuRjOesTMtzktF Es80n3DT6jQVlTINHfs4K4P/Jsl+9mtv3Hg2oCXcBm0jrcXHpL8NLXuwwANHymzZuiIa K1nD7RK3a37pvB5zsbXB7yJewuF+XjgPOU2IfW6segZG6h5L3mfQg2hECktdZET2vumq +NI6zyfQDq+a2Vqzf5ihA1pLVQmmpuhjY1w/DfwBRPJc2z6UkXUVAZKRFnitjrleuW1t AJu63DCxWlrZgWvKLakLmbAjWOQluzKvyq/qbtSHJuNOsfm1QeUKgdT2Ga1s/IlWV7e9 Udeg== 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 z14si11640019pga.349.2018.12.11.06.41.28; Tue, 11 Dec 2018 06:41:42 -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 S1726628AbeLKOkg (ORCPT + 99 others); Tue, 11 Dec 2018 09:40:36 -0500 Received: from mail.bootlin.com ([62.4.15.54]:51443 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726585AbeLKOkg (ORCPT ); Tue, 11 Dec 2018 09:40:36 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 91F8020CDB; Tue, 11 Dec 2018 15:40:33 +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 bbrezillon (aaubervilliers-681-1-89-7.w90-88.abo.wanadoo.fr [90.88.30.7]) by mail.bootlin.com (Postfix) with ESMTPSA id 43018207B8; Tue, 11 Dec 2018 15:40:33 +0100 (CET) Date: Tue, 11 Dec 2018 15:40:33 +0100 From: Boris Brezillon To: Cc: , , , , , , , , , , , Subject: Re: [PATCH] ARM: dts: at91: sama5d2 Xplained: add QSPI0 + SPI NOR memory nodes Message-ID: <20181211154033.076506aa@bbrezillon> In-Reply-To: <20181210171511.21002-1-tudor.ambarus@microchip.com> References: <20181210171511.21002-1-tudor.ambarus@microchip.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?