From patchwork Fri Jun 17 21:03:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Dasu X-Patchwork-Id: 9184989 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 3C3946075F for ; Fri, 17 Jun 2016 21:04:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0E4BF280B0 for ; Fri, 17 Jun 2016 21:04:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 02BD228236; Fri, 17 Jun 2016 21:04:19 +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 98033280B0 for ; Fri, 17 Jun 2016 21:04:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754857AbcFQVET (ORCPT ); Fri, 17 Jun 2016 17:04:19 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:35225 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754450AbcFQVES (ORCPT ); Fri, 17 Jun 2016 17:04:18 -0400 Received: by mail-pa0-f66.google.com with SMTP id hf6so6387774pac.2 for ; Fri, 17 Jun 2016 14:04:18 -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=Hb6s2IMyH8xaDhu44joD9bZmgrXMZ9fGt164kchzOeY=; b=qvkUQXzFafukTQnoofVepFKmzoUHN3iKlGRc1MSqBWEXIslCL6nM7iLBv6j3BMn/I/ m0TeZP9kFWZ/tZkQRUqOgTQrQ2/+CO6qD7cyMCcZbF6m9YTA0hAgtKYmBBdsqQVSjXFd 4ctryulWNn37nwPZWkuYUlv0VmYz2SKF5wrLJIeDObGIe0WWVUEac9Gikeps45dDgcHy yrNGJIzxzlC/3XkRw0dCfrzhWH3joah1FXuMn2PuO6dAozOcdkVXbhkJ0Zg81M931oDd CpCrC/p7PcqSmsir7O/N2zZg/mRCjrjoz00eULS1FusHLfDbgSSymVBe+Yj9QF4fcd3Y zgaQ== 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=Hb6s2IMyH8xaDhu44joD9bZmgrXMZ9fGt164kchzOeY=; b=QlLeNbKeA0jN/1QI2DgJ5WSH0Luufevb8ZUDrZ7cedS6EgzQZlD3PxdHLJ2D/l5iLF ntAmnLsd4WDfWVUwKC7vHxv0AveGuNww0tP75sKGCyA9LAcJCp3VMCKwgNsDbdTW2BkY 2l3+N98HTh1mPZg2R1mjL2sEU3Yu/IZAo59zhiSftLPsrPggZkbcXAZThmERKtmA7moL wQvGAnqo24ZEwXR1lB4jwB3z44ffhCcuEfQhqAoYIlOuJhDSFdr1V9jKIejN6DYw9QKr ZeH4nyutkNtxYE6FTZYLYc7+ULXd5Uv+fOydHzAa2Yu0X5MbKUyfIqYEKU9cWi+pT70L orCQ== X-Gm-Message-State: ALyK8tKc26BgWcQm76mFjz+tvJm6wI8rLrCCnFoxU6r6FiRrutqjqwX0Vp/da3dRFCZtgg== X-Received: by 10.66.222.202 with SMTP id qo10mr4378047pac.141.1466197457745; Fri, 17 Jun 2016 14:04:17 -0700 (PDT) Received: from mail.broadcom.com ([216.31.219.19]) by smtp.gmail.com with ESMTPSA id fl1sm70364206pab.43.2016.06.17.14.04.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Jun 2016 14:04:16 -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: [PATCH, V4, 3/5] arm: dts: Add bcm-nsp and bcm958625k support Date: Fri, 17 Jun 2016 17:03:51 -0400 Message-Id: <1466197433-11290-3-git-send-email-kdasu.kdev@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1466197433-11290-1-git-send-email-kdasu.kdev@gmail.com> References: <1466197433-11290-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 --- arch/arm/boot/dts/bcm-nsp.dtsi | 30 ++++++++++++++++++++++++++++++ arch/arm/boot/dts/bcm958625k.dts | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/arch/arm/boot/dts/bcm-nsp.dtsi b/arch/arm/boot/dts/bcm-nsp.dtsi index def9e78..aae45e6 100644 --- a/arch/arm/boot/dts/bcm-nsp.dtsi +++ b/arch/arm/boot/dts/bcm-nsp.dtsi @@ -206,6 +206,36 @@ 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>; + }; + }; +};