From patchwork Fri Jun 17 21:03:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Dasu X-Patchwork-Id: 9184995 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 552F86075F for ; Fri, 17 Jun 2016 21:04:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B1BC1FF0B for ; Fri, 17 Jun 2016 21:04:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0F7E025D97; Fri, 17 Jun 2016 21:04:34 +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 A702A1FF0B for ; Fri, 17 Jun 2016 21:04:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754450AbcFQVEd (ORCPT ); Fri, 17 Jun 2016 17:04:33 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:36849 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754695AbcFQVEc (ORCPT ); Fri, 17 Jun 2016 17:04:32 -0400 Received: by mail-pf0-f194.google.com with SMTP id i123so3830811pfg.3 for ; Fri, 17 Jun 2016 14:04: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=aD0jVdYfMqTCFbhD3nfG9+ENARiD6nVHDNs25D3HBUM=; b=i21FKeanCewXQzXZbj8FA4S3c6UeTVyiCiNczsdXjzXSiBPchp60BnpSpDWeUHhAwf xPu6UGljSwQ4EeR7JPAySttPA9bzipN5/fRHf8CvIrlQ9HbZwAbGXhSvmDHTT4lUNa0P WXy3gR+OvUw4EX/etAuLIYYJRX4/P/3pUf9gkyI/194/+d1YHoG1yGveAeXKVqV/+eNi LyzI2LRnyDDNhmIPvjSn6fQ7kYAW2oWc9atXO3C1JLo0mWzBofQi0ICk4ih+naJqlsbH vNXxIGxuO5FL1AkF7F5rhc8C8+2SXBfE4+iVg6j9p5NE8JaepIHoBpnFLocM7ksDczB9 WBvQ== 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=aD0jVdYfMqTCFbhD3nfG9+ENARiD6nVHDNs25D3HBUM=; b=NYQOKrxFzviqK8sk1mSS4GAgz0m3izluvQ5KM65+L59YhzdjucEf3o5EtdL19gAp0/ mh400H5pzLPGk4pqINm6HNyFfOHWmETfW5ZeDo8oxd4cxP45fDgOn64BmdrOxDfKw0hO 21MGueeFDke0UXO3328WlGJHs9t4okgNvO7yUOBVFH0h5pY+81Muq57pZ8cu41e++kzN 5hAF8wERO1qL3yC9HpGnc4H6Jl6OqVSFoecHMGTQ5q0geCa+oJvp7qIYnfShOfSRMtrb mifldnAeYnypD4LdIx6kwrwM0VQXlZ6CsHMhobWGDNQnTDh/pd8cxgqol6GQxy1m/YjL 9/VQ== X-Gm-Message-State: ALyK8tKV77069Yw1YeJdy1nbvPB3YHbtGLOcFdZ1bx9oWB0eHpLWsDsY7fSpfuBYutTCng== X-Received: by 10.98.27.141 with SMTP id b135mr4592825pfb.111.1466197471415; Fri, 17 Jun 2016 14:04:31 -0700 (PDT) Received: from mail.broadcom.com ([216.31.219.19]) by smtp.gmail.com with ESMTPSA id fl1sm70364206pab.43.2016.06.17.14.04.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Jun 2016 14:04:30 -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: [PATCH, V4, 4/5] arm64: dts: Add ns2 SoC support Date: Fri, 17 Jun 2016 17:03:52 -0400 Message-Id: <1466197433-11290-4-git-send-email-kdasu.kdev@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1466197433-11290-1-git-send-email-kdasu.kdev@gmail.com> References: <1466197433-11290-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 | 19 ++++++++++++++++++ 2 files changed, 53 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..9d7c90c 100644 --- a/arch/arm64/boot/dts/broadcom/ns2.dtsi +++ b/arch/arm64/boot/dts/broadcom/ns2.dtsi @@ -399,5 +399,24 @@ 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>; + }; + }; };