From patchwork Wed May 11 15:29:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Dasu X-Patchwork-Id: 9071921 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 342D5BF29F for ; Wed, 11 May 2016 15:29:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3618C20148 for ; Wed, 11 May 2016 15:29:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 41E8020145 for ; Wed, 11 May 2016 15:29:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932237AbcEKP3v (ORCPT ); Wed, 11 May 2016 11:29:51 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:32940 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932216AbcEKP3u (ORCPT ); Wed, 11 May 2016 11:29:50 -0400 Received: by mail-pa0-f66.google.com with SMTP id gh9so3805652pac.0 for ; Wed, 11 May 2016 08:29: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=ZZE1Tief2ustNpOLhXDn+ua6Ul9Gh/UTEsYazYj+Qow=; b=FQ9KRvsg1ko9aWNS5KGICDm4mq7PJ2XcO3NiuUhP6YuGVB7xXBObdxg67RLxzDlPcA LPn/qnW1MLKR6uMUO7h4JHTKMrlzvlIQfpnxICVZAlACtXxG/L1Gnbk5uNvtQvIaOCme nNTK7659MGXxSnfTIHVDylUyWL3WumeQX8CUQWvG2y/ZUKRrAa3NczySGpA1pRiCw8+q HJc2cW8lCzM/4jFVFDTCI2RbL3i6w52Y/mCcHCyIPOCo2EDHDjximIg5dw0M/Lqnel2O YJJZ0Zq8i8+/ep5kx8C/aBvPokujA6zcLEeEkPW09zIPlR9zZkAIGLSZyfK4fdhHWwil cQgw== 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=ZZE1Tief2ustNpOLhXDn+ua6Ul9Gh/UTEsYazYj+Qow=; b=Zg59RVojJU3NQl1h6iSn6H+LKg/MWRzYdckC7NNsn32cMxoX037q3kF0q1dF4+Ey8i LqfGhYkbQ8jcbhRnXA8g3emsLBPjug8+yPGmWhYCCieHFuePW/wDcZmuo9Qzh/CfKrQ5 KWyQC/U86F42vMGPkEwQYObO1pJJbSTKvkrX3Z5bsBCYd3FYo5fIKmIGVZez0GIQIfDK 8VkF1IOBBoxoDtvdrT7gb2mTUlzg/y1vaJl7Zl88GL8LuMRMJQ5ZbiFsauVogfjdBhF/ 0XSUk3tnvBTndcQubzdzsC/f1e57GmixnCeCJdHO2I/jePqg2PYcD3t+Oevc95crXdYy nqug== X-Gm-Message-State: AOPr4FUTtzj3F2o0uFa8HdTXeigPgc4ie91mJMkXMBBPIYNvfDwRKeXQpb/zjRlAVK6oUw== X-Received: by 10.66.47.196 with SMTP id f4mr5758130pan.126.1462980584139; Wed, 11 May 2016 08:29:44 -0700 (PDT) Received: from mail.broadcom.com ([216.31.219.19]) by smtp.gmail.com with ESMTPSA id 71sm13072283pfy.32.2016.05.11.08.29.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 May 2016 08:29:43 -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 3/4] arm: dts: Add bcm-nsp and bcm958625k support Date: Wed, 11 May 2016 11:29:26 -0400 Message-Id: <1462980567-310-3-git-send-email-kdasu.kdev@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1462980567-310-1-git-send-email-kdasu.kdev@gmail.com> References: <1462980567-310-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-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.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 | 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>; + }; + }; +};