From patchwork Fri Jul 29 22:13: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: 9252939 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 1A44E6075F for ; Fri, 29 Jul 2016 22:13:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B10328423 for ; Fri, 29 Jul 2016 22:13:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F3D6328437; Fri, 29 Jul 2016 22:13:58 +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 6AA9A28423 for ; Fri, 29 Jul 2016 22:13:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754031AbcG2WN6 (ORCPT ); Fri, 29 Jul 2016 18:13:58 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:34398 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752937AbcG2WN5 (ORCPT ); Fri, 29 Jul 2016 18:13:57 -0400 Received: by mail-pf0-f196.google.com with SMTP id g202so6089476pfb.1 for ; Fri, 29 Jul 2016 15:13:57 -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=bFGEEiefYz60/ggkaeFx3xHe6oK9QIiCQMMIaz9BwFo=; b=LQUyo6iPY3SyxXSGjqy8+jNjWDzRNCAOMN3vUm/MwRFSG/l1aU3njiEglHB5iQ+Irr A/xM0LvTmj3nUk7DB9ffl5hGcaXnJ6Im/WQYMC38cqabZjlLxRqbRtJ7c2Kk9GjB5Iw+ hIzQgSCZwvsKPtWDfmjNPhLIwjf0zBQ0iXq2tQs7t3djMuGPDs0JGOga6XjQIj/OPO5V QsYfTWecEKks9mu0bX4pFtJCXxwqelXIsPkMS0IQr/VulTqQEOd1tbjr0edCFOjt/4N0 0A0IlEY3r2qhmAX2oc72vJQ9MchMkACHvie0auNdMYDp2KULGStdJLLSF+O92p+LLut9 xhAg== 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=bFGEEiefYz60/ggkaeFx3xHe6oK9QIiCQMMIaz9BwFo=; b=PsGJoJwY8CBG23yTSfyQKuEDlYPBLh5URykU3A4dxdpu/aZOzCgx6wn+K/UjAwdKgS PdSO7wJuB2gabna/q1GGVQLrGT7imfTRbEZjoYCknoUEYPblQWDDCIkhoJnPhh+U/S66 6nNjHPQcfvo+HeHhCIfqI4bRIG+bsMeEoLwwoRwEgxHLKUEMBA/fyzRJPaVJWy5VBxYZ x4B2a1i9D4e68XmjRc4ughA9dxnFjpo8kW7cFoYbHapwTZNd/jh2ZpZ+e+wAKSJHrrE1 8aypQmSsaZU6n1djRno0r3q/THjz5cjIDBcGxOWV++nAhzx6+JnEbv3bCqd9Qu+Wp0wS 1y2Q== X-Gm-Message-State: AEkooutJqzQLKFVIuNUAfdjK2TuzmtghVyPA7IqAE5iWjQYskAHWVa0PkDmHH4wQBBabwA== X-Received: by 10.98.80.220 with SMTP id g89mr72908109pfj.12.1469830436842; Fri, 29 Jul 2016 15:13:56 -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.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 29 Jul 2016 15:13:55 -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 Cc: bcm-kernel-feedback-list@broadcom.com, vikram.prakash@broadcom.com, andy.fung@broadcom.com, jon.mason@broadcom.com, jchandra@broadcom.com, Kamal Dasu , Yendapally Reddy Dhananjaya Reddy Subject: [PATCH v5 6/8] arm: dts: Add bcm-nsp and bcm958625k support Date: Fri, 29 Jul 2016 18:13:11 -0400 Message-Id: <1469830393-13295-7-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> 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 | 33 +++++++++++++++++++++++++++++---- arch/arm/boot/dts/bcm958625k.dts | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/bcm-nsp.dtsi b/arch/arm/boot/dts/bcm-nsp.dtsi index 6a40ed7..26c863e 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>; @@ -206,9 +206,34 @@ brcm,nand-has-wp; }; - rng: rng@33000 { - compatible = "brcm,bcm-nsp-rng"; - reg = <0x33000 0x14>; + 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 { diff --git a/arch/arm/boot/dts/bcm958625k.dts b/arch/arm/boot/dts/bcm958625k.dts index 2d84226..ab7ba8f 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@1 { + label = "env"; + reg = <0x000a0000 0x00060000>; + }; + + partition@2 { + label = "system"; + reg = <0x00100000 0x00600000>; + }; + + partition@3 { + label = "rootfs"; + reg = <0x00700000 0x01900000>; + }; + }; +};