From patchwork Fri May 27 20:14:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Dasu X-Patchwork-Id: 9138941 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 5FE316075A for ; Fri, 27 May 2016 20:15:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 51FA02819C for ; Fri, 27 May 2016 20:15:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 46EC128299; Fri, 27 May 2016 20:15:29 +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 AAF6328285 for ; Fri, 27 May 2016 20:15:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756562AbcE0UP2 (ORCPT ); Fri, 27 May 2016 16:15:28 -0400 Received: from mail-pa0-f67.google.com ([209.85.220.67]:35640 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756557AbcE0UP1 (ORCPT ); Fri, 27 May 2016 16:15:27 -0400 Received: by mail-pa0-f67.google.com with SMTP id gp3so6819598pac.2 for ; Fri, 27 May 2016 13:15:26 -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=L8pM0EaiqXKsLrp+psMxJertyGNl0I70ACHcQLOfDQc=; b=w8V1id2ZY6/aWiDzmUGgGpYmqmtuAvWVg5/NeqTsLJzqB+Np5GJ8/KQ3V1JYY9NsFm 8MiBS6S6WZSF6xbKYDETbD7vWxwkIiz2HRLBMAMv8kj69GFZHPNyvlqofXWVn/xHsK46 mIPM1rjGrhw75grzGXC1f/lFsCaCQ0zN6MACZCMxM1TuVUd55Devlrqft501HIwsCXXV 7A3l32F7XvIv66YIw1YYkv2rwhaE+0No4vh3jwImBc69LktODQEv1CTgLEVWp75yph3m K8aE2wOHHE8QsrkCPTYToxSD64s/R6VU63R7QJuALfKxjbNM/ba41iXQV0n93KBJO+eX GM/w== 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=L8pM0EaiqXKsLrp+psMxJertyGNl0I70ACHcQLOfDQc=; b=MGHxJFpwTgsqIPogUjQ6TfZmalcNj4Ln77Xrn6uVao4kSS/uTYhAK8P15OjT/a1F+N Tdac6taqibWb/lGRTgECqtBapQ3m5eQ+vVirHBwbHjWDaqfEd6AcB4vFv0aLXw8zf335 LXF1qSYhcuzjJvtrXOPpKNTqM3iYElOI+q/uB1gk0DiIPRFBz8h/PmPZyIHLGgrGN5f0 NWwSIZcybeNugUXg27WKnk5xiU5lBJTDzsCRVL3uvOmUNnTmuPIBiuVCfB65KNlLz12k cGWhcT0hcOBb7evS+EKWibnyx88PPGRpq9lCGLR31NUi8ybXh0uqlKqhYYpGaG+R1eZH tvgg== X-Gm-Message-State: ALyK8tJx3VT3rAcuB2ScztMdm1/ApXeUZGQweekrO2HSZDKuA6CIssXwZJrNd/ZM63uRdg== X-Received: by 10.66.136.41 with SMTP id px9mr25082453pab.80.1464380126327; Fri, 27 May 2016 13:15:26 -0700 (PDT) Received: from mail.broadcom.com ([216.31.219.19]) by smtp.gmail.com with ESMTPSA id z9sm15630439pfa.84.2016.05.27.13.15.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 May 2016 13:15:25 -0700 (PDT) From: Kamal Dasu To: linux-spi@vger.kernel.org, f.fainelli@gmail.com 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: [PATCH V2, 3/4] arm: dts: Add bcm-nsp and bcm958625k support Date: Fri, 27 May 2016 16:14:56 -0400 Message-Id: <1464380097-25125-3-git-send-email-kdasu.kdev@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1464380097-25125-1-git-send-email-kdasu.kdev@gmail.com> References: <1464380097-25125-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 SoCwq. Signed-off-by: Kamal Dasu Signed-off-by: Yendapally Reddy Dhananjaya Reddy --- V2 no change --- arch/arm/boot/dts/bcm-nsp.dtsi | 29 +++++++++++++++++++++++++++++ arch/arm/boot/dts/bcm958625k.dts | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) diff --git a/arch/arm/boot/dts/bcm-nsp.dtsi b/arch/arm/boot/dts/bcm-nsp.dtsi index def9e78..b3082b9 100644 --- a/arch/arm/boot/dts/bcm-nsp.dtsi +++ b/arch/arm/boot/dts/bcm-nsp.dtsi @@ -206,6 +206,35 @@ brcm,nand-has-wp; }; + qspi: qspi@27200 { + compatible = "brcm,spi-bcm-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"; + clock-frequency = <12500000>; + 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 e298450..5aea779 100644 --- a/arch/arm/boot/dts/bcm958625k.dts +++ b/arch/arm/boot/dts/bcm958625k.dts @@ -114,3 +114,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@1 { + label = "env"; + reg = <0x000a0000 0x00060000>; + }; + + partition@2 { + label = "system"; + reg = <0x00100000 0x00600000>; + }; + + partition@3 { + label = "rootfs"; + reg = <0x00700000 0x01900000>; + }; + }; +};