From patchwork Wed Aug 24 22:04:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Dasu X-Patchwork-Id: 9298419 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 5582C60459 for ; Wed, 24 Aug 2016 22:07:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 44BDF2913A for ; Wed, 24 Aug 2016 22:07:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 391B22913C; Wed, 24 Aug 2016 22:07:00 +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 AD6E32913A for ; Wed, 24 Aug 2016 22:06:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757049AbcHXWG7 (ORCPT ); Wed, 24 Aug 2016 18:06:59 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35940 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755505AbcHXWG6 (ORCPT ); Wed, 24 Aug 2016 18:06:58 -0400 Received: by mail-pf0-f196.google.com with SMTP id y134so1945386pfg.3 for ; Wed, 24 Aug 2016 15:06:58 -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=VlqJpKSF8NoeoZdz+dllQZ64ERIwhx6A3mWrk9c287I=; b=oEhFQNLCCbmR0Br4Hke/Sk7H4sWSjH2nZgQt3F8AG5gFZi+Z7LB3YYxKywzqoPKo5A 5c8rODKgbOl/FN1psscn4NsLGrnJhn4lyv92b6UO7gvs0IXEeZVPpphKeMi+fkPUC8LY GcGeQiuD+/DAW5rNf9ucZOJFLe74FBAeXwpAPXI/9WJAHmsnTye/7mq3TVIjwqziPslg NW2/WiwMVEqlAp8s5fAL23ZP59mWnDB4IhskLARv7IsBEbJ+xGRCOJZ7wcqdiBXd91FF 0XF25SLTn5iVc6uFzBtvxZuVII/hjR/3qStzWWgNvW6StltNMQmMtR3bO1sdK8iDFzYN G0Xg== 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=VlqJpKSF8NoeoZdz+dllQZ64ERIwhx6A3mWrk9c287I=; b=UEirBS1rCBKQhbxyEKHyJ/nDXCOsyYzwkIo/mF9U5Zh58u8z1wlvhsm3aqWqZicM4Z wtZAbR/B4w9APBoGHc254q66VEwOHLArknUNT0ODk2XW/2LABmktn6t6m/Q9qydOjfU1 IMsB5sVArht3asmycPxHC5ToioZu+LB5rnJV3bgEwyymf9kYA5umnH+l/MuvobxCOxIw +vmMhQPG5uhiMksPIS7ekPhwfO5YP1FzE27YLBhj3nSatjcwlf+GNGvN/IXOZmKGNQnu mtFCF1o476JlUH82Vm7r9WnbIn1kmrLipDgodgNJvB3i5nNKhVSSTBaEl9ivud7luL1h UQWw== X-Gm-Message-State: AE9vXwMz58sscuwJP8fJ43cxP/JAkqxFHGY8PTWP+ddP+7xmBmP0uJvpVu8IYUimDjmkqg== X-Received: by 10.98.210.69 with SMTP id c66mr9985313pfg.71.1472076418134; Wed, 24 Aug 2016 15:06:58 -0700 (PDT) Received: from mail.broadcom.com ([216.31.219.19]) by smtp.gmail.com with ESMTPSA id wa9sm15966968pac.35.2016.08.24.15.06.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 Aug 2016 15:06:57 -0700 (PDT) From: Kamal Dasu To: broonie@kernel.org, linux-spi@vger.kernel.org, computersforpeace@gmail.com, linux-mtd@lists.infradead.org, vigneshr@ti.com, f.fainelli@gmail.com, yendapally.reddy@broadcom.com Cc: bcm-kernel-feedback-list@broadcom.com, jon.mason@broadcom.com, Kamal Dasu Subject: [PATCH v6, 7/8] arm64: dts: Add ns2 SoC support Date: Wed, 24 Aug 2016 18:04:28 -0400 Message-Id: <1472076269-4731-8-git-send-email-kdasu.kdev@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1472076269-4731-1-git-send-email-kdasu.kdev@gmail.com> References: <1472076269-4731-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 --- 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 2d7872a..7308487 100644 --- a/arch/arm64/boot/dts/broadcom/ns2-svk.dts +++ b/arch/arm64/boot/dts/broadcom/ns2-svk.dts @@ -185,3 +185,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@a0000 { + label = "env"; + reg = <0x000a0000 0x00060000>; + }; + + partition@100000 { + label = "system"; + reg = <0x00100000 0x00600000>; + }; + + partition@700000 { + label = "rootfs"; + reg = <0x00700000 0x01900000>; + }; + }; +}; diff --git a/arch/arm64/boot/dts/broadcom/ns2.dtsi b/arch/arm64/boot/dts/broadcom/ns2.dtsi index f53b095..53128ee 100644 --- a/arch/arm64/boot/dts/broadcom/ns2.dtsi +++ b/arch/arm64/boot/dts/broadcom/ns2.dtsi @@ -557,5 +557,23 @@ brcm,nand-has-wp; }; + + qspi: spi@66470200 { + compatible = "brcm,spi-bcm-qspi", "brcm,spi-ns2-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"; + num-cs = <2>; + #address-cells = <1>; + #size-cells = <0>; + }; + }; };