From patchwork Wed Aug 27 12:42:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 36094 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f69.google.com (mail-pa0-f69.google.com [209.85.220.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B7CD82054F for ; Wed, 27 Aug 2014 12:43:15 +0000 (UTC) Received: by mail-pa0-f69.google.com with SMTP id kx10sf994945pab.0 for ; Wed, 27 Aug 2014 05:43:14 -0700 (PDT) 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=817S8v3i6eic17OmtQU0i9aTuPv0ldtECkuegR2uReU=; b=Q2rUicG2LTjbTHbHx08ANQljVEj6ooDONwtybwH1SlrLexTi1cG8DxWbPDXiJ8YhRX PNlZ4MCMkXaVSgM9v4Bg3Mc8INO1JWKYjBvF1Y1zdnbMQJUi0vqD1xkenJ1QuAOVyAb3 WvzVjLELDe8eApl9afU4BHsVmJ2NocWz3w0ToU2leJPz5p7YFnecsssrFnNB9lLSgAco +UejBRJ7RWuit0zf0pKSnnpjwM6cE0+64IMslj+uu5YT84Slp42BRfEmxyAy7LTQi66/ wVikvHXC9fJlBZ7ioRn1Dy9S+ROlghTVt4aWJg7wCAhDEh8UEK6GQvVi7TcIifEvAb1G 43Jw== X-Gm-Message-State: ALoCoQlIqcglkwzBJsFKDDKq56QCQszuAUyhYwOKmybpYMvoVRb30gM0ciAYo288mJIQOajErWhJ X-Received: by 10.67.5.101 with SMTP id cl5mr19944565pad.41.1409143393861; Wed, 27 Aug 2014 05:43:13 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.98.212 with SMTP id o78ls127067qge.55.gmail; Wed, 27 Aug 2014 05:43:13 -0700 (PDT) X-Received: by 10.220.110.77 with SMTP id m13mr1045580vcp.35.1409143393741; Wed, 27 Aug 2014 05:43:13 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id cf5si150573vcb.46.2014.08.27.05.43.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 27 Aug 2014 05:43:13 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.180 as permitted sender) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id ij19so13729vcb.11 for ; Wed, 27 Aug 2014 05:43:13 -0700 (PDT) X-Received: by 10.220.159.204 with SMTP id k12mr28295495vcx.15.1409143393655; Wed, 27 Aug 2014 05:43:13 -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.45.67 with SMTP id uj3csp75606vcb; Wed, 27 Aug 2014 05:43:13 -0700 (PDT) X-Received: by 10.66.123.75 with SMTP id ly11mr7086101pab.82.1409143392694; Wed, 27 Aug 2014 05:43:12 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pv6si40448pac.239.2014.08.27.05.43.11 for ; Wed, 27 Aug 2014 05:43:12 -0700 (PDT) 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 S933897AbaH0Mmq (ORCPT + 26 others); Wed, 27 Aug 2014 08:42:46 -0400 Received: from mail-ig0-f177.google.com ([209.85.213.177]:50538 "EHLO mail-ig0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933757AbaH0Mmo (ORCPT ); Wed, 27 Aug 2014 08:42:44 -0400 Received: by mail-ig0-f177.google.com with SMTP id hn18so287066igb.10 for ; Wed, 27 Aug 2014 05:42:43 -0700 (PDT) X-Received: by 10.51.17.2 with SMTP id ga2mr29870902igd.2.1409143363456; Wed, 27 Aug 2014 05:42:43 -0700 (PDT) Received: from localhost.localdomain (host86-152-0-170.range86-152.btcentralplus.com. [86.152.0.170]) by mx.google.com with ESMTPSA id e1sm2721318igx.18.2014.08.27.05.42.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Aug 2014 05:42:42 -0700 (PDT) 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 3/9] ARM: sti: Add BCH (NAND Flash) Controller support for STiH41x (Orly) SoCs Date: Wed, 27 Aug 2014 13:42:18 +0100 Message-Id: <1409143344-22458-4-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1409143344-22458-1-git-send-email-lee.jones@linaro.org> References: <1409143344-22458-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.220.180 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 | 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>; + }; + }; + }; + }; }; };