From patchwork Wed Nov 5 16:59:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 40215 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f70.google.com (mail-ee0-f70.google.com [74.125.83.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E857C240A6 for ; Wed, 5 Nov 2014 17:03:41 +0000 (UTC) Received: by mail-ee0-f70.google.com with SMTP id b57sf1131723eek.5 for ; Wed, 05 Nov 2014 09:03:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=//2ms/ZdjBVyy2eBvx/hl8fVm+3zmWgjbXclNcMtTvM=; b=Gl0aP54EzKJxYjDd8qAewHfCyx5wZ3wrrrrxYg/y/edzXW/oNcmaKZqgiwN+aDDb0I Ayw7LXFt4Y+iOTdiNxXnZMag0oEg3RF3cfWIuptaxqGUW+/lEfjwq+UHtzLBQJk3eGYT h7yGh3gipjjK+mXyULWwS/bobsaRLm3PPTqrqXH11e8Atx/G/S9sfoyWTLrRu262uvqZ zyIC6/1wW2j8WWJdjjIHdOAY2quK5t5Ve32kAo0NSGQYMJT0TxzU9e60py9W5pNgfgdp cHdroAC44qy+mEipi6VRJOD8PfDGbJOh9tJFuW0HX1dcT+YMaPn/OHPfDn1y0DSGarB/ fe5w== X-Gm-Message-State: ALoCoQl7BYv8KaOVfikCXGBb1LaIJ4BLXb1Ti0nXRvPU6QCy1CQWTG3sZBuLCHwi1I9M1UY/A27r X-Received: by 10.152.30.66 with SMTP id q2mr1432002lah.2.1415207020981; Wed, 05 Nov 2014 09:03:40 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.121.72 with SMTP id li8ls1105240lab.101.gmail; Wed, 05 Nov 2014 09:03:40 -0800 (PST) X-Received: by 10.112.147.225 with SMTP id tn1mr69314702lbb.37.1415207020778; Wed, 05 Nov 2014 09:03:40 -0800 (PST) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id wr5si7304298lac.11.2014.11.05.09.03.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Nov 2014 09:03:40 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by mail-la0-f48.google.com with SMTP id gq15so1057887lab.7 for ; Wed, 05 Nov 2014 09:03:40 -0800 (PST) X-Received: by 10.112.202.104 with SMTP id kh8mr7475505lbc.46.1415207020439; Wed, 05 Nov 2014 09:03:40 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp316537lbc; Wed, 5 Nov 2014 09:03:39 -0800 (PST) X-Received: by 10.68.100.69 with SMTP id ew5mr59109104pbb.84.1415207018596; Wed, 05 Nov 2014 09:03:38 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id kp4si3445458pdb.195.2014.11.05.09.03.37 for ; Wed, 05 Nov 2014 09:03:38 -0800 (PST) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932376AbaKERDg (ORCPT + 25 others); Wed, 5 Nov 2014 12:03:36 -0500 Received: from mail-ig0-f170.google.com ([209.85.213.170]:54928 "EHLO mail-ig0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755440AbaKERA2 (ORCPT ); Wed, 5 Nov 2014 12:00:28 -0500 Received: by mail-ig0-f170.google.com with SMTP id h15so8648099igd.5 for ; Wed, 05 Nov 2014 09:00:27 -0800 (PST) X-Received: by 10.107.19.35 with SMTP id b35mr65198938ioj.48.1415206827252; Wed, 05 Nov 2014 09:00:27 -0800 (PST) Received: from localhost.localdomain (host86-129-140-59.range86-129.btcentralplus.com. [86.129.140.59]) by mx.google.com with ESMTPSA id rj6sm6663489igc.0.2014.11.05.09.00.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 05 Nov 2014 09:00:26 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: lee.jones@linaro.org, kernel@stlinux.com, computersforpeace@gmail.com, pekon@pek-sem.com, linux-mtd@lists.infradead.org Subject: [PATCH v4 03/11] ARM: sti: Add BCH (NAND Flash) Controller support for STiH41x (Orly) SoCs Date: Wed, 5 Nov 2014 16:59:45 +0000 Message-Id: <1415206793-25670-4-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1415206793-25670-1-git-send-email-lee.jones@linaro.org> References: <1415206793-25670-1-git-send-email-lee.jones@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Provide device information and flash layout for the NAND Micron MT29F8G08ABABAWP chip found on the STM B2020 Development Board. Reviewed-by: Pekon Gupta Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih41x-b2020.dtsi | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/stih41x-b2020.dtsi b/arch/arm/boot/dts/stih41x-b2020.dtsi index d8a8429..2ff5fe6 100644 --- a/arch/arm/boot/dts/stih41x-b2020.dtsi +++ b/arch/arm/boot/dts/stih41x-b2020.dtsi @@ -74,5 +74,40 @@ pinctrl-0 = <&pinctrl_rgmii1>; }; + + nand@fe901000 { + compatible = "st,nand-bch"; + reg = <0xfe901000 0x1000>, <0xfef00000 0x107c>; + reg-names = "emi_nand", "emiss"; + interrupts = <0 139 0x0>; + interrupt-names = "nand_irq"; + status = "disabled"; + + /* + * Micron MT29F8G08ABABAWP: + * - Size = 8Gib(1GiB); Page = 4096+224; Block = 512KiB + * - ECC = 4-bit/540B min + * - ONFI 2.1 (timing parameters retrieved during probe) + */ + bank { + #address-cells = <1>; + #size-cells = <1>; + st,nand-csn = <0>; + st,nand-timing-relax = <0>; + nand-on-flash-bbt; + + partition@0 { + /* 8MB */ + label = "NANDFlash1"; + reg = <0x00000000 0x00800000>; + }; + + partition@800000 { + /* 8MB - 1GB */ + label = "NANDFlash2"; + reg = <0x00800000 0x1f000000>; + }; + }; + }; }; };