From patchwork Fri Jun 10 20:06:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Dasu X-Patchwork-Id: 9170411 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 51B2B607D9 for ; Fri, 10 Jun 2016 20:06:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 43FE5282F9 for ; Fri, 10 Jun 2016 20:06:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 37BBD2833F; Fri, 10 Jun 2016 20:06:48 +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 D3687282F9 for ; Fri, 10 Jun 2016 20:06:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752113AbcFJUGr (ORCPT ); Fri, 10 Jun 2016 16:06:47 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34820 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751777AbcFJUGq (ORCPT ); Fri, 10 Jun 2016 16:06:46 -0400 Received: by mail-pf0-f195.google.com with SMTP id t190so5645627pfb.2 for ; Fri, 10 Jun 2016 13:06:46 -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=uiADHnnm2Be8toz5gnN2Rx59gjBQtohgDM1/aEmYy/o=; b=mmOkRXOfQbuVVKPuNelmatxUhmNz/8+qtoMiABY/AqIKdPHxMQRebMjV1Dbve25QZR sXjQRLD78qMRMmFqkuMjVLEmM5M8pf1xkDh0hnviAOubU6RZAhSU9jCgl1lokkAyf+JY 3adQ7f3WPnSYxp9CCukBPvYNjDUwQcIrGrM/zjDPDro04Mh8ng4e6EFVqj2wH+gGSVXY IcdtTGHmp+j1ybma9Qf+xLhjzqxbbwVZowZZafAjfVWhXdWhSRoeYdF3Dau2zctK4BF+ E8Zmw38gYo+np+bNPCsrxyl8f7p1YRQaDzyOFT9KtxcbcMGV3cjsqrcCHjFCvXUg8qNg RLsA== 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=uiADHnnm2Be8toz5gnN2Rx59gjBQtohgDM1/aEmYy/o=; b=Zqs7PvFIj7MmkJxq/HQdV6DStbyA567cOlx+vGIzTTTgF++wAYXmkFaOoXZtX/1tT8 IiIZWMbHKlcawIaZ/QBlIZtl7jv7dz6SHA5ErzFtbqbMdx74IJkbWd0XHPmy7n+Le+wW 84g54LkgxlaYUnHSPnjSs4wLUzGcuB4/E/Kd6zdWiJ+p0yk6DZ9FFpC0RKE2ZBKTZs8L xXwlu3x6WPm6mdsY54t6PabtukzS+7eSCEA3vurb6Kyc9AStX6PLW25gk6Ur1MJvYlu7 1o3+nWl0K9FT/PNp9ipA1sXWJzUKtudecWL4eJq1RB6bLSvMbOji8S3Xg0vvMDL7OLHo nq6g== X-Gm-Message-State: ALyK8tLGmayiw+K1o+gOd9TfJi9uHY9OYywJCg9cd2fsfxMJw3EevTa1ABhM0UIXf0H+nw== X-Received: by 10.98.33.23 with SMTP id h23mr3882918pfh.42.1465589205703; Fri, 10 Jun 2016 13:06:45 -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.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 Jun 2016 13:06:44 -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, 3/4] arm: dts: Add bcm-nsp and bcm958625k support Date: Fri, 10 Jun 2016 16:06:10 -0400 Message-Id: <1465589171-25575-3-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 northstar SoCwq. Signed-off-by: Kamal Dasu Signed-off-by: Yendapally Reddy Dhananjaya Reddy --- V3 chnage fixes checkpatch errors and warnings V2 no change --- 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>; + }; + }; +};