From patchwork Fri May 27 20:14:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Dasu X-Patchwork-Id: 9138943 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 126906075A for ; Fri, 27 May 2016 20:15:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0452E2819C for ; Fri, 27 May 2016 20:15:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ED15E282E2; Fri, 27 May 2016 20:15:32 +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 9C8952819C for ; Fri, 27 May 2016 20:15:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756571AbcE0UPc (ORCPT ); Fri, 27 May 2016 16:15:32 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:33043 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756563AbcE0UPb (ORCPT ); Fri, 27 May 2016 16:15:31 -0400 Received: by mail-pf0-f193.google.com with SMTP id b124so13607879pfb.0 for ; Fri, 27 May 2016 13:15:31 -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=irvKd/5vdY2xdwkdEZOnxezhwUegcUbuf+8Cze5aQ/k=; b=kiMYQXD+G8ZjEq4GqM7choEXZkmOSUIYM2j+d/mSDH4VS0E66eyrRpNk2uTXXPFlzg QbqNE4wWcg2NTuVKWra3TBAN43WlvTyzsVPoUYj88+vKM58NzNh4UrusySprBnwQMqrd Cfi3xNQwPpS3DnklXY4+Mm7XoHsBgi0f0RQW0DkuDmxURWcvJSN7sRYNV/xuLDy1ZKk3 bgapuXIUd2jGpDlMkczj8xaJqYGB5p4IuvLNPRLCXgDeKXuLQNSIqjI3oosgemUMXmHc 9hE1ysJepTfekwDd8RIqF5Fh/AlXEVkn6r5ba2MHu4CphjART2doT+w+Ztq1fM6e5+xX bvsw== 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=irvKd/5vdY2xdwkdEZOnxezhwUegcUbuf+8Cze5aQ/k=; b=DcT3RxjfHl83IVxy9o3UqBZVKeGJU+i9txhU51iY0IiPowss6beunOeakzufUGbq07 LRfKtGaEEU4BhaWlEojdR2YvCVlH20adQgIM3v48P5ZMn7N+QAlrAGXSx6kg3M3zgDcV 32CRt1VoIO3VWMHl3KlQ5megzEBqj08IgXEVA4kT7VSESBk3k5gvRY8liljpTq8t5VoD 5thUNrICwwZdstQZDZWj9ZxIbE+e4X7iFWbGWfDAHpOx1hly8Cmrylqotq170ZNea1/X g/m1/1h9IvebK6H65gmJiURtSH5PCtpTXgc+kI84j/OT7n3UneBRXHZJ8KB7zzNWVtad NJ8w== X-Gm-Message-State: ALyK8tKl7PtGph4DYfWgNMHZ6nAUzzNRHWMX/p62/4BoV9F6JJ3dQS/niHsPyXHLa53Htg== X-Received: by 10.98.32.140 with SMTP id m12mr25174941pfj.119.1464380130800; Fri, 27 May 2016 13:15:30 -0700 (PDT) Received: from mail.broadcom.com ([216.31.219.19]) by smtp.gmail.com with ESMTPSA id z9sm15630439pfa.84.2016.05.27.13.15.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 May 2016 13:15:29 -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 V2, 4/4] arm64: dts: Add ns2 SoC support Date: Fri, 27 May 2016 16:14:57 -0400 Message-Id: <1464380097-25125-4-git-send-email-kdasu.kdev@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1464380097-25125-1-git-send-email-kdasu.kdev@gmail.com> References: <1464380097-25125-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 northstar2 SoC. Signed-off-by: Kamal Dasu Signed-off-by: Yendapally Reddy Dhananjaya Reddy --- V2 no change --- 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 54ca40c..0754841 100644 --- a/arch/arm64/boot/dts/broadcom/ns2-svk.dts +++ b/arch/arm64/boot/dts/broadcom/ns2-svk.dts @@ -132,3 +132,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 ec68ec1..493fff6 100644 --- a/arch/arm64/boot/dts/broadcom/ns2.dtsi +++ b/arch/arm64/boot/dts/broadcom/ns2.dtsi @@ -399,5 +399,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>; + }; + }; };