From patchwork Mon May 22 11:58:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 9740035 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 BE4126034C for ; Mon, 22 May 2017 12:01:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A394C28641 for ; Mon, 22 May 2017 12:01:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9843828701; Mon, 22 May 2017 12:01:24 +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 990B328641 for ; Mon, 22 May 2017 12:01:23 +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=m7E5zEhJxVCw3ojXjIaTlnHRHTlNhIHTFhXbXbZMT+w=; b=ny1kgotr0bO2hJrUqsj8OYJhuR VuA3aCkrwQa8c2UEW1Fck63ESwCY88nGj0qa5FkxN0VlS4hQPvHXfso6qNXU/hfkbRfegS7yXK9qG 59VurPWMr+Gf+ZogrZsu0jzH829jND1KVSLTz9p3yC4tNjibrtYiP2eS+5DTFDTf/lw87bs76NHdA LazAzX9QnECYPFXIFWfsYc9GjgSVYeblMCFeA5Ciwe+R9GZh31oDrhwsBZfW8/dNIonjAr3y1wjIl fhL0jqnuXZHFwZEV5OIqTdHrMQmXEK6EVHHYm/QANWfO7oQctNNAub5OJMPfigyf7vsRyxF4kfn9j zUrB8iAQ==; 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 1dCm1a-0002wB-Ui; Mon, 22 May 2017 12:01:22 +0000 Received: from mail-pf0-x22d.google.com ([2607:f8b0:400e:c00::22d]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dCm03-0008HY-Oa for linux-arm-kernel@lists.infradead.org; Mon, 22 May 2017 11:59:51 +0000 Received: by mail-pf0-x22d.google.com with SMTP id 9so80397546pfj.1 for ; Mon, 22 May 2017 04:59:27 -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=jXUBRMHh08rDB+9+jAgdbSXh0C+v1GH002Bb3e5TSVw=; b=E3/sMhsBQ3rmOq06UFPe8UmNRvUOPaAKHTfUHQEzT8F5XNvIvhHaBEiuxShdZLOZN3 recRAPUZc+eA1eF8BAQj1Oifr4X5K+G2loQyy8kyy6JLfpxSU6snmmQTBrtNRHdFhlWB CaBv4M12oF8PYf9Rw+/D+uQhCSxhoSFxf6518= 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=jXUBRMHh08rDB+9+jAgdbSXh0C+v1GH002Bb3e5TSVw=; b=WCu3470aEmNvcvwk3KO1M0AyycJnvFau9D8guHy6n4YCN9qlAjIcOTy6PrQdYNsh6b bD0zqvDO4YqYd4N9xJixJjKYwzi2buQ6GG2Vv6Z3Vsrqk0oscEAEXSvMueofdljn+Vu5 15vmISl++YcWrIDCwq6ytK4+XostNlzP+y+nScduivMvj9A+/zETwI/zTxLSV+/5cBND hl/NNW0RsBJuaC3XjdmeEDMo1h/0TNFZTnLZeuwxzFE9L+qiWU9x9I+ouIpLQoHDc0gm USNl5rB7E3GwaphSb+FL0MmIdIEFRyuS5RcfVKi3L85+Jm5f12RBQnCJ1ytmzmS2W4g8 n2yA== X-Gm-Message-State: AODbwcCwvkWUuqi8XzbTmojSfyI7Xfk3n+t7jEnA4MvPUfQdMPVl7mhE d/9vMGVPzyMX2DkE X-Received: by 10.99.54.141 with SMTP id d135mr6577260pga.85.1495454366657; Mon, 22 May 2017 04:59:26 -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 m24sm28673653pfi.129.2017.05.22.04.59.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 May 2017 04:59:25 -0700 (PDT) From: Anup Patel To: Rob Herring , Mark Rutland , Michael Turquette , Stephen Boyd Subject: [PATCH v4 06/11] arm64: dts: Add NAND DT nodes for Stingray SOC Date: Mon, 22 May 2017 17:28:22 +0530 Message-Id: <1495454307-23464-7-git-send-email-anup.patel@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1495454307-23464-1-git-send-email-anup.patel@broadcom.com> References: <1495454307-23464-1-git-send-email-anup.patel@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170522_045948_017284_AE593267 X-CRM114-Status: UNSURE ( 9.62 ) 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 992944b..aad45a2 100644 --- a/arch/arm64/boot/dts/broadcom/stingray/bcm958742-base.dtsi +++ b/arch/arm64/boot/dts/broadcom/stingray/bcm958742-base.dtsi @@ -53,3 +53,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 6b690db..003f814 100644 --- a/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi +++ b/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi @@ -307,5 +307,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"; + }; }; };