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: 9740045 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 205F36034C for ; Mon, 22 May 2017 12:02:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 08900286D1 for ; Mon, 22 May 2017 12:02:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F188228705; Mon, 22 May 2017 12:02:14 +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=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C288C286D1 for ; Mon, 22 May 2017 12:02:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759246AbdEVMCM (ORCPT ); Mon, 22 May 2017 08:02:12 -0400 Received: from mail-pf0-f170.google.com ([209.85.192.170]:34469 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932714AbdEVL71 (ORCPT ); Mon, 22 May 2017 07:59:27 -0400 Received: by mail-pf0-f170.google.com with SMTP id 9so80397551pfj.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=J99rjLQkYHOnUCZ8rlu1I89AYuEYFRQsdGMA/zIPKEZFRQRzfwyop2C9y45Eq7G6wo KDHopHeLs8g3DU8g7Xz9PiOKBCASy6yffei015LDe6a7aqC9i7KRHMSpnurtVTtR2YVC kl2TirnJXDijDmaDCUYczChfDHl80XPbFsmorinAUZeisV+otL4+JSLuOV5gXJ4cEeNH EFRYReyPzeZCGFVqql8y4mPH9TdKloHVVmuDmk7Ey0e79D/ejX4qzIKkn0TATiPvnJpN 3Y1M09T8WE/mET4tJsrwXHpd8VV9zARU6TrA2gYwVKteBvsaWUVcFzdom6UXw4c7q3SV S6pg== X-Gm-Message-State: AODbwcAY9E4fK3GdeDn9sCVno0bgjwRXhN9z0sFISrNdqErSVO/iw9bC +fE6ni5+ww98rZPz 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 Cc: Catalin Marinas , Will Deacon , Ray Jui , Scott Branden , Jon Mason , Florian Fainelli , Oza Pawandeep , Srinath Mannam , Pramod Kumar , Sandeep Tripathy , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, Abhishek Shah 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> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.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"; + }; }; };