From patchwork Wed Oct 21 23:08:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Mason X-Patchwork-Id: 55407 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lf0-f70.google.com (mail-lf0-f70.google.com [209.85.215.70]) by patches.linaro.org (Postfix) with ESMTPS id 7413523024 for ; Wed, 21 Oct 2015 23:09:54 +0000 (UTC) Received: by lfaz124 with SMTP id z124sf23330975lfa.0 for ; Wed, 21 Oct 2015 16:09:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-type:sender:precedence :list-id:x-original-sender:x-original-authentication-results :mailing-list:list-post:list-help:list-archive:list-unsubscribe; bh=kIYpNNzq1hiIuyob8QNdtERuZJMz/P7HjcqD0ePYFN8=; b=Yu1S0XR+OqVU0MBN0dzEJ24xO77p6779xNtr+6FtokXPQdKLwhf6zIKD0C+bXg2Wxw fDCWUD9qsfGYXPGJsY4gDx50zYVGJf1MlpzVb8yFmxwqpBPu6xatUcfPbsS5F8+HcQMi MaOcsaKq5aAw+jzKtqVxfBukgbMya8hVSHb2qUj0ypEkU5ejutnLm0dmL8l3T6qSdNwb +oLqtPmnDNfDz58gggx5/vtwKKv6yuc0gvPlojA+kfHM0MamjVWkw4T5/rwtYl1ICmQF 1NOgx0cDNP6+d9zNn2yUvT0LTEFlgYYbwLCmx7lNE3RQqfezTezNx/VSzF3PoF5SYjNM CL1w== X-Gm-Message-State: ALoCoQk+KH716zLO9FtzbqL5h4G79+SxnRsL4t6KJKonC/vKFclO/jfP2Fov6hiXV9ozcrkvh51R X-Received: by 10.180.198.139 with SMTP id jc11mr5439513wic.4.1445468993469; Wed, 21 Oct 2015 16:09:53 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.213.66 with SMTP id m63ls251878lfg.102.gmail; Wed, 21 Oct 2015 16:09:53 -0700 (PDT) X-Received: by 10.112.54.130 with SMTP id j2mr5605396lbp.120.1445468993262; Wed, 21 Oct 2015 16:09:53 -0700 (PDT) Received: from mail-lf0-f48.google.com (mail-lf0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id b11si7921296lfe.66.2015.10.21.16.09.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Oct 2015 16:09:53 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by lfaz124 with SMTP id z124so28721067lfa.1 for ; Wed, 21 Oct 2015 16:09:53 -0700 (PDT) X-Received: by 10.25.145.209 with SMTP id t200mr4409856lfd.88.1445468993143; Wed, 21 Oct 2015 16:09:53 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp252030lbq; Wed, 21 Oct 2015 16:09:52 -0700 (PDT) X-Received: by 10.66.151.203 with SMTP id us11mr13562206pab.54.1445468991991; Wed, 21 Oct 2015 16:09:51 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pa7si16469192pac.231.2015.10.21.16.09.50; Wed, 21 Oct 2015 16:09:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756652AbbJUXJc (ORCPT + 28 others); Wed, 21 Oct 2015 19:09:32 -0400 Received: from mail-gw1-out.broadcom.com ([216.31.210.62]:18334 "EHLO mail-gw1-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756557AbbJUXI5 (ORCPT ); Wed, 21 Oct 2015 19:08:57 -0400 X-IronPort-AV: E=Sophos;i="5.20,179,1444719600"; d="scan'208";a="78433330" Received: from irvexchcas07.broadcom.com (HELO IRVEXCHCAS07.corp.ad.broadcom.com) ([10.9.208.55]) by mail-gw1-out.broadcom.com with ESMTP; 21 Oct 2015 18:05:30 -0700 Received: from IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) by IRVEXCHCAS07.corp.ad.broadcom.com (10.9.208.55) with Microsoft SMTP Server (TLS) id 14.3.235.1; Wed, 21 Oct 2015 16:08:57 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) with Microsoft SMTP Server id 14.3.235.1; Wed, 21 Oct 2015 16:08:57 -0700 Received: from venom.rtp.broadcom.com (unknown [10.27.64.103]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 6FF3C41007; Wed, 21 Oct 2015 16:05:57 -0700 (PDT) From: Jon Mason To: Florian Fainelli , Rob Herring , Pawel Moll , Mark Rutland , "Ian Campbell" , Kumar Gala , Russell King CC: , , , Subject: [PATCH 2/3] ARM: dts: NSP: Add NAND Support to DT Date: Wed, 21 Oct 2015 19:08:52 -0400 Message-ID: <1445468933-25933-3-git-send-email-jonmason@broadcom.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1445468933-25933-1-git-send-email-jonmason@broadcom.com> References: <1445468933-25933-1-git-send-email-jonmason@broadcom.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: jonmason@broadcom.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add NAND support to the device tree for the Broadcom Northstar Plus SoC. Since no driver changes are needed to enable this hardware, only the device tree changes are required to make this functional. Signed-off-by: Jon Mason --- arch/arm/boot/dts/bcm-nsp.dtsi | 16 +++++++++++++++- arch/arm/boot/dts/bcm958625k.dts | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/bcm-nsp.dtsi b/arch/arm/boot/dts/bcm-nsp.dtsi index 85fb1c8..62bc86f 100644 --- a/arch/arm/boot/dts/bcm-nsp.dtsi +++ b/arch/arm/boot/dts/bcm-nsp.dtsi @@ -96,7 +96,7 @@ axi { compatible = "simple-bus"; - ranges = <0x00000000 0x18000000 0x00015000>; + ranges = <0x00000000 0x18000000 0x0011ba08>; #address-cells = <1>; #size-cells = <1>; @@ -187,5 +187,19 @@ status = "disabled"; }; + + nand: nand@18026000 { + compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1"; + reg = <0x026000 0x600>, + <0x11b408 0x600>, + <0x026f00 0x20>; + reg-names = "nand", "iproc-idm", "iproc-ext"; + interrupts = ; + + #address-cells = <1>; + #size-cells = <0>; + + brcm,nand-has-wp; + }; }; }; diff --git a/arch/arm/boot/dts/bcm958625k.dts b/arch/arm/boot/dts/bcm958625k.dts index 4859268..b966955 100644 --- a/arch/arm/boot/dts/bcm958625k.dts +++ b/arch/arm/boot/dts/bcm958625k.dts @@ -67,3 +67,41 @@ &pcie2 { status = "okay"; }; + +&nand { + nandcs@0 { + compatible = "brcm,nandcs"; + reg = <0>; + nand-on-flash-bbt; + + #address-cells = <1>; + #size-cells = <1>; + + nand-ecc-strength = <24>; + nand-ecc-step-size = <1024>; + + brcm,nand-oob-sector-size = <27>; + + partition@0 { + label = "nboot"; + reg = <0x00000000 0x00200000>; + read-only; + }; + partition@1 { + label = "nenv"; + reg = <0x00200000 0x00400000>; + }; + partition@2 { + label = "nsystem"; + reg = <0x00600000 0x00a00000>; + }; + partition@3 { + label = "nrootfs"; + reg = <0x01000000 0x03000000>; + }; + partition@4 { + label = "ncustfs"; + reg = <0x04000000 0x3c000000>; + }; + }; +};