From patchwork Wed May 11 15:29:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Dasu X-Patchwork-Id: 9071891 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 68A3FBF29F for ; Wed, 11 May 2016 15:29:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 93DC820145 for ; Wed, 11 May 2016 15:29:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8326D201B9 for ; Wed, 11 May 2016 15:29:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932222AbcEKP3u (ORCPT ); Wed, 11 May 2016 11:29:50 -0400 Received: from mail-pa0-f67.google.com ([209.85.220.67]:34904 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932225AbcEKP3t (ORCPT ); Wed, 11 May 2016 11:29:49 -0400 Received: by mail-pa0-f67.google.com with SMTP id zy2so4509829pac.2 for ; Wed, 11 May 2016 08:29:48 -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=bLauzFVQuw7Qa/y/04PPy55D+oRy6HzajTraiO7p0SWlazzGEl6722InFRs6KhzGBP cT5MiuZYBYGnrmhZf6CSvBIEcRZXme7Qlm7cY2i/K9jKHY6GujdIoJfP8rhw9x0OlxjF 0to8POJIlSaCrMw4CzTeEIixdzObXX+VR73kjl24VvKkIXTRWKOYWG4Ub6qHwWY5VkN+ RYyqnLOs+l89VcnDhQZ376gNbUzKHGcduIiaNz4DXgBYsr64AittqgFYrER5zhOkK4ZP MpSybcudtPWOq76JHlzh78dYSN+GONCBJ5XT1AhDX6Ea5mcMeVoU5dtOpUGhCp9dr8rg 6hvA== 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=ZN+HZZRG78Y+P9thdxtnOxrFeozwk0NV4jYEqKvKyeBMDUaQzS6AGzDQAUvh9W2yyv Ym9JpRuaE/pBGJzHoEUvxFCxFYnrhOETDJCVF5EyxWdJDo2eqUqhSIxAfVvQl3qRr/OZ hGGTsuFEghFDHpiNBEGtyBjpaQ0v/OrFh2+VxlyKhbIJawZ2jsKohF5gmvGGX636pYXY Dck2seGpOY5amcZJ6psVeHD70aJlqVSYNsLeUpD2jQlmm99Bg2CiMtwARij3eLtxCSDj m6JoMBUdCNDoX/JnLGJGVkHo+ni+QaceWSyUObV9clxMhYVK9kiPzQc7MuuD+/ijsQ2m OhRQ== X-Gm-Message-State: AOPr4FW+xWUwckTCE7Yle1jcPAc5PvE3s6cGbt2tu0DeGWtTiFdt4e0kxZLpdY3jLw2vuA== X-Received: by 10.66.50.105 with SMTP id b9mr5849882pao.122.1462980588386; Wed, 11 May 2016 08:29:48 -0700 (PDT) Received: from mail.broadcom.com ([216.31.219.19]) by smtp.gmail.com with ESMTPSA id 71sm13072283pfy.32.2016.05.11.08.29.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 May 2016 08:29:47 -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 4/4] arm64: dts: Add ns2 SoC support Date: Wed, 11 May 2016 11:29:27 -0400 Message-Id: <1462980567-310-4-git-send-email-kdasu.kdev@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1462980567-310-1-git-send-email-kdasu.kdev@gmail.com> References: <1462980567-310-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=-8.2 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>; + }; + }; };