Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4588077imm; Wed, 30 May 2018 08:17:16 -0700 (PDT) X-Google-Smtp-Source: ADUXVKImH2pZtUUbvMBDL0oH+L6Ec5cvdCawP75Dl+u2w4O2s9mtobvJT5c+ZvXLzvXgpCnCPmgT X-Received: by 2002:a63:18c:: with SMTP id 134-v6mr2558522pgb.138.1527693435962; Wed, 30 May 2018 08:17:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527693435; cv=none; d=google.com; s=arc-20160816; b=OCy9Fwjc3RVPxxWMIhAgPZfymOPtfc3nq8xsw59pjFoH4cbuarD4cboNKt3LALGYuS eghRn4nbqhqq5nsrksb7kuPuIl2XTpj/IebvYmdajYC4jneONE+Tbdf19LCuEIXZ4uHo OrHZeDy3fUW3BZ4af4alRKQ04K2jzLCpJKGDSb0t7Q9TmIOUqXI/Zy+PcnIM5N3vL+i5 qGOEQvcoHpkzCLFlLskxIj3Yz+6sywdQMem+3qq5w1w07DNnkteZPwqwnsSD3VgFARtP xRAlVtPrzFS8DkwNXg7fEZ+7dNXbWcktFfWXIDliPO9HNVmxTu4LWN1bb/F2niutPzXW GstA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=2XukjxVn2DhR7zIzuU0bGBNmAHU725H8GUHYSN/75KQ=; b=hfTcKgb5oAQub2OsqXhN/L43GGy3lStK394QdvMcThyYBVDh6B73bkpxj0E4ms+WrS cnUtl43C7BIOS1lFni79gFYkH93g0j+GvO4a1rmVC1Aejwi9TC5k2XyIYaeKdmrYV8hn kCTvXRA3C7nJoO9HuwojTW+IHeafn1pRXuvZg1B2dxToTQRkgMiv0VpaM3JTvoR1VL5k tDV5yQP44qSbTaAU4p9TcJAJl94HcT5CRaFxn5Scnn8CggSj7UiGLrriui1hmDTQTaWK RDAI3YwZdQKuzaFkuRO6x5aa2OsvXUS2WAgrKKVrkQUhTq7Na4uwTDcVI2Sk7y3B+7Nf eR4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@as-electronics.de header.s=strato-dkim-0002 header.b=bewchEnw; 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 x4-v6si33364042pfm.110.2018.05.30.08.17.01; Wed, 30 May 2018 08:17:15 -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; dkim=fail header.i=@as-electronics.de header.s=strato-dkim-0002 header.b=bewchEnw; 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 S1753772AbeE3PPb (ORCPT + 99 others); Wed, 30 May 2018 11:15:31 -0400 Received: from mo4-p05-ob.smtp.rzone.de ([85.215.255.133]:18969 "EHLO mo4-p05-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750990AbeE3PPY (ORCPT ); Wed, 30 May 2018 11:15:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1527693322; s=strato-dkim-0002; d=as-electronics.de; h=In-Reply-To:Date:Message-ID:From:References:Cc:To:Subject: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=2XukjxVn2DhR7zIzuU0bGBNmAHU725H8GUHYSN/75KQ=; b=bewchEnwSxR8J/21dOGtGVmXluDbCU8Yn3bak4R9G+6L9BC1ww4CzzY3YkIaHk/9On L68SeuxhXF31wBleO5G2o+aJ/3vYvmHlFFIDnrkUY2WlqkeQ0eq2n992iWq0WxJd3RtC ktgoWyqBNDlsNJAcJjxiaVaUzPnwbmDhp6C1WQdn41A4owjenO/wX+/n0mjILw384Rco tcZ1/N2J92C3k7LKvLhjfhcIf1sU1DpVRv3f0h1+Ljab7D+l7mjS9fzuHCTLu5zMZkdz EmZy5gh5FI2AwDy+ozqckSTHw5VrpEOkdtpm6NknkLv7j+9uk3U2mIE3kgvdPMMsJA9R d/yw== X-RZG-AUTH: ":LX8JdEmkW/4tAFwMkcNJIloh1hrA5u3owhPk7bdT5Fx2zAOrX/r2ZbrrxoyOl37jyAS87PDYJ9azvnITHNpDem7ChLghAqCJU8ykdftsfK97" X-RZG-CLASS-ID: mo05 Received: from [IPv6:2001:16b8:248b:c300:d425:36c1:5a2b:334e] by smtp.strato.de (RZmta 43.9 AUTH) with ESMTPSA id g0147au4UFEW0Pu (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Wed, 30 May 2018 17:14:32 +0200 (CEST) Subject: Re: [PATCH 04/11] dt-bindings: spi: Move and adjust the bindings for the fsl-qspi driver To: Boris Brezillon Cc: linux-mtd@lists.infradead.org, linux-spi@vger.kernel.org, dwmw2@infradead.org, computersforpeace@gmail.com, marek.vasut@gmail.com, richard@nod.at, miquel.raynal@bootlin.com, broonie@kernel.org, david.wolfe@nxp.com, fabio.estevam@nxp.com, prabhakar.kushwaha@nxp.com, yogeshnarayan.gaur@nxp.com, han.xu@nxp.com, Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <1527686082-15142-1-git-send-email-frieder.schrempf@exceet.de> <1527686082-15142-5-git-send-email-frieder.schrempf@exceet.de> <20180530170648.02c6fc41@bbrezillon> From: Frieder Schrempf Message-ID: Date: Wed, 30 May 2018 17:14:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180530170648.02c6fc41@bbrezillon> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Boris, On 30.05.2018 17:06, Boris Brezillon wrote: > On Wed, 30 May 2018 15:14:33 +0200 > Frieder Schrempf wrote: > >> Move the documentation of the old SPI NOR driver to the place of the new >> SPI memory interface based driver and adjust the content to reflect the >> new drivers settings. > > Maybe it's better to do that in 2 steps so that people can easily > identify what has changed in the bindings. Ok, I can split this. Thanks, Frieder > >> >> Signed-off-by: Frieder Schrempf >> --- >> .../devicetree/bindings/mtd/fsl-quadspi.txt | 65 ------------------ >> .../devicetree/bindings/spi/spi-fsl-qspi.txt | 69 ++++++++++++++++++++ >> 2 files changed, 69 insertions(+), 65 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/mtd/fsl-quadspi.txt b/Documentation/devicetree/bindings/mtd/fsl-quadspi.txt >> deleted file mode 100644 >> index 483e9cf..0000000 >> --- a/Documentation/devicetree/bindings/mtd/fsl-quadspi.txt >> +++ /dev/null >> @@ -1,65 +0,0 @@ >> -* Freescale Quad Serial Peripheral Interface(QuadSPI) >> - >> -Required properties: >> - - compatible : Should be "fsl,vf610-qspi", "fsl,imx6sx-qspi", >> - "fsl,imx7d-qspi", "fsl,imx6ul-qspi", >> - "fsl,ls1021a-qspi" >> - or >> - "fsl,ls2080a-qspi" followed by "fsl,ls1021a-qspi", >> - "fsl,ls1043a-qspi" followed by "fsl,ls1021a-qspi" >> - - reg : the first contains the register location and length, >> - the second contains the memory mapping address and length >> - - reg-names: Should contain the reg names "QuadSPI" and "QuadSPI-memory" >> - - interrupts : Should contain the interrupt for the device >> - - clocks : The clocks needed by the QuadSPI controller >> - - clock-names : Should contain the name of the clocks: "qspi_en" and "qspi". >> - >> -Optional properties: >> - - fsl,qspi-has-second-chip: The controller has two buses, bus A and bus B. >> - Each bus can be connected with two NOR flashes. >> - Most of the time, each bus only has one NOR flash >> - connected, this is the default case. >> - But if there are two NOR flashes connected to the >> - bus, you should enable this property. >> - (Please check the board's schematic.) >> - - big-endian : That means the IP register is big endian >> - >> -Example: >> - >> -qspi0: quadspi@40044000 { >> - compatible = "fsl,vf610-qspi"; >> - reg = <0x40044000 0x1000>, <0x20000000 0x10000000>; >> - reg-names = "QuadSPI", "QuadSPI-memory"; >> - interrupts = <0 24 IRQ_TYPE_LEVEL_HIGH>; >> - clocks = <&clks VF610_CLK_QSPI0_EN>, >> - <&clks VF610_CLK_QSPI0>; >> - clock-names = "qspi_en", "qspi"; >> - >> - flash0: s25fl128s@0 { >> - .... >> - }; >> -}; >> - >> -Example showing the usage of two SPI NOR devices: >> - >> -&qspi2 { >> - pinctrl-names = "default"; >> - pinctrl-0 = <&pinctrl_qspi2>; >> - status = "okay"; >> - >> - flash0: n25q256a@0 { >> - #address-cells = <1>; >> - #size-cells = <1>; >> - compatible = "micron,n25q256a", "jedec,spi-nor"; >> - spi-max-frequency = <29000000>; >> - reg = <0>; >> - }; >> - >> - flash1: n25q256a@1 { >> - #address-cells = <1>; >> - #size-cells = <1>; >> - compatible = "micron,n25q256a", "jedec,spi-nor"; >> - spi-max-frequency = <29000000>; >> - reg = <1>; >> - }; >> -}; >> diff --git a/Documentation/devicetree/bindings/spi/spi-fsl-qspi.txt b/Documentation/devicetree/bindings/spi/spi-fsl-qspi.txt >> new file mode 100644 >> index 0000000..0ee9cd8 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/spi/spi-fsl-qspi.txt >> @@ -0,0 +1,69 @@ >> +* Freescale Quad Serial Peripheral Interface(QuadSPI) >> + >> +Required properties: >> + - compatible : Should be "fsl,vf610-qspi", "fsl,imx6sx-qspi", >> + "fsl,imx7d-qspi", "fsl,imx6ul-qspi", >> + "fsl,ls1021a-qspi", "fsl,ls2080a-qspi" >> + or >> + "fsl,ls1043a-qspi" followed by "fsl,ls1021a-qspi" >> + - reg : the first contains the register location and length, >> + the second contains the memory mapping address and length >> + - reg-names: Should contain the reg names "QuadSPI" and "QuadSPI-memory" >> + - interrupts : Should contain the interrupt for the device >> + - clocks : The clocks needed by the QuadSPI controller >> + - clock-names : Should contain the name of the clocks: "qspi_en" and "qspi". >> + >> +Optional properties: >> + - big-endian : That means the IP registers format is big endian >> + >> +Required SPI slave node properties: >> + - reg: There are two buses (A and B) with two chip selects each. >> + This encodes to which bus and CS the flash is connected: >> + <0>: Bus A, CS 0 >> + <1>: Bus A, CS 1 >> + <2>: Bus B, CS 0 >> + <3>: Bus B, CS 1 >> + >> +Example: >> + >> +qspi0: quadspi@40044000 { >> + compatible = "fsl,vf610-qspi"; >> + reg = <0x40044000 0x1000>, <0x20000000 0x10000000>; >> + reg-names = "QuadSPI", "QuadSPI-memory"; >> + interrupts = <0 24 IRQ_TYPE_LEVEL_HIGH>; >> + clocks = <&clks VF610_CLK_QSPI0_EN>, >> + <&clks VF610_CLK_QSPI0>; >> + clock-names = "qspi_en", "qspi"; >> + >> + flash0: s25fl128s@0 { >> + .... >> + }; >> +}; >> + >> +Example showing the usage of two SPI NOR devices on bus A: >> + >> +&qspi2 { >> + pinctrl-names = "default"; >> + pinctrl-0 = <&pinctrl_qspi2>; >> + status = "okay"; >> + >> + flash0: n25q256a@0 { >> + #address-cells = <1>; >> + #size-cells = <1>; >> + compatible = "micron,n25q256a", "jedec,spi-nor"; >> + spi-max-frequency = <29000000>; >> + spi-rx-bus-width = <4>; >> + spi-tx-bus-width = <4>; >> + reg = <0>; >> + }; >> + >> + flash1: n25q256a@1 { >> + #address-cells = <1>; >> + #size-cells = <1>; >> + compatible = "micron,n25q256a", "jedec,spi-nor"; >> + spi-max-frequency = <29000000>; >> + spi-rx-bus-width = <4>; >> + spi-tx-bus-width = <4>; >> + reg = <1>; >> + }; >> +}; >