From patchwork Thu May 1 09:56:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 29444 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f199.google.com (mail-pd0-f199.google.com [209.85.192.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 824EE203F3 for ; Thu, 1 May 2014 09:57:12 +0000 (UTC) Received: by mail-pd0-f199.google.com with SMTP id fp1sf12582179pdb.2 for ; Thu, 01 May 2014 02:57:10 -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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=bCQjbzg7kNGmsnLoLor/gRtv+vMKE9dkRx0dyZi4lr4=; b=SNPiQYX/7KL6AR513E4syJZzglthYApKg3F+auJgR0rKML4b67hq5sdH3hxPN6BbOc UtLQqrYnWUZvzi7KCJi5c/Rs3W4U0SqMqzr1sepCoLVHpORQn8oUINxcTVzcEXW0bWW9 QVgNjNfIz7lrmG5o8Ql9gMuTjkvbNvqgo7P8CjHaOraOJ9n/r8SlxxyZdQttx/dJukXs KEXc8ThpKeJ1nkg3xpL3ib6o7ju90eh7s49CR9K7WS3ikyQj6Vy7yNvpWWqAKsUyhWcA v2kt7RZB9TVm8/uSZoQru+DzcT1PdFCwpGJEv+pIBAjDMMVjb4dsf5tEVAMaYqhJAVdp Wvdg== X-Gm-Message-State: ALoCoQkgA4GYXBWbXlPwtBxRW+J2Tr46ePaDtKWtGHzOc2URRiVrk5WzxfrIDn8hIFMwZQzzQRSS X-Received: by 10.66.121.136 with SMTP id lk8mr5055097pab.34.1398938230505; Thu, 01 May 2014 02:57:10 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.50.197 with SMTP id s63ls984545qga.39.gmail; Thu, 01 May 2014 02:57:10 -0700 (PDT) X-Received: by 10.52.123.39 with SMTP id lx7mr6862206vdb.22.1398938230355; Thu, 01 May 2014 02:57:10 -0700 (PDT) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id vd8si5946523vdc.178.2014.05.01.02.57.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 01 May 2014 02:57:10 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.220.181; Received: by mail-vc0-f181.google.com with SMTP id hy4so3628752vcb.40 for ; Thu, 01 May 2014 02:57:10 -0700 (PDT) X-Received: by 10.52.228.134 with SMTP id si6mr2096133vdc.5.1398938230274; Thu, 01 May 2014 02:57:10 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp12879vcb; Thu, 1 May 2014 02:57:09 -0700 (PDT) X-Received: by 10.180.231.42 with SMTP id td10mr1591170wic.10.1398938229373; Thu, 01 May 2014 02:57:09 -0700 (PDT) Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com [209.85.212.175]) by mx.google.com with ESMTPS id ev6si10553889wjd.1.2014.05.01.02.57.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 01 May 2014 02:57:09 -0700 (PDT) Received-SPF: none (google.com: lee.jones@linaro.org does not designate permitted sender hosts) client-ip=209.85.212.175; Received: by mail-wi0-f175.google.com with SMTP id cc10so406181wib.14 for ; Thu, 01 May 2014 02:57:08 -0700 (PDT) X-Received: by 10.194.19.161 with SMTP id g1mr8207224wje.20.1398938228756; Thu, 01 May 2014 02:57:08 -0700 (PDT) Received: from lee--X1.home (host109-148-238-223.range109-148.btcentralplus.com. [109.148.238.223]) by mx.google.com with ESMTPSA id bj5sm2696494wib.3.2014.05.01.02.57.06 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 01 May 2014 02:57:07 -0700 (PDT) From: Lee Jones To: linux-kernel@vger.kernel.org Cc: computersforpeace@gmail.com, linux-mtd@lists.infradead.org, kernel@stlinux.com, Lee Jones Subject: [PATCH 01/47] ARM: sti: Add BCH (NAND Flash) Controller support for STiH41x (Orly) SoCs Date: Thu, 1 May 2014 10:56:08 +0100 Message-Id: <1398938214-17847-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1398938214-17847-1-git-send-email-lee.jones@linaro.org> References: <1398938214-17847-1-git-send-email-lee.jones@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: 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. Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih41x-b2020.dtsi | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm/boot/dts/stih41x-b2020.dtsi b/arch/arm/boot/dts/stih41x-b2020.dtsi index bc5818d..0fdeb44 100644 --- a/arch/arm/boot/dts/stih41x-b2020.dtsi +++ b/arch/arm/boot/dts/stih41x-b2020.dtsi @@ -52,5 +52,44 @@ pinctrl-0 = <&pinctrl_rgmii1>; }; + nandbch: nand-bch { + compatible = "st,nand-bch"; + reg = <0xfe901000 0x1000>, <0xfef00800 0x0800>; + reg-names = "nand_mem", "nand_dma"; + interrupts = <0 139 0x0>; + interrupt-names = "nand_irq"; + st,nand-banks = <&nand_banks>; + + status = "okay"; + }; + + nand_banks: nand-banks { + /* + * 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 = "NAND Flash 1"; + reg = <0x00000000 0x00800000>; + }; + partition@800000 { + /* 1GB - 8MB */ + label = "NAND Flash 2"; + reg = <0x00800000 0x1F000000>; + }; + }; + }; + }; }; };