From patchwork Tue May 3 20:36:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Dasu X-Patchwork-Id: 9008301 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5B1189F1D3 for ; Tue, 3 May 2016 20:37:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7093B2037F for ; Tue, 3 May 2016 20:37:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8546E2037C for ; Tue, 3 May 2016 20:37:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756478AbcECUhi (ORCPT ); Tue, 3 May 2016 16:37:38 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:34694 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756458AbcECUhh (ORCPT ); Tue, 3 May 2016 16:37:37 -0400 Received: by mail-pf0-f193.google.com with SMTP id 145so2624621pfz.1 for ; Tue, 03 May 2016 13:37:37 -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=Vz1VUSBv8BQcp+1KcgIHCbHkbqQVHtOyTPGLmx+PZ5w=; b=NOgbVuhKNUwPNa7SK19QHYq5jEq15Q7qsQTh37RNUtbfSpNFpqM4JgroPJi52M0kwt b+ZPLfBm3sYLhptXpa4i0jPd2LTjCSYc0wjxgjMQuqg1k3zyXX7FT/85Eg+PLNn3uZ88 F/wuKaeuB1uc11/2FrAA5nbxvsWzk72eFzASv0kXdjBMEUGvhz/stANAnd3Wzcg940cp HJ5QB0oLniYbwbn9MhkH0VsDKyfg+zlaMsSlLal2BB+QetlNzxfe2Z1feESNGN4pThru TOtU+M4GNBddIQC4XytNtPhWao9q2QPBSjYqdKllp1iHXSHtZj33CoP0bPGZoIhH83gE oFlA== 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=Vz1VUSBv8BQcp+1KcgIHCbHkbqQVHtOyTPGLmx+PZ5w=; b=YSJ8hadVqSYC/R03R9S6gyU7QAOBLYE4izouqXyS/mD0nHPYQW/L+0S6ckr4kIVRaK Nc66bcvNSDPNaezREk7N/+A8olkQL9ToFzbFs3nlFB54cfAMij9BxVRuYrwmK6vqCoLx m0o+pqSoH+Q/Tq0K7gTXqpxhjMCucb96prdHAPaNFBwdkL9PpDmvyHvizo6TxQupcMWl 6m9jbzVfZys2+VOKkVe2CO1DVo64GOc6Og4xztlJ2KUVR4JPuA4OnugXBHBJyAuGbBFQ q4iJIJupSSYTtFXUBUBn6e9Z4wg69KmuG07JUPRu0wm5750xrf8lseIOSN3D/nw6VJXJ cr7w== X-Gm-Message-State: AOPr4FUREEazUgmjGb0rrMI7/KgJJj6U8GWec//mVQ5EUzfyTb7xjEsIqMRAoZiMt2w63A== X-Received: by 10.98.3.4 with SMTP id 4mr6554395pfd.33.1462307856883; Tue, 03 May 2016 13:37:36 -0700 (PDT) Received: from mail.broadcom.com ([216.31.219.19]) by smtp.gmail.com with ESMTPSA id e7sm208199pfa.28.2016.05.03.13.37.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 May 2016 13:37:35 -0700 (PDT) From: Kamal Dasu To: linux-spi@vger.kernel.org, yrdreddy@broadcom.com, f.fainelli@gmail.com, bcm-kernel-feedback-list@broadcom.com Cc: vikram.prakash@broadcom.com, andy.fung@broadcom.com, jon.mason@broadcom.com, Kamal Dasu , Yendapally Reddy Dhananjaya Reddy Subject: [RFC, 4/4] arm64: dts: Add ns2 SoC support Date: Tue, 3 May 2016 16:36:45 -0400 Message-Id: <1462307805-24434-4-git-send-email-kdasu.kdev@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1462307805-24434-1-git-send-email-kdasu.kdev@gmail.com> References: <1462307805-24434-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=-7.8 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 northstar2 SoC. Signed-off-by: Kamal Dasu Signed-off-by: Yendapally Reddy Dhananjaya Reddy --- arch/arm64/boot/dts/broadcom/ns2-svk.dts | 34 ++++++++++++++++++++++++++++++++ arch/arm64/boot/dts/broadcom/ns2.dtsi | 18 +++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/arch/arm64/boot/dts/broadcom/ns2-svk.dts b/arch/arm64/boot/dts/broadcom/ns2-svk.dts index ce0ab84..82641d6 100644 --- a/arch/arm64/boot/dts/broadcom/ns2-svk.dts +++ b/arch/arm64/boot/dts/broadcom/ns2-svk.dts @@ -87,3 +87,37 @@ #size-cells = <1>; }; }; + +&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>; + }; + }; +}; diff --git a/arch/arm64/boot/dts/broadcom/ns2.dtsi b/arch/arm64/boot/dts/broadcom/ns2.dtsi index 6f81c9d..421fe26 100644 --- a/arch/arm64/boot/dts/broadcom/ns2.dtsi +++ b/arch/arm64/boot/dts/broadcom/ns2.dtsi @@ -444,5 +444,23 @@ brcm,nand-has-wp; }; + + qspi: spi@66470200 { + compatible = "brcm,spi-bcm-qspi"; + reg = <0x66470200 0x184>, + <0x66470000 0x124>, + <0x67017408 0x004>, + <0x664703a0 0x01c>; + reg-names = "mspi", "bspi", "intr_regs", "intr_status_reg"; + interrupts = ; + interrupt-names = "spi_l1_intr"; + clocks = <&iprocmed>; + clock-names = "iprocmed"; + clock-frequency = <12500000>; + num-cs = <2>; + #address-cells = <1>; + #size-cells = <0>; + }; + }; };