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: 9761641 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 397C860365 for ; Fri, 2 Jun 2017 06:36:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2FA082855A for ; Fri, 2 Jun 2017 06:36:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2450B2855C; Fri, 2 Jun 2017 06:36:12 +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=ham 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 A7A7628569 for ; Fri, 2 Jun 2017 06:36:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751280AbdFBGgK (ORCPT ); Fri, 2 Jun 2017 02:36:10 -0400 Received: from mail-wm0-f47.google.com ([74.125.82.47]:36049 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751305AbdFBGgJ (ORCPT ); Fri, 2 Jun 2017 02:36:09 -0400 Received: by mail-wm0-f47.google.com with SMTP id 7so13560174wmo.1 for ; Thu, 01 Jun 2017 23:36:03 -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=YYgS88ol1ykqS3AWZexSC8xDOoV+wcSDCWpnVQHpWxJcm/VkHAKvh2rdvwGEMuxDGJ h3VrXWRNHqGA68wiooWt5zTQ6yJTgwqYzLpbV9ARNO5pgqSu+8KM5h+YSQDOw3t3rlck J9ztpun8jgtQQhhM5KdNi5BNDRVU0YBXy6WabBM5Msm3X3RCi4sbWDu03IiZ6MEN7ySW 6sXK7BQWs2P10IVTCOUMwfE5cueh6m55cj6ZDeKp5PtREzioUJ1/b/PH3cI9IdGBEdid +MzOCmPyQOvNHdhJbWdGPSZeS3ESCmgs24PynqvAp+b/AsFsdA04nu9aCIv65zbC0R+3 z5lQ== X-Gm-Message-State: AODbwcDKnR1aqiyg9e4W4CquhmKjmTNMuRlTY/g+u5cdXxNci9om+9Mw IOM8DEp8u6zcpBqG 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 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 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> 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 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"; + }; }; };