Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4155776imu; Mon, 10 Dec 2018 14:10:20 -0800 (PST) X-Google-Smtp-Source: AFSGD/VVxekj/78tUw/ZShU9HWT2mcS9v8ijkqtQ7nITKS1Lc9SBydCUonBVCaiiP54ULSNSybg/ X-Received: by 2002:a17:902:8a91:: with SMTP id p17mr13680769plo.316.1544479820390; Mon, 10 Dec 2018 14:10:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544479820; cv=none; d=google.com; s=arc-20160816; b=fgopl57jOw7OLPiRfV4DD0NhMsxM1mPgSC/id+aX+wur/J4YYWrsnh+wJgvw4wEoQb SPs6+cNStaZYAXjLaxLman+io9yaGlgXiPoRxOvDPVO5ImzjYdJBC68R1XzDngDKPsOS mGhPVB13Yv6NtueSGrGx3g5cgCMCsv5MaQK0fSxJKhPyM7OABBE+WOJkKiL6pO8WsFWz f9MzYKM5PBa06ov08yPEgjdkImKu3Av7rzV82Z662jUZ6vRo26L/PsGoRA7Jp9tETynD +kguPIJXNMhwHRQ3wn8GinBj5gaYq80j6/OhEB5t1waT154S8kPZmpEVtVVpQDXVr5hm d/Mw== 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=+iGvpJmKbkk21vQyB26KsGagyE4gPVbGuAmnOCZbHNY=; b=DqAoeTblAZA3ZADIenadyU4WI4WukOc8UdXWROs9Cj9oKGqqPgl3IOB1RhHs7/tKxM B9bYAGytfWjQnKd7suNPQ60vJ34UFENoQG4gtSPnQz2QF4M8YeI6qNCPxxLdFE4Y+V2l k/NO5xD0k4pa54ju6BIr0P8xstr8k+Ul/uGHd11Phtm0yv3ii286k2v+WS7GoOtcH6Pf 7lXxw+fgm6OrP72dQ/Uy2j10vL6WeUBOynZWNQpt5/jA5dQ7kv9q3oQK1BrWvcYhpbK+ gg//6fBqtFDycuibEkMJ38v7Iu+irhsKFHtVU5QNK0u1pk4Ze/5n0PkM2AHSbDTUqGd2 97bw== 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 v6si11846745pfv.181.2018.12.10.14.10.05; Mon, 10 Dec 2018 14:10:20 -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 S1729994AbeLJVf5 (ORCPT + 99 others); Mon, 10 Dec 2018 16:35:57 -0500 Received: from mail.bootlin.com ([62.4.15.54]:54747 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727529AbeLJVf4 (ORCPT ); Mon, 10 Dec 2018 16:35:56 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 0B9F520733; Mon, 10 Dec 2018 22:35:54 +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 (unknown [88.191.26.124]) by mail.bootlin.com (Postfix) with ESMTPSA id AB6EC20510; Mon, 10 Dec 2018 22:35:53 +0100 (CET) Date: Mon, 10 Dec 2018 22:35:53 +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: <20181210213553.GK8952@piout.net> References: <20181210171511.21002-1-tudor.ambarus@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181210171511.21002-1-tudor.ambarus@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 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. > + > + 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; > + }; > + }; > + > spi0: spi@f8000000 { > pinctrl-names = "default"; > pinctrl-0 = <&pinctrl_spi0_default>; > @@ -485,6 +500,22 @@ > bias-disable; > }; > > + pinctrl_qspi0_default: qspi0_default { > + sck_cs { > + pinmux = , > + ; > + bias-disable; > + }; > + > + data { > + pinmux = , > + , > + , > + ; > + bias-pull-up; > + }; > + }; > + > pinctrl_sdmmc0_default: sdmmc0_default { > cmd_data { > pinmux = , > -- > 2.9.4 > -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com