From patchwork Fri May 26 09:24:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 9750201 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 01F2F60246 for ; Fri, 26 May 2017 09:28:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EBDF728380 for ; Fri, 26 May 2017 09:28:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E0604283AF; Fri, 26 May 2017 09:28:16 +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 9638628380 for ; Fri, 26 May 2017 09:28:16 +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=LQNBcP5kEBrb3KYNf+DBGrvtPO ygbgg7+8CXMGGKHWkhmk6M0ZFEwGhZj4NfneuMPcaZHbhND1gjiL5rDNaVNTVZt3Ne838tvMwL8Bw 9WvpukqV4U8DFmUAAFphVssiz5aHHY1N66QjNKnI6UO2tDc3LZ/r2xnJp3VBQa3orYJ5yvaA8DRFH mWiHB1P/SbqBXtFHJcH2NipaqfTamn1sb2PumeP5TFg/PSWlNzzqMASYdr2V6Dy0JBbjN379dWFaf NO1o/zsDZ/Xnqvt23gfDDLbsSqsip3ISWyekLh+KtzKPVcBn22bhkS/cfx6jAcnZIvudnKA7lMAFC GcDTI8RA==; 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 1dEBXa-0004Nx-Pk; Fri, 26 May 2017 09:28:14 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dEBWa-0003HE-RK for linux-arm-kernel@bombadil.infradead.org; Fri, 26 May 2017 09:27:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=jXUBRMHh08rDB+9+jAgdbSXh0C+v1GH002Bb3e5TSVw=; b=ENmhUyeMZ1SYmpUOOMthwGaWt Jw4r0VkQVacjb8Z+Kxf6pYuvrD9f5HUFlA0mjgwvJ/cgTYmMxELMn/fRDTc/3C/TvfEaK6UBLQ8GB tWZzUfSD/WiNiUcLu4pjrAtWKoJg5W+g2/RcBtkpLIvudPHYNKXHbnBnNjYl+w63Enoiyp0KLKITZ j1ZPpb3MbRSLbSw37BqQNLzJIu4Vel5cn6IRg+9QDPZ60rJzhcsLbszqbX4PG77I65MOGZS6UDVux gOplH0U1xzXjHvepababAmJo7zikSalSzvo6lXXksMEcuZpxJK/aDoJQCGlXJzT27UayRjD0zQCwL xkKJr8KTQ==; Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dEBWV-0003Qv-R6 for linux-arm-kernel@lists.infradead.org; Fri, 26 May 2017 09:27:10 +0000 Received: by mail-wm0-x234.google.com with SMTP id 7so121699791wmo.1 for ; Fri, 26 May 2017 02:26:47 -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=BhziuDgHqTHPMiXJ32pg8tuickOzAf4ccC7Twr1D4gQJUMVZ+CYvTdxBtC08IDVZSd 5rajUzB/7OCF6OARjTqcLw6Sec86ClaZOAC//bW4Zvj5aaLS8rrZDbCoiS8voBymHRoN 7PK6HonP06vfTx8+AFhUGfgq4WAsvsPx0PFQo= 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=HGo56qpj/M61kANhYqz/wEFOp+CyJVbm5vNlI0coWoWZKsvNlUl2u5EJhNWKenoN0d hG6LyiLHyLS3Il2YtlDPUuL/gX7x7EvBaJdQ3CtwtYmIXkV3eidISHOofuTGMLk4TUjl Wx+Zsd42/8BbpoOjg9A1aN0TN8T1HtDniv+kUFVgAFZc14711G+wY+8IkvKdKfPCAUcE Kw/JyXGHOs7Rcy76fLADI63+INC9nPn/oCEBMjM8m45cX7YMybsSTNbQtTomfzj+Xa5M z72mWux7g1i/hVyn6mYhGCokYzCnkPtsJHnORO+9mCzPZ6ueEjlJLPB8aedM7mH7Wwbt 1zEQ== X-Gm-Message-State: AODbwcBGbrqi5xsa9LRmrhj9/aExQ4odgoyeYHEkpG8JGbhbdTTna9r9 yEcePk9c2zCZqOlz X-Received: by 10.223.150.120 with SMTP id c53mr850992wra.15.1495790806271; Fri, 26 May 2017 02:26:46 -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 v62sm5832259wmv.15.2017.05.26.02.26.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 May 2017 02:26:45 -0700 (PDT) From: Anup Patel To: Rob Herring , Mark Rutland , Michael Turquette , Stephen Boyd Subject: [PATCH v5 06/11] arm64: dts: Add NAND DT nodes for Stingray SOC Date: Fri, 26 May 2017 14:54:59 +0530 Message-Id: <1495790704-2438-7-git-send-email-anup.patel@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1495790704-2438-1-git-send-email-anup.patel@broadcom.com> References: <1495790704-2438-1-git-send-email-anup.patel@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170526_102708_032429_8AC2A588 X-CRM114-Status: GOOD ( 11.72 ) 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"; + }; }; };