From patchwork Mon May 15 12:02:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 9726801 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 7DD67601E7 for ; Mon, 15 May 2017 12:04:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D17528498 for ; Mon, 15 May 2017 12:04:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 61FA42898C; Mon, 15 May 2017 12:04:53 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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 E875128498 for ; Mon, 15 May 2017 12:04:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758302AbdEOMDi (ORCPT ); Mon, 15 May 2017 08:03:38 -0400 Received: from mail-pg0-f41.google.com ([74.125.83.41]:34393 "EHLO mail-pg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933177AbdEOMDT (ORCPT ); Mon, 15 May 2017 08:03:19 -0400 Received: by mail-pg0-f41.google.com with SMTP id u28so59258967pgn.1 for ; Mon, 15 May 2017 05:03:19 -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=PYEHK/zfmLZbGBDMTswUMyAMqan4QvDZBaLdM4xUlyw=; b=XuYks9zAQoXvkKzPPLkNsHJT/r2NslS8koqsvM9NFjjtLfkKmKCxIRfsdfFS9kpXWd O4kOgFXGCUBr+BA96r1/cexqq8pAzOutBJK/9I5cfDqZ2DlYMwgNFWpW7yHW8Ak1r9Pk Z8gWd7ARYBP215q8ecIpkAEpAGe9IUz0//tW8= 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=PYEHK/zfmLZbGBDMTswUMyAMqan4QvDZBaLdM4xUlyw=; b=QYTKQVR7M+i3FLFEQoZ29iFTZ1zatWC08i1c4rSicdckrgdTHIFlrJhj47JX6t2KTd 4CRDfIvFXlbUyb5dZJSnXow457ckniV1IDiOsQOwIVSBdtCHpIxSWoul1Eb+RRDKSuJh yVJgzTrF2duX6xEf9xUlaQLDwtZz7+Gs9OdxmjpIFbipwwO1xCcfgjB0fX0Rs369CQND yEng+1Pp1wSID1KLi/G6uVJNwqaTS5U3rccL8RcsUKQKFpDW3BHxa4YUolWz79SK58p9 4C/hPklafAGa6PhmjhW+YhqB60lG6AD42PSrwdnbYzjtpgiLQ3hdIgsqolSBUbmmeimJ WybA== X-Gm-Message-State: AODbwcAIl9Z9nXSnqskP+9JFHiHtJwEiMf/oMvXa6B6r/nqIj6MKh8jF yv0tCwN9DWejovXL X-Received: by 10.98.20.76 with SMTP id 73mr5849285pfu.70.1494849799067; Mon, 15 May 2017 05:03:19 -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 m12sm4776572pgn.30.2017.05.15.05.03.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 May 2017 05:03:18 -0700 (PDT) From: Anup Patel To: Rob Herring , Mark Rutland , Michael Turquette 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 v2 06/11] arm64: dts: Add NAND DT nodes for Stingray SOC Date: Mon, 15 May 2017 17:32:16 +0530 Message-Id: <1494849741-21294-7-git-send-email-anup.patel@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1494849741-21294-1-git-send-email-anup.patel@broadcom.com> References: <1494849741-21294-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 0a427da..ce46224 100644 --- a/arch/arm64/boot/dts/broadcom/stingray/bcm958742-base.dtsi +++ b/arch/arm64/boot/dts/broadcom/stingray/bcm958742-base.dtsi @@ -56,3 +56,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 24856e3..c5493e7 100644 --- a/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi +++ b/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi @@ -312,5 +312,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"; + }; }; };