From patchwork Fri Jun 2 06:34:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 9761661 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 1628860365 for ; Fri, 2 Jun 2017 06:36:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B02528569 for ; Fri, 2 Jun 2017 06:36:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F39F52856D; Fri, 2 Jun 2017 06:36:54 +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=unavailable 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 8B7F728569 for ; Fri, 2 Jun 2017 06:36:54 +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=VV5Hc07zfalbmBqA2f32gSpIeThG1iB8iLBEFw0QXD4=; b=MwwXpSgi6Dr8cRwZYk2+fybEf6 WUnNaw0JG0OwcLDN0rKc4ZbLVIrVWM90bLIw3scexWYlccjWbvz+UEwiah+n/RcTmMSgyOBaamt9C BF6zxhuFoo42cYHb6jxii/QrhyPK1sJKxXHe8oployk2X/9Wa6rg43dmITwQnWCJIXKbzogS0eyI9 IZBY2bXn+HceARYA4jhaB4SxNv6x/mmDIvIzLFWDr6bmkAKDuw1I++dS6I58EQUnEKrW1J2W8ho22 crHklG9uEOp/daylMSThZAosCE89yROhSPPgFyTSCqdMiCPHng+VuWtS/C8UTjNQLP9j1U+QsJ3k9 o1XF/qSw==; 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 1dGgCa-0001ZM-H7; Fri, 02 Jun 2017 06:36:52 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dGgCA-00015w-Ug for linux-arm-kernel@bombadil.infradead.org; Fri, 02 Jun 2017 06:36:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=D73i8J47Zb/AgfSL80aVbBg8ounjYP06xfcOlLW+Y1U=; b=KTQqf9Ab6WwtLFksh6K3jqtTY v3NmUn1iY5s/0HUuEPPtZcmaOxsKD9NXvW23TFqEZP+pypDAecuRJlVjClvqsKNtdU+lGBTtrPATT 8Y3ckWbBMn71WI7ieS7GdA7QzT7ya2SQXbmVUmkfm+USw4bbr8//rMGBaTldeGXmWQXzR9CF7YAmn xpZErq6Rup3vuOWlHUNbdkpSuNhRD2Knm+hhaVn6zfWIBak9KRF6rzvttZfbKIDewN4pfyh6poE8m oFAhyV0ODsX9LiATyDs6HWdID2yLJQi3j4s6TTUYeXLRNPtF/0ubrSpGSlXotD2a7u6GsfNZ1mkdI PUlMIcMeQ==; Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dGgC9-0003zA-5s for linux-arm-kernel@lists.infradead.org; Fri, 02 Jun 2017 06:36:26 +0000 Received: by mail-wm0-x229.google.com with SMTP id b84so13606308wmh.0 for ; Thu, 01 Jun 2017 23:36:04 -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=D73i8J47Zb/AgfSL80aVbBg8ounjYP06xfcOlLW+Y1U=; b=P/DFtJBAlKx1z2IrHBLQRfSmWR48pc0JgMWlLAAgNNhyS3ZSqmowEmiAYRJgHTmbD1 IedQtQETa5hUPZ0z4fXBiO7XTVOnwI4JKoSA2hbYmAAbbtC97AB1x93O9RscJUiHshSu I75N7HUmhNolDTxJzqIoZyD8FSFZ6rlTq8YTo= 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=D73i8J47Zb/AgfSL80aVbBg8ounjYP06xfcOlLW+Y1U=; b=Up9MOoLittHvpk5/xYrqZ18CzXYK8QPPAaZNgGiT3l+Nf7HvxHiLv2ya+hnmGlO0pT Jn+oXXJj97/I8+xT5xrIT/40gYqpLraSK7A+lsXwUHO+BLqIJ88EstI6+9H+9BbmCEHs 49hqUEeimxaPjY0OiW830VGKCTitIgc8Ox3sjZWWxOOelwW0hj2reeDdpoy6brfULc4K l6tnm4s2p9R2hVvb4SfUANXAeyult7Ie9v+RppJ/RsnJeIXtumC/zxHre6iIJr+z99XV Iu5TB3pQXHIqCUjCV1AVROAGroriFpuWfQCVr1EftexhMD9E8kQBy9r6+NRyRl/4q/Gm dV8Q== X-Gm-Message-State: AODbwcCSsHroU1ISJh0Kzp2B3TwKMdoRzz42MSEMWQnCE/s9NnYAsyZj aw8zDes6irF1j26G X-Received: by 10.223.161.217 with SMTP id v25mr516793wrv.135.1496385362546; Thu, 01 Jun 2017 23:36:02 -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 p65sm1767170wmf.24.2017.06.01.23.35.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Jun 2017 23:36:02 -0700 (PDT) From: Anup Patel To: Rob Herring , Mark Rutland , Michael Turquette , Stephen Boyd Subject: [PATCH v6 06/11] arm64: dts: Add NAND DT nodes for Stingray SOC Date: Fri, 2 Jun 2017 12:04:30 +0530 Message-Id: <1496385275-6899-7-git-send-email-anup.patel@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1496385275-6899-1-git-send-email-anup.patel@broadcom.com> References: <1496385275-6899-1-git-send-email-anup.patel@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170602_023625_400793_60544360 X-CRM114-Status: UNSURE ( 9.99 ) 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 722e362..e8faa62 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@00360000 { + 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"; + }; }; };