From patchwork Wed Aug 13 09:12:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 35332 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 965E2203C5 for ; Wed, 13 Aug 2014 09:12:37 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id eb12sf51900685oac.9 for ; Wed, 13 Aug 2014 02:12:37 -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=IGVK3tT9dmidA6Z4hSL/XykYuJbz47S/jVgGKu4zXoo=; b=ELkCN8e9F4UidmcMDvMwX5QFFXUqvRtCj1lRjdU5eJQEQs/FIzK/IUzRPn4Ry0tufG wwu2aYbJPHdAw1oqPHnFFELRiK3pcZloBrT23isC3xd1GNgjj2HTpdhrrTsxB3b9S+HA TR1HfvT/FvZQULZIoW78RfnXiZge9TTkfRPLMFMOJx3wkxLGf+4YzdJUKKzcnt6Ic2Jx Hqzp6vYd3xQfxKBDQeWoB49Hv8abr7d0pExu7ZnSJaXu4IJFW6DcVzAa9ED4f+PByJP/ yYDtHgoVBEOFguE63gJu4lcevp9KNaefHoEwE7j8WtUAyLmh06zJQcQC8qg7Ur/Vi5jM 8B0g== X-Gm-Message-State: ALoCoQm9PEeuFmgiglcp68c9+qFJsbKBgqQ7WF62JeISNtifPBOgZBzuPfD779LwVkX/vebS8Lq1 X-Received: by 10.42.97.138 with SMTP id o10mr2203974icn.33.1407921157198; Wed, 13 Aug 2014 02:12:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.91.40 with SMTP id y37ls520372qgd.2.gmail; Wed, 13 Aug 2014 02:12:37 -0700 (PDT) X-Received: by 10.53.7.204 with SMTP id de12mr2042721vdd.41.1407921157092; Wed, 13 Aug 2014 02:12:37 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id ve5si739548vcb.57.2014.08.13.02.12.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 13 Aug 2014 02:12:37 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id hy10so14642684vcb.18 for ; Wed, 13 Aug 2014 02:12:37 -0700 (PDT) X-Received: by 10.52.164.80 with SMTP id yo16mr2131837vdb.44.1407921157009; Wed, 13 Aug 2014 02:12:37 -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 tc5csp314585vcb; Wed, 13 Aug 2014 02:12:36 -0700 (PDT) X-Received: by 10.68.87.65 with SMTP id v1mr2992998pbz.118.1407921156041; Wed, 13 Aug 2014 02:12:36 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e4si1070453pda.33.2014.08.13.02.12.34 for ; Wed, 13 Aug 2014 02:12:36 -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 S1751911AbaHMJMb (ORCPT + 24 others); Wed, 13 Aug 2014 05:12:31 -0400 Received: from mail-ig0-f178.google.com ([209.85.213.178]:33790 "EHLO mail-ig0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750815AbaHMJM2 (ORCPT ); Wed, 13 Aug 2014 05:12:28 -0400 Received: by mail-ig0-f178.google.com with SMTP id uq10so1071080igb.11 for ; Wed, 13 Aug 2014 02:12:27 -0700 (PDT) X-Received: by 10.50.147.99 with SMTP id tj3mr5728925igb.38.1407921147383; Wed, 13 Aug 2014 02:12:27 -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 ga11sm6628023igd.8.2014.08.13.02.12.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Aug 2014 02:12:26 -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/8] ARM: sti: Add BCH (NAND Flash) Controller support for STiH41x (Orly) SoCs Date: Wed, 13 Aug 2014 10:12:02 +0100 Message-Id: <1407921127-8590-4-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1407921127-8590-1-git-send-email-lee.jones@linaro.org> References: <1407921127-8590-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.173 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. 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>; + }; + }; + }; + }; }; };