From patchwork Sat May 6 11:54:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 9714659 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 6706960387 for ; Sat, 6 May 2017 11:57:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 74E201FF14 for ; Sat, 6 May 2017 11:57:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 694602022C; Sat, 6 May 2017 11:57:25 +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 DCF561FF14 for ; Sat, 6 May 2017 11:57:24 +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=58RPM/Sl49yUak1OKfNbfQ7tx0wNYfZ//6A1WJZ3tG4=; b=cXDOU63MdGFi+Cfigdrg3J8Agm XlNTT9yhvB1hkXOLOdYQon75kqoVXspZWO6UEgJRLdIPLWVRRng/G41qFELU5oWaG5GUmV0Z5306a H60G9RBh70hRJYGyZzD5/iTks05lUu8rc8HqTYVGgum3VhCFLJq+v2Z16Rgdk1Qx7D4zqFoz1Go/0 /fLmXBBNezLfzxB/czlHyb6LAVXp/Tkck5uj4WNMHUvJTPLtX7V01TvX6/4WdG5QsieH/elPpwAYe 8v4RVAYYWqOENYU6aCitFLWW2fV5sD0N9hApbTUn/u/fhZo13md5/svth/6Dajl/Ez27nMRJi//Si DRij2eMg==; 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 1d6yKx-00089A-NH; Sat, 06 May 2017 11:57:23 +0000 Received: from mail-wr0-x234.google.com ([2a00:1450:400c:c0c::234]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d6yKe-0007dZ-7Z for linux-arm-kernel@lists.infradead.org; Sat, 06 May 2017 11:57:09 +0000 Received: by mail-wr0-x234.google.com with SMTP id l9so15774200wre.1 for ; Sat, 06 May 2017 04:56:48 -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=o7+aHucXDZ3MwcIi5sfapfRm1St1k1kfIKS8SD4Ynm4=; b=QkhSbGmQXBoc0dvU9GmamunG+hSLqRet+XgEK7xNAJEk5Y6Q6LGYiSn5Za7cfKeDlU 5gJKC6jznA95rRs92WVKSdafANp2wjiIRyV+Ffyk4AwqPxLUoUmUToKqU/5VNuyNYmgk 96hK12SopkcBZIE4+0o9kvQM1rWlGrfl7ucp0= 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=o7+aHucXDZ3MwcIi5sfapfRm1St1k1kfIKS8SD4Ynm4=; b=oxurgAxfkzEKAZgGsRjx1z0pzz6m91t90EFNXS84XgEbOfoMaqBmD1oobAVG2OrEj4 VPlsX9G/00XbvBFWLaodofK2Gsan2GqaJF8ZIClu8oiaqxgA5eQUtZeLka3m5fbXWZFC +6YBQJwH0RpAOggxSg9Xcn+doyK86Zd1svTZuZwbh+6FlLrvp45jEJDoj7CHU53j/GpE M1vLXbZmtLF8I9/G1XACdBlWb2nLUngUy+CwEKyE9r7lu4x0QcaVtPUgvFD6vJ+VsAtZ 4VmUTrGeLM24x95KCKbuG2hUL7PPeLalcJAS1GaGCvNO6CLadB6xGHCfw6PESYaVSXD5 bKuQ== X-Gm-Message-State: AN3rC/4q0G91lIGNkcLJI+PC8yeJDOq5PLGlG0Z3ZP/8tUdNQAVU5q9g M4HyULjgf9PRXuBg X-Received: by 10.223.164.81 with SMTP id e17mr32615341wra.133.1494071807398; Sat, 06 May 2017 04:56:47 -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 8sm7775789wrb.55.2017.05.06.04.56.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 06 May 2017 04:56:47 -0700 (PDT) From: Anup Patel To: Rob Herring , Mark Rutland , Michael Turquette Subject: [PATCH 06/11] arm64: dts: Add NAND DT nodes for Stingray SOC Date: Sat, 6 May 2017 17:24:41 +0530 Message-Id: <1494071686-19098-7-git-send-email-anup.patel@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1494071686-19098-1-git-send-email-anup.patel@broadcom.com> References: <1494071686-19098-1-git-send-email-anup.patel@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170506_045704_572970_F9474123 X-CRM114-Status: UNSURE ( 9.73 ) 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, Abhishek Shah , Pramod Kumar , Srinath Mannam , linux-arm-kernel@lists.infradead.org, Ray Jui , bcm-kernel-feedback-list@broadcom.com, linux-clk@vger.kernel.org, Oza Pawandeep 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 e3a2a36..6014525 100644 --- a/arch/arm64/boot/dts/broadcom/stingray/bcm958742-base.dtsi +++ b/arch/arm64/boot/dts/broadcom/stingray/bcm958742-base.dtsi @@ -62,3 +62,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 c60de96..dbdafcb 100644 --- a/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi +++ b/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi @@ -305,5 +305,18 @@ compatible = "brcm,iproc-rng200"; reg = <0x68b20000 0x28>; }; + + nand: nand@68c60000 { + compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1"; + reg = <0x68c60000 0x600>, + <0x68e0a408 0x600>, + <0x68c60f00 0x20>; + reg-names = "nand", "iproc-idm", "iproc-ext"; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + brcm,nand-has-wp; + status = "disabled"; + }; }; };