From patchwork Wed Aug 24 22:04:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Dasu X-Patchwork-Id: 9298417 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 640F460459 for ; Wed, 24 Aug 2016 22:06:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 53AAC29139 for ; Wed, 24 Aug 2016 22:06:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 47B242913B; Wed, 24 Aug 2016 22:06:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CB13829139 for ; Wed, 24 Aug 2016 22:06:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757260AbcHXWGx (ORCPT ); Wed, 24 Aug 2016 18:06:53 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:35552 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757049AbcHXWGw (ORCPT ); Wed, 24 Aug 2016 18:06:52 -0400 Received: by mail-pf0-f195.google.com with SMTP id h186so1941194pfg.2 for ; Wed, 24 Aug 2016 15:06: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=iLCWhstygMXDDJuIuY0dqtiAjgv5y6NTR5BZ1TraN3o=; b=Nx3KR1Kqp2X1J147Dv4wX5zfXC11G8k1uoNihF440ECkk/Ezb0Nw+qawkte3EPwE+4 cuH8De02ViDoBHc4+f3ttRg0dziWvJ9qOXiveMIjhJZuHirnEG7WZH1bG9rMslqeohRR AYi0DM0HoXtag/dUs4n0QFf1JYNP71vF81w2BGHY3zrhZFniwH3Gwdux1/hMJMqdF/UV janQIoES6SPr/QbcnGjDIZZ+PZGxVy2vUF5HplklXYuK+CvlQK5/ieOfdBvsZPP5+dMa w9c+yHfgPDT5RzTXwhgcdtdBLohOHMebZSGfQaSq+9SZD6Zqabswuge2vdeZDcoCinNe FYaA== 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=iLCWhstygMXDDJuIuY0dqtiAjgv5y6NTR5BZ1TraN3o=; b=PP0pz+ldf8v3+DOJRCXp+rK1tXgDk50UMZaZG7vnXzFtiVb/sEzMPqlY2frLibGzhs upkKJBrVPRRIp/PpOM3V4BBnlGRbh4XO+s1LXSDeb0fgE5hY2aeN1u2AxcebGxRecwK3 4NMrSZBaaX6TPA1yz5Gz0ev7z8nxvlNA+7jh8z/SYBMwQ1kInR2gsKaeU03jd+9SMgmS CD9Q1EfBH6Gw4Ba+WwjoCGPB0l3qFYbNCQu2h5zhaj3vl5twFSBnCvUVuj27Qd7MocOi s+kw+IJPx4X3fLk6quBwqoq8c6gQd7rOj4S6J0NowkQF4rxHl7/2JN+nphAcVNjYw28F e6Eg== X-Gm-Message-State: AE9vXwPqG3dfLDaOafMHdHXS133Qt7iWajBLrR6L0xLMXl4nHwGAmipatpcT6RJaZUkgNw== X-Received: by 10.98.79.27 with SMTP id d27mr9982358pfb.127.1472076412281; Wed, 24 Aug 2016 15:06:52 -0700 (PDT) Received: from mail.broadcom.com ([216.31.219.19]) by smtp.gmail.com with ESMTPSA id wa9sm15966968pac.35.2016.08.24.15.06.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 Aug 2016 15:06:51 -0700 (PDT) From: Kamal Dasu To: broonie@kernel.org, linux-spi@vger.kernel.org, computersforpeace@gmail.com, linux-mtd@lists.infradead.org, vigneshr@ti.com, f.fainelli@gmail.com, yendapally.reddy@broadcom.com Cc: bcm-kernel-feedback-list@broadcom.com, jon.mason@broadcom.com, Kamal Dasu Subject: [PATCH v6, 6/8] arm: dts: Add bcm-nsp and bcm958625k support Date: Wed, 24 Aug 2016 18:04:27 -0400 Message-Id: <1472076269-4731-7-git-send-email-kdasu.kdev@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1472076269-4731-1-git-send-email-kdasu.kdev@gmail.com> References: <1472076269-4731-1-git-send-email-kdasu.kdev@gmail.com> Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Adding qspi node compatible with the new spi-bcm-qspi driver for the broadcom's northstar SoC. Signed-off-by: Kamal Dasu Signed-off-by: Yendapally Reddy Dhananjaya Reddy --- arch/arm/boot/dts/bcm-nsp.dtsi | 31 ++++++++++++++++++++++++++++++- arch/arm/boot/dts/bcm958625k.dts | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/bcm-nsp.dtsi b/arch/arm/boot/dts/bcm-nsp.dtsi index c3bf7d2..dd59019 100644 --- a/arch/arm/boot/dts/bcm-nsp.dtsi +++ b/arch/arm/boot/dts/bcm-nsp.dtsi @@ -160,7 +160,7 @@ axi { compatible = "simple-bus"; - ranges = <0x00000000 0x18000000 0x0011ba08>; + ranges = <0x00000000 0x18000000 0x0011c40a>; #address-cells = <1>; #size-cells = <1>; @@ -228,6 +228,35 @@ reg = <0x33000 0x14>; }; + qspi: qspi@27200 { + compatible = "brcm,spi-bcm-qspi", "brcm,spi-nsp-qspi"; + reg = <0x027200 0x184>, + <0x027000 0x124>, + <0x11c408 0x004>, + <0x0273a0 0x01c>; + reg-names = "mspi", "bspi", "intr_regs", + "intr_status_reg"; + interrupts = , + , + , + , + , + , + ; + interrupt-names = "spi_lr_fullness_reached", + "spi_lr_session_aborted", + "spi_lr_impatient", + "spi_lr_session_done", + "spi_lr_overhead", + "mspi_done", + "mspi_halted"; + clocks = <&iprocmed>; + clock-names = "iprocmed"; + num-cs = <2>; + #address-cells = <1>; + #size-cells = <0>; + }; + ccbtimer0: timer@34000 { compatible = "arm,sp804"; reg = <0x34000 0x1000>; diff --git a/arch/arm/boot/dts/bcm958625k.dts b/arch/arm/boot/dts/bcm958625k.dts index 2d84226..1e04923 100644 --- a/arch/arm/boot/dts/bcm958625k.dts +++ b/arch/arm/boot/dts/bcm958625k.dts @@ -126,3 +126,37 @@ groups = "nand_grp"; }; }; + +&qspi { + bspi-sel = <0>; + 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@a0000 { + label = "env"; + reg = <0x000a0000 0x00060000>; + }; + + partition@100000 { + label = "system"; + reg = <0x00100000 0x00600000>; + }; + + partition@700000 { + label = "rootfs"; + reg = <0x00700000 0x01900000>; + }; + }; +};