From patchwork Mon Aug 18 10:31:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 35485 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f71.google.com (mail-pa0-f71.google.com [209.85.220.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 27B0B20676 for ; Mon, 18 Aug 2014 10:34:55 +0000 (UTC) Received: by mail-pa0-f71.google.com with SMTP id et14sf43151700pad.6 for ; Mon, 18 Aug 2014 03:34:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:cc:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=ZzxBv5PacseQKTxLOwQeMxCakHgsDzRhKIU47BoF7i0=; b=bG9QCfjFBtcl1pW48bOp1CWSHF1sg1q6GkAF5EUHzJlOKmzqGqcymPYiWW2/KxC22d 15xjZCDklrBT23EGV3iaQh53eoZuPp3qLPZp8sXv8yzGBJpYVPmh4wbAi2v9fb3aTNvO +eeRWKwGA8i6igr9Jpz0KolvXQ04U2NEThmOU2MztLArLfZ2xYL+gcbBYIScXgVhBOIz ZEmDqueuoqzyJlEUIQXFVcpUWX9iLbAuifH+nk9AtMjeN92TDLuGwTr8QXcQldFc632S tB0uVVcdCLun9eIcA3vTGX/8JA5xRJZ08KTrSDavXu+IB4BJfSSDLznLrwDtvHvNk2A/ m1XQ== X-Gm-Message-State: ALoCoQmKj0RYdc0AS4LuIGbImgc4t0xEdUiyDAVbzLRuIv5qaBg0Zfy8IqE2q6tfTicOBGIpQiTq X-Received: by 10.66.218.162 with SMTP id ph2mr18244999pac.3.1408358086695; Mon, 18 Aug 2014 03:34:46 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.49.235 with SMTP id q98ls2207061qga.91.gmail; Mon, 18 Aug 2014 03:34:46 -0700 (PDT) X-Received: by 10.220.95.132 with SMTP id d4mr5269525vcn.33.1408358086583; Mon, 18 Aug 2014 03:34:46 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id ai1si7009132vdd.1.2014.08.18.03.34.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Aug 2014 03:34:46 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.178 as permitted sender) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id la4so5606837vcb.9 for ; Mon, 18 Aug 2014 03:34:46 -0700 (PDT) X-Received: by 10.52.128.8 with SMTP id nk8mr342721vdb.48.1408358086495; Mon, 18 Aug 2014 03:34:46 -0700 (PDT) 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.221.37.5 with SMTP id tc5csp141027vcb; Mon, 18 Aug 2014 03:34:46 -0700 (PDT) X-Received: by 10.66.240.140 with SMTP id wa12mr33516896pac.99.1408358085601; Mon, 18 Aug 2014 03:34:45 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id qg5si13516253pbb.32.2014.08.18.03.34.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Aug 2014 03:34:39 -0700 (PDT) Received-SPF: none (google.com: linux-mtd-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XJKFN-0000EH-TO; Mon, 18 Aug 2014 10:33:05 +0000 Received: from mail-ig0-f176.google.com ([209.85.213.176]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XJKEt-0008LI-1N for linux-mtd@lists.infradead.org; Mon, 18 Aug 2014 10:32:35 +0000 Received: by mail-ig0-f176.google.com with SMTP id hn18so7653390igb.3 for ; Mon, 18 Aug 2014 03:32:14 -0700 (PDT) X-Received: by 10.50.43.137 with SMTP id w9mr84849927igl.36.1408357934063; Mon, 18 Aug 2014 03:32:14 -0700 (PDT) Received: from localhost.localdomain (host109-148-113-192.range109-148.btcentralplus.com. [109.148.113.192]) by mx.google.com with ESMTPSA id w10sm42612498igr.18.2014.08.18.03.32.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Aug 2014 03:32:13 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/8] ARM: sti: Add BCH (NAND Flash) Controller support for STiH41x (Orly) SoCs Date: Mon, 18 Aug 2014 11:31:54 +0100 Message-Id: <1408357919-19793-4-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1408357919-19793-1-git-send-email-lee.jones@linaro.org> References: <1408357919-19793-1-git-send-email-lee.jones@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140818_033235_131832_CC74651B X-CRM114-Status: GOOD ( 10.81 ) X-Spam-Score: -1.4 (-) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-1.4 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.213.176 listed in list.dnswl.org] -0.7 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.213.176 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record Cc: pekon@pek-sem.com, computersforpeace@gmail.com, lee.jones@linaro.org, kernel@stlinux.com, linux-mtd@lists.infradead.org X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.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.220.178 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 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 | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/arch/arm/boot/dts/stih41x-b2020.dtsi b/arch/arm/boot/dts/stih41x-b2020.dtsi index d8a8429..553ee1f 100644 --- a/arch/arm/boot/dts/stih41x-b2020.dtsi +++ b/arch/arm/boot/dts/stih41x-b2020.dtsi @@ -74,5 +74,43 @@ 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) + */ + bank0 { + nand-on-flash-bbt; + st,nand-csn = <0>; + st,nand-timing-relax = <0>; + + partitions { + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + /* 8MB */ + label = "NANDFlash1"; + reg = <0x00000000 0x00800000>; + }; + + partition@800000 { + /* 1GB - 8MB */ + label = "NANDFlash2"; + reg = <0x00800000 0x1f000000>; + }; + }; + }; + }; }; };