From patchwork Mon May 15 12:02:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 9726793 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 1A413601E7 for ; Mon, 15 May 2017 12:04:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 097D22898B for ; Mon, 15 May 2017 12:04:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F09362898D; Mon, 15 May 2017 12:04:27 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 14AF22898C for ; Mon, 15 May 2017 12:04:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=slKuDOqHnBaiZun4/jfxpgtApWKAd52b+fsYWUp7Bw4=; b=J5op02mgFt97DREBhCSKAUd4sE 3dx1oybI3ZTT1CZsDwikKTkSewS/V80j/8NbjwjC3qcx0iu/jS28Gg9+PAfePK3UNL+MWJdYqtN4I dbIqwozhFZyLLpaeSpQGN74hsJpn2/7+Q2q/8IBcsXhaq4bE3c3XMRBr5pe55ua9ZqIEvQG8egO19 mjilgqecCiznKIA8O1VX2+eaCPYo3FqpeWZLCI5Hh4OnpmXVD47Yb/WfeUjN84LIZSp8pBXReab38 EkE9QW4dr7pCpUltKEOb6quOj7jMQJLxVf6qacibn1uW7+RUtVV6vSNt/RKQtVQ9TLaMpgxR/ZSdJ NOIQX4lQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dAEjh-0007Lj-ME; Mon, 15 May 2017 12:04:25 +0000 Received: from mail-pg0-x22e.google.com ([2607:f8b0:400e:c05::22e]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dAEix-0006G5-TT for linux-arm-kernel@lists.infradead.org; Mon, 15 May 2017 12:03:48 +0000 Received: by mail-pg0-x22e.google.com with SMTP id q125so39836027pgq.2 for ; Mon, 15 May 2017 05:03:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PYEHK/zfmLZbGBDMTswUMyAMqan4QvDZBaLdM4xUlyw=; b=XuYks9zAQoXvkKzPPLkNsHJT/r2NslS8koqsvM9NFjjtLfkKmKCxIRfsdfFS9kpXWd O4kOgFXGCUBr+BA96r1/cexqq8pAzOutBJK/9I5cfDqZ2DlYMwgNFWpW7yHW8Ak1r9Pk Z8gWd7ARYBP215q8ecIpkAEpAGe9IUz0//tW8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PYEHK/zfmLZbGBDMTswUMyAMqan4QvDZBaLdM4xUlyw=; b=baLQoac4QKMfLfg37VH8eR9TBTMF45d8jH1/rxbH7lDMkwCiHMqPELOSiBwl4GwQY7 waDMey8zdsXpMgXH2BWHm3WZ6s+Vdt2J1O6Q0vGUvNCNltQ2bRsx/xW/i1o3Vpt5+yVZ C+84ywpanqJZ8gGrINZynmwgwnr5TemuPP1lO2sssmlxpgjMRxgxD5ETiNYZ/RTqyuc9 FA6nPKMcy589D5uyDK32/eBMGKUXZMgDuHa3MG4md5n6IuXq0ill/T3hP/gnDpw053GI 800MzYY59rOkgtZMlgf1C5od6oWxWkgPicpHh8PQ4mD6QvpKVEr3rytH28qXLxjrSI9M Vr/A== X-Gm-Message-State: AODbwcAdDnTtno1SDLJYW39fRmHexXHmCtMJwYfaBHxgkW5pNFJIAh0N 8IQuwt/R7tkbegLF X-Received: by 10.98.20.76 with SMTP id 73mr5849285pfu.70.1494849799067; Mon, 15 May 2017 05:03:19 -0700 (PDT) Received: from anup-HP-Compaq-8100-Elite-CMT-PC.dhcp.avagotech.net ([192.19.237.250]) by smtp.gmail.com with ESMTPSA id m12sm4776572pgn.30.2017.05.15.05.03.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 May 2017 05:03:18 -0700 (PDT) From: Anup Patel To: Rob Herring , Mark Rutland , Michael Turquette Subject: [PATCH v2 06/11] arm64: dts: Add NAND DT nodes for Stingray SOC Date: Mon, 15 May 2017 17:32:16 +0530 Message-Id: <1494849741-21294-7-git-send-email-anup.patel@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1494849741-21294-1-git-send-email-anup.patel@broadcom.com> References: <1494849741-21294-1-git-send-email-anup.patel@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170515_050340_306902_B46BCDA0 X-CRM114-Status: UNSURE ( 9.94 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Florian Fainelli , Sandeep Tripathy , Scott Branden , Jon Mason , Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Pramod Kumar , Abhishek Shah , Oza Pawandeep , Ray Jui , Srinath Mannam , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Pramod Kumar This patch adds NAND controller DT Node and NAND chip DT node for Stingray SOC and Stingray reference boards. Signed-off-by: Pramod Kumar Signed-off-by: Abhishek Shah Reviewed-by: Vikram Prakash Reviewed-by: Ray Jui Reviewed-by: Scott Branden --- arch/arm64/boot/dts/broadcom/stingray/bcm958742-base.dtsi | 15 +++++++++++++++ arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi | 13 +++++++++++++ 2 files changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/broadcom/stingray/bcm958742-base.dtsi b/arch/arm64/boot/dts/broadcom/stingray/bcm958742-base.dtsi index 0a427da..ce46224 100644 --- a/arch/arm64/boot/dts/broadcom/stingray/bcm958742-base.dtsi +++ b/arch/arm64/boot/dts/broadcom/stingray/bcm958742-base.dtsi @@ -56,3 +56,18 @@ &uart1 { status = "okay"; }; + +&nand { + status = "ok"; + nandcs@0 { + compatible = "brcm,nandcs"; + reg = <0>; + nand-ecc-mode = "hw"; + nand-ecc-strength = <8>; + nand-ecc-step-size = <512>; + nand-bus-width = <16>; + brcm,nand-oob-sector-size = <16>; + #address-cells = <1>; + #size-cells = <1>; + }; +}; diff --git a/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi b/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi index 24856e3..c5493e7 100644 --- a/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi +++ b/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi @@ -312,5 +312,18 @@ compatible = "brcm,iproc-rng200"; reg = <0x00220000 0x28>; }; + + nand: nand@68c60000 { + compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1"; + reg = <0x00360000 0x600>, + <0x0050a408 0x600>, + <0x00360f00 0x20>; + reg-names = "nand", "iproc-idm", "iproc-ext"; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + brcm,nand-has-wp; + status = "disabled"; + }; }; };