Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp862695imm; Wed, 20 Jun 2018 07:50:16 -0700 (PDT) X-Google-Smtp-Source: ADUXVKINI3s8rmh11/L5L1Xw3wwdtNZawQNOJpR6WiN/kn1U7drpgqOSCR+9sW+wibRdknxui7rz X-Received: by 2002:a62:e03:: with SMTP id w3-v6mr23166978pfi.173.1529506216073; Wed, 20 Jun 2018 07:50:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529506216; cv=none; d=google.com; s=arc-20160816; b=BKWB1ZwNBsbkizgbrqPbuxV/E9j6D8ogNvgRXiurk3HbZcPtPbbD+mdvXNNEKWfeOH oT2UowqUB9+s7SyRtobAWvP1DkphWyoo1v4zb+GtWV+U2a86zA8pZd0+CEMLFHHS7uI0 yZTYY/5tTHQrH1X+qRcesUTLj/NwB0ammM/pvNX6NgV1CEo7ZhXsZ8PTLSPhBd2SlJp8 r118GmfGn/9G32q6MYETo06kiB2DakKxL2USYLkCzTnSgKKLIdXVdWIeh9R/RtfIdrCw eQCFzaSeUYUyLUkLRE6CuPldGfYw2C3y3M8cCydaqfmTgSciz8qmOjRTHKXbrAd4Jm/7 5/Bg== 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 :arc-authentication-results; bh=pA+JbvKk4GxUzbrsa3QTf21XrRQ1kvgH0TQlfTpd7vQ=; b=c/EddjJU0ny9auyKpdbnz9KgKy9r2UCDQwvDZw6FXrCrdybwaWBsfj2BJcz3zQ0Hl3 4qQZOmsX97zXqpVQpzxW5wYQuYXWt2BIt0+Jm+VSM7JwYKkVv0zj4P3acm+kU5R7Kjwj qCSLDYDqIKm6BLW4Q4tgzM9MjKqgRwiPPrAoKqCayiuf+Tlsjl0IK0dcif8Grdg0n1Ib 9/0beXeJrfsAq1lA5s1nzGpP0+IvrvH8IWWz3Vf4kPjFM4TKSJWQ/1lpdv3xX3Z3GK8e bDKqSFUlfkLZz3w86Er7iDuLH/xaHT/5+wXiKCjMA/E7NibTsP7AIvxPHIxnDB6Ce/bj zvCg== 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 y8-v6si2325939pfe.241.2018.06.20.07.50.01; Wed, 20 Jun 2018 07:50:16 -0700 (PDT) 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 S1754171AbeFTOrz (ORCPT + 99 others); Wed, 20 Jun 2018 10:47:55 -0400 Received: from mail.bootlin.com ([62.4.15.54]:55671 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753619AbeFTOrx (ORCPT ); Wed, 20 Jun 2018 10:47:53 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 8287620799; Wed, 20 Jun 2018 16:47:51 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (AAubervilliers-681-1-50-153.w90-88.abo.wanadoo.fr [90.88.168.153]) by mail.bootlin.com (Postfix) with ESMTPSA id 06C20206D8; Wed, 20 Jun 2018 16:47:41 +0200 (CEST) Date: Wed, 20 Jun 2018 16:47:41 +0200 From: Boris Brezillon To: Piotr Bugalski Cc: Mark Brown , linux-spi@vger.kernel.org, David Woodhouse , Brian Norris , Marek Vasut , Richard Weinberger , linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , Mark Rutland , Nicolas Ferre , Alexandre Belloni , Cyrille Pitchen , Tudor Ambarus , Piotr Bugalski Subject: Re: [RFC PATCH 2/2] dt-bindings: spi: QuadSPI driver for Atmel SAMA5D2 documentation Message-ID: <20180620164741.2a8da424@bbrezillon> In-Reply-To: <20180618162124.21749-3-bugalski.piotr@gmail.com> References: <20180618162124.21749-1-bugalski.piotr@gmail.com> <20180618162124.21749-3-bugalski.piotr@gmail.com> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; 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 Hi Piotr, On Mon, 18 Jun 2018 18:21:24 +0200 Piotr Bugalski wrote: > Documentation for DT-binding change. > > Suggested-by: Boris Brezillon I'm pretty sure I didn't make a single suggestion about the DT bindings you use here ;-). > Signed-off-by: Piotr Bugalski > > --- > .../devicetree/bindings/spi/spi_atmel-qspi.txt | 41 ++++++++++++++++++++++ > 1 file changed, 41 insertions(+) > create mode 100644 Documentation/devicetree/bindings/spi/spi_atmel-qspi.txt I'll comment on this aspect in more details when replying to the cover letter, but I think you should re-use the bindings defined in Documentation/devicetree/bindings/mtd/atmel-quadspi.txt (IOW, move the existing file to the Documentation/devicetree/bindings/spi directory). It's the same HW block, and just because you develop a new driver to replace the old one doesn't mean you should have 2 different bindings in parallel. > > diff --git a/Documentation/devicetree/bindings/spi/spi_atmel-qspi.txt b/Documentation/devicetree/bindings/spi/spi_atmel-qspi.txt > new file mode 100644 > index 000000000000..d52b534c9c2b > --- /dev/null > +++ b/Documentation/devicetree/bindings/spi/spi_atmel-qspi.txt > @@ -0,0 +1,41 @@ > +* Atmel Quad Serial Peripheral Interface (QSPI) > + > +Required properties: > +- compatible: Should be "atmel,sama5d2-spi-qspi". > +- reg: Should contain the locations and lengths of the base registers > + and the mapped memory. > +- reg-names: Should contain the resource reg names: > + - qspi_base: configuration register address space > + - qspi_mmap: memory mapped address space > +- interrupts: Should contain the interrupt for the device. > +- clocks: The phandle of the clock needed by the QSPI controller. > +- #address-cells: Should be <1>. > +- #size-cells: Should be <0>. > + > +Example: > + > +qspi1: spi@f0024000 { > + compatible = "atmel,sama5d2-spi-qspi"; > + reg = <0xf0024000 0x100>, <0xd8000000 0x08000000>; > + reg-names = "qspi_base", "qspi_mmap"; > + interrupts = <53 IRQ_TYPE_LEVEL_HIGH 7>; > + clocks = <&qspi1_clk>; > + #address-cells = <1>; > + #size-cells = <0>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_qspi1_default>; > + status = "okay"; > + > + flash@0 { > + #address-cells = <1>; > + #size-cells = <1>; > + compatible = "winbond,w25m02gv", "spi-nand"; "winbond,w25m02gv" is undocumented and unnecessary since SPI NANDs are automatically detected. Also, maybe you should declare a SPI NOR in the example since SPI NAND support has not yet been merged. > + reg = <0>; > + spi-max-frequency = <83000000>; > + spi-rx-bus-width = <4>; > + spi-tx-bus-width = <4>; > + > + ... > + }; > +}; > + Regards, Boris