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: 9728923 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 D371C602DB for ; Tue, 16 May 2017 11:32:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C5B7028A14 for ; Tue, 16 May 2017 11:32:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BA5FC28A1B; Tue, 16 May 2017 11:32:48 +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 3947928A14 for ; Tue, 16 May 2017 11:32:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751878AbdEPLcp (ORCPT ); Tue, 16 May 2017 07:32:45 -0400 Received: from mail-qt0-f172.google.com ([209.85.216.172]:34185 "EHLO mail-qt0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752420AbdEPLcm (ORCPT ); Tue, 16 May 2017 07:32:42 -0400 Received: by mail-qt0-f172.google.com with SMTP id c13so61787702qtc.1 for ; Tue, 16 May 2017 04:32:41 -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=pKgc2yGRdV0MmttzTIHfyy/vVDfop0QXSrCl8wjYlnGBD14O/gKJJjcJ4LEjnyuqAp N4qoiBOYs5YKQZ8I5QCeo/4UUv7K2sPEP+AjAINR2XxzF1NXkp9L8EL2IXuj7Cm6I1Uc PbuCB+akFmJLHvdmduRbzkhT9zmy3T6fMkG8OnFp6Jt6sPG1VqE13dF6wQHE11WOhxVg 1wwIbDcFbAdo39uIPhf3tobpYiwGj1gS/6sJZGw1fpfdGezHYxnPhskUwrmkY2LQMMLI CO4xeAoysa+rFFRtaa48eap86g0PDal2Sn22MrgSPqqaGF9hpeMXqggamqVhI1deYfEd f/GA== X-Gm-Message-State: AODbwcCBITuYh9qpxQ4+a+CG8B1lceShKD0O0By+skHu/+RPPammnV69 7vu1hib+Rx6FnN4k 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 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 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> 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"; + }; }; };