From patchwork Tue May 16 11:30:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 9728933 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 3AC4660387 for ; Tue, 16 May 2017 11:33:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 28F4828A17 for ; Tue, 16 May 2017 11:33:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1DBC828A1B; Tue, 16 May 2017 11:33:10 +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 A3F7128A17 for ; Tue, 16 May 2017 11:33:09 +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=HMkb6F8I458pkBSj4q9uh2WOew Ug7qwN+Km44c8AiC3hIIjfBjusm/QZL2Qa3Yw8WIjIqLU9mtEJ6EsOqKmMfSGcPa12Nxo225IVSRi Qp8+iOd0SfWyyVYxVqVJrN9zuLKVmGzDKuIEym27kjH5Fa56bLiEZ1fT7LtHeZQct5Z9unVlgR1Dh s5OIV9X/AXW2ig+0DlQ3jis+JaeayUpmcFeLuKOeJpUUx5eKRfeXCBMldCcAAmF6mYN/yD9XABVfB /UQ0B2bi/FwoBwAqp2zjL+bHapgHsakZ/2fX/mjxibekj/f5uEAqfx9u1oxluQqUc//VCPV6UWJ80 NDqdHVzA==; 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 1dAaiy-0000Jh-Iv; Tue, 16 May 2017 11:33:08 +0000 Received: from mail-qt0-x22d.google.com ([2607:f8b0:400d:c0d::22d]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dAais-0000EO-2z for linux-arm-kernel@lists.infradead.org; Tue, 16 May 2017 11:33:06 +0000 Received: by mail-qt0-x22d.google.com with SMTP id c13so61787700qtc.1 for ; Tue, 16 May 2017 04:32:42 -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=GWp1FEmBOQaJh2fWcqjaGCMvRsH8yzZUYbTzDjAq9koGYbwpfoJLDMzbPuxTYS57G+ jF64zS55wfRg86pGbIyNv9Xtai1qeClBy0Hi/YNVc59nCLCeKotqRTTcmUXB4YFB1W6P yHhZ9+kYj0z68yo+fH8tXp5cSBARhwBHQqJ+w= 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=Fcw+vX2IYdn4WtWtVkGUlZuCyXXnfO9VtA5B54ne5ffNjLqwl7b5SYzXMmfRKhwNz2 WIE5q2uqlbiufZcn04ukA/Zk2GSUK53s9U0NBgMhpYXbj+CQ+IWRmL4md1+tiyZLJjXz i+FP5KpJONbd3QzRYeucpTCiCfvfHq6h0gEATwfB0dFFgdPf4mPrbgMVeeX7271o6fWu 35X3f+ebwNALqb+63XFy/d35Fzi+OLQ4Q2/4iJbZGg9FMQ+kn1wjs96gnKQeYzqzTzYL wGyNmQmFLjPHakeA7Ghzl8O0uSEGeLTHap+wxxbU6+CNOYYh84ZbmcYjmuVDxJGZSTpo UkdA== X-Gm-Message-State: AODbwcCww4ydz3ww6d+iRufJI4FaCVkJSCf2Ky6Cdd0WauIJGwShwZay 9Uw+vjdm4x0TjF/r X-Received: by 10.237.63.39 with SMTP id p36mr9199262qtf.81.1494934361161; Tue, 16 May 2017 04:32:41 -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 c142sm10417866qkb.10.2017.05.16.04.32.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 16 May 2017 04:32:40 -0700 (PDT) From: Anup Patel To: Rob Herring , Mark Rutland , Michael Turquette Subject: [PATCH v3 06/11] arm64: dts: Add NAND DT nodes for Stingray SOC Date: Tue, 16 May 2017 17:00:51 +0530 Message-Id: <1494934256-1350-7-git-send-email-anup.patel@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1494934256-1350-1-git-send-email-anup.patel@broadcom.com> References: <1494934256-1350-1-git-send-email-anup.patel@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170516_043302_287175_FE3AD45F X-CRM114-Status: UNSURE ( 9.76 ) 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"; + }; }; };