From patchwork Fri Jun 10 20:06:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Dasu X-Patchwork-Id: 9170415 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 3BD4B607D9 for ; Fri, 10 Jun 2016 20:07:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2ED49282F9 for ; Fri, 10 Jun 2016 20:07:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 23BB82833F; Fri, 10 Jun 2016 20:07:01 +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 B5956282F9 for ; Fri, 10 Jun 2016 20:07:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752592AbcFJUGv (ORCPT ); Fri, 10 Jun 2016 16:06:51 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:33737 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752589AbcFJUGu (ORCPT ); Fri, 10 Jun 2016 16:06:50 -0400 Received: by mail-pf0-f195.google.com with SMTP id c74so5654793pfb.0 for ; Fri, 10 Jun 2016 13:06:49 -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=j2UxuowfVVekanc81OGnny8YU51lqJTTG7duyyZOPZI=; b=RMz/S7a/8VnQ6LPtddr+hjNatwbwj++VuW7AaBb23hG4uznH350KNYY3spP9JEWcXM GEDtMGjle5CFt6bRRgraRVc/nilqIyAhseN/RSvxfU99bxn+NbjgUgUWWqUJUmFxueyI VDP8MgkbgH/jTyf5/49mQgUkvO6G0hWpK2dUcUlEswd9clR6i2cDSfHTdIny5Fxwe+FH erqFT/tuRpP0CAUiLI7/0APUoDnDo7xYPY4OAYb795+nGuhH+2Iq8zba9EKqnh3607EH mr1ZFJEWgFfuIX2JW44KB0YQX1eun6Ctj0LrOzNaTVCsb87KUFFTN4/6MIXxFKofaekl +Plw== 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=j2UxuowfVVekanc81OGnny8YU51lqJTTG7duyyZOPZI=; b=RpxtrfqUfdHt+cma9A4WAroKeAlGHIbnz+JjjTwjD4ANw1cI8kI1g1f+tZdZRS/8CA F8IeOyulE+wCwb8h7zn6BFTs6T9rJBRMzq59FYqSossyRbTMdACMD30yhg1K+fGV7pYg yEqGqXScUr+MXqd80u31KpDWS4682NSzLYyQwsWlXoh2LG9sAYX+fli9VOi/LVbp02bW lPZK24DazGEuIAS7O+Y/yxwatjE1nfAl2fWgxmOzxeFfqUE6f+ry+JlHL90S2GP/DD3K ekdJUxtmYVWQCu1FKe9hZJjZMtp68AFz3LVL8a/BCn6vVj3TOPgLKvJHzfLcPMMoBGJj y0fQ== X-Gm-Message-State: ALyK8tIH2m2XKcq8no2YxxeAtuN6nHTL/Si6TndDw4lWXYDwD4R4/LwhNieKqFBfUez4sQ== X-Received: by 10.98.72.82 with SMTP id v79mr3993865pfa.105.1465589209390; Fri, 10 Jun 2016 13:06:49 -0700 (PDT) Received: from mail.broadcom.com ([216.31.219.19]) by smtp.gmail.com with ESMTPSA id s90sm19563819pfj.86.2016.06.10.13.06.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 Jun 2016 13:06:48 -0700 (PDT) From: Kamal Dasu To: linux-spi@vger.kernel.org, f.fainelli@gmail.com, broonie@kernel.org Cc: bcm-kernel-feedback-list@broadcom.com, vikram.prakash@broadcom.com, andy.fung@broadcom.com, jon.mason@broadcom.com, Kamal Dasu , Yendapally Reddy Dhananjaya Reddy Subject: [V3, 4/4] arm64: dts: Add ns2 SoC support Date: Fri, 10 Jun 2016 16:06:11 -0400 Message-Id: <1465589171-25575-4-git-send-email-kdasu.kdev@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1465589171-25575-1-git-send-email-kdasu.kdev@gmail.com> References: <1465589171-25575-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 northstar2 SoC. Signed-off-by: Kamal Dasu Signed-off-by: Yendapally Reddy Dhananjaya Reddy --- V3 chnage fixes checkpatch errors and warnings V2 no change --- arch/arm64/boot/dts/broadcom/ns2-svk.dts | 34 ++++++++++++++++++++++++++++++++ arch/arm64/boot/dts/broadcom/ns2.dtsi | 19 ++++++++++++++++++ 2 files changed, 53 insertions(+) diff --git a/arch/arm64/boot/dts/broadcom/ns2-svk.dts b/arch/arm64/boot/dts/broadcom/ns2-svk.dts index 54ca40c..0754841 100644 --- a/arch/arm64/boot/dts/broadcom/ns2-svk.dts +++ b/arch/arm64/boot/dts/broadcom/ns2-svk.dts @@ -132,3 +132,37 @@ #size-cells = <1>; }; }; + +&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@1 { + label = "env"; + reg = <0x000a0000 0x00060000>; + }; + + partition@2 { + label = "system"; + reg = <0x00100000 0x00600000>; + }; + + partition@3 { + label = "rootfs"; + reg = <0x00700000 0x01900000>; + }; + }; +}; diff --git a/arch/arm64/boot/dts/broadcom/ns2.dtsi b/arch/arm64/boot/dts/broadcom/ns2.dtsi index ec68ec1..9d7c90c 100644 --- a/arch/arm64/boot/dts/broadcom/ns2.dtsi +++ b/arch/arm64/boot/dts/broadcom/ns2.dtsi @@ -399,5 +399,24 @@ brcm,nand-has-wp; }; + + qspi: spi@66470200 { + compatible = "brcm,spi-bcm-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>; + }; + }; };