From patchwork Fri Jul 29 22:13:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Dasu X-Patchwork-Id: 654216 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3s1NSx2c8Dz9t1W for ; Sat, 30 Jul 2016 08:20:01 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=TeRxDh35; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bTG7E-0000d6-Ee; Fri, 29 Jul 2016 22:18:48 +0000 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bTG2l-0006e0-LZ for linux-mtd@lists.infradead.org; Fri, 29 Jul 2016 22:14:12 +0000 Received: by mail-pf0-x241.google.com with SMTP id i6so6066811pfe.0 for ; Fri, 29 Jul 2016 15:13:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8GdquZW9XOorJhDbAofPKM8qUkhbjZSTOmU9MczZYrs=; b=TeRxDh35V54StrauILya1RppgXMIBF7yvmgPA8IyCZhDIsqxrV02Un+UtZFEbE2iOh TfUi9hdvLqJBN2erCHd2wSO9rRssDoe2R8kl+JcFjRaq5bGRfaBHqga1Sk0LKbCwI9Lw xnmm8ZEvUwrDc1WaN27v4V4s0mXJRsfTAUt3qK88da5TAYjYnL7mz15dVGHpYK9p2k+b b1fHAgMAMhN7ITHrKiJAROTAVIUYNFXKPn+DeXF9Meu5065FqYui+neYlnzFOnlPtD64 X12/D0XNEFa2fHPcN2o+ZuqpU1XowCtUDZXNNIn8i2inCP2OGkwXdseEcMPV4Zjxe3Qj JoiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=8GdquZW9XOorJhDbAofPKM8qUkhbjZSTOmU9MczZYrs=; b=FBDuQZ8kC8Mr8dyVRDk/UwJfBg3Lfj0l0bcAZ9+GcSwnLEHUyz3FcPAXn/XKo6+NUS wqSzYUDPWGiLm34Aad39v4C+g/4SDGktRB1p2B+eQkZWtGF08xCc2roH5N6plKoCsVel ajEDKiOvB3zd9wKuJ7nPviHGWP8ecpToxwF/ETUC8FqCFu+zQe9W4TMkP5dhB/4HkxPP zkmdpesWL8fxs99fzi/SSSdvNX1zExhTMNLaStuABVN6D4fhpyH6wJ5wExGu2fJBkdyB jiEprbOqt+YKowxD+s17fMBn3TDQdgJnFApfvZSfNdo5HY2L3KzW+0/61vI5klnhnwFr A/ig== X-Gm-Message-State: AEkoousn+TeuC3G/UnSdmeyvIAN7yaBUxqXwB0eI0u/3IOF9nBhoVx2gX2CxsnyxZKPDog== X-Received: by 10.98.66.209 with SMTP id h78mr73078703pfd.11.1469830432495; Fri, 29 Jul 2016 15:13:52 -0700 (PDT) Received: from mail.broadcom.com ([216.31.219.19]) by smtp.gmail.com with ESMTPSA id zk7sm27207051pac.41.2016.07.29.15.13.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 29 Jul 2016 15:13:51 -0700 (PDT) From: Kamal Dasu To: broonie@kernel.org, linux-spi@vger.kernel.org, linux-mtd@lists.infradead.org, vigneshr@ti.com, f.fainelli@gmail.com Subject: [PATCH v5 5/8] Documentation: dt: spi: Add Broadcom NSP, NS2 SoC bindings Date: Fri, 29 Jul 2016 18:13:10 -0400 Message-Id: <1469830393-13295-6-git-send-email-kdasu.kdev@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1469830393-13295-1-git-send-email-kdasu.kdev@gmail.com> References: <1469830393-13295-1-git-send-email-kdasu.kdev@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160729_151411_771422_24643C4A X-CRM114-Status: UNSURE ( 9.97 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:400e:c00:0:0:0:241 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (kdasu.kdev[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jchandra@broadcom.com, Kamal Dasu , jon.mason@broadcom.com, bcm-kernel-feedback-list@broadcom.com, vikram.prakash@broadcom.com, andy.fung@broadcom.com MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Modify device tree bindings documentation to include NS*, Cygnus and iProc SoCs supported by the new spi-bcm-qspi, spi-nsp-qspi driver. Signed-off-by: Kamal Dasu --- .../devicetree/bindings/spi/brcm,spi-bcm-qspi.txt | 96 +++++++++++++++++++++- 1 file changed, 93 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/spi/brcm,spi-bcm-qspi.txt b/Documentation/devicetree/bindings/spi/brcm,spi-bcm-qspi.txt index bbae763..bc01b73 100644 --- a/Documentation/devicetree/bindings/spi/brcm,spi-bcm-qspi.txt +++ b/Documentation/devicetree/bindings/spi/brcm,spi-bcm-qspi.txt @@ -5,8 +5,8 @@ BRCMSTB (BCM7XXX), Cygnus, NSP and NS2. The Broadcom Master SPI hw IP consits of : MSPI : SPI master controller can read and write to a SPI slave device BSPI : Broadcom SPI in combination with the MSPI hw IP provides acceleration - for flash reads and be configured to do single, double, quad lane - io with 3-byte and 4-byte addressing support. + for flash reads and be configured to do single, double, quad lane + io with 3-byte and 4-byte addressing support. Supported Broadcom SoCs have one instance of MSPI+BSPI controller IP. MSPI master can be used wihout BSPI. BRCMSTB SoCs have an additional instance @@ -26,6 +26,8 @@ Required properties: "brcm,spi-bcm-qspi", "brcm,spi-brcmstb-qspi" : MSPI+BSPI on BRCMSTB SoCs "brcm,spi-bcm-qspi", "brcm,spi-brcmstb-mspi" : Second Instance of MSPI BRCMSTB SoCs + "brcm,spi-bcm-qspi", "brcm,spi-nsp-qspi" : Uses MSPI+BSPI on Cygnus, NSP, + NS2 SoCs - reg: Define the bases and ranges of the associated I/O address spaces. @@ -35,8 +37,10 @@ Required properties: First name does not matter, but must be reserved for the MSPI controller register range as mentioned in 'reg' above, and will typically contain - "bspi_regs": BSPI register range, not required with compatible - "spi-brcmstb-mspi" + "spi-brcmstb-mspi" - "mspi_regs": MSPI register range is required for compatible strings + - "intr_regs", "intr_status_reg" : Interrupt and status register for + NSP, NS2, Cygnus SoC - interrupts The interrupts used by the MSPI and/or BSPI controller. @@ -143,3 +147,89 @@ BRCMSTB SoC Example: interrupt-names = "mspi_done"; }; +iProc SoC Example: + + qspi: spi@18027200 { + compatible = "brcm,spi-bcm-qspi", "brcm,spi-nsp-qspi"; + reg = <0x18027200 0x184>, + <0x18027000 0x124>, + <0x1811c408 0x004>, + <0x180273a0 0x01c>; + reg-names = "mspi_regs", "bspi_regs", "intr_regs", "intr_status_reg"; + interrupts = , + , + , + , + , + , + ; + interrupt-names = + "spi_lr_fullness_reached", + "spi_lr_session_aborted", + "spi_lr_impatient", + "spi_lr_session_done", + "mspi_done", + "mspi_halted"; + clocks = <&iprocmed>; + clock-names = "iprocmed"; + clock-frequency = <12500000>; + num-cs = <2>; + #address-cells = <1>; + #size-cells = <0>; + }; + + + NS2 SoC Example: + + qspi: spi@66470200 { + compatible = "brcm,spi-bcm-qspi", "brcm,spi-nsp-qspi"; + reg = <0x66470200 0x184>, + <0x66470000 0x124>, + <0x67017408 0x004>, + <0x664703a0 0x01c>; + reg-names = "mspi", "bspi", "intr_regs", + "intr_status_reg"; + interrupts = ; + interrupt-names = "spi_l1_intr"; + clocks = <&iprocmed>; + clock-names = "iprocmed"; + clock-frequency = <12500000>; + num-cs = <2>; + #address-cells = <1>; + #size-cells = <0>; + }; + + + m25p80 node for NSP, NS2 + + &qspi { + flash: m25p80@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "m25p80"; + reg = <0x0>; + spi-max-frequency = <12500000>; + m25p,fast-read; + spi-cpol; + spi-cpha; + + partition@0 { + label = "boot"; + reg = <0x00000000 0x000a0000>; + }; + + partition@1 { + label = "env"; + reg = <0x000a0000 0x00060000>; + }; + + partition@2 { + label = "system"; + reg = <0x00100000 0x00600000>; + }; + + partition@3 { + label = "rootfs"; + reg = <0x00700000 0x01900000>; + }; + };