From patchwork Sat Mar 28 20:47:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gabriel Dobato X-Patchwork-Id: 455705 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id D80751400DE for ; Sun, 29 Mar 2015 07:49:54 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=edN8eUjZ; dkim-adsp=none (unprotected policy); dkim-atps=neutral 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 1Ybxe7-000084-Eq; Sat, 28 Mar 2015 20:47:55 +0000 Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ybxe5-00006G-5n; Sat, 28 Mar 2015 20:47:53 +0000 Received: by wibgn9 with SMTP id gn9so74593869wib.1; Sat, 28 Mar 2015 13:47:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; bh=25R00A3+B1Htj373OwF+2FmefIeOPFOSiXsgvHtwP00=; b=edN8eUjZliGs6DJd6Fq9aZdWokMEx5PZo50yNqL3SL6xJvzx9xsJC/6cyT/KrqEdIn 4T135r8ZqXN/h0CDmBce76Jgl1YAOqJ6xcY2FtrU1sG2sjApZJHtfaLSSqsXP3IOp/ja c95Rl6Nhs8WWsAt4tFDgVF/912fwzat/TDhp22IY8gQbtbr7FjgjgWBcG81W3I+G2/qk PvTB7WhD05mzWhsJoSRKu1GwJbt76Y3r0sst7ZC7VJ2RHt0RXYymIsHVVR01AV/GNsNp sOzlPM/1F2JzZKGmJuJrB2ZfVbBMV3fFSEgnH3r9j0zVU0CGycIahdpbzCa5ynrenIOA jBAA== X-Received: by 10.194.200.68 with SMTP id jq4mr49349491wjc.58.1427575650435; Sat, 28 Mar 2015 13:47:30 -0700 (PDT) Received: from [192.168.1.3] (x590f9004.dyn.telefonica.de. [89.15.144.4]) by mx.google.com with ESMTPSA id 17sm8514952wjt.45.2015.03.28.13.47.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 28 Mar 2015 13:47:29 -0700 (PDT) Message-ID: <55171358.5070200@gmail.com> Date: Sat, 28 Mar 2015 21:47:20 +0100 From: Gabriel Dobato User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: linux-arm-kernel@lists.infradead.org, "linux-mtd@lists.infradead.org" Subject: Ask for help: ARM: mvebu: add NAND support for dove X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150328_134753_360679_F1993570 X-CRM114-Status: GOOD ( 12.57 ) X-Spam-Score: -0.8 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:400c:c05:0:0:0:22a listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (dobatog[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: moinejf@free.fr, Ezequiel Garcia , ezequiel.garcia@free-electrons.com, Sebastian Hesselbarth X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Hello, I am trying to set the Nand in a CM-510 Compulab based board (4.0-rc5). As pxa3xx-nand driver supports NFCv1 (PXA3xx) and NFCv2 (Armada 370/XP), I think that it should work more or less with Dove SoC (NFCv1) that is similar enough. Until now, I've only added the correspondent node in dove.dtsi and the partitions in dove-cm-a510.dts ( it should be updated in the patch series that Sebastian Hesselbarth submitted ) : --- arch/arm/boot/dts/dove-cm-a510.dts | 17 +++++++++++++++++ arch/arm/boot/dts/dove.dtsi | 16 ++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/dove-cm-a510.dts b/arch/arm/boot/dts/dove-cm-a510.dts index 50c0d69..36cf10d 100644 --- a/arch/arm/boot/dts/dove-cm-a510.dts +++ b/arch/arm/boot/dts/dove-cm-a510.dts @@ -36,3 +36,20 @@ &i2c0 { status = "okay"; }; + +&nand { + status = "okay"; + num-cs = <1>; + partition@0 { + label = "uImage"; + reg = <0x000000000000 0x000000400000>; + }; + partition@400000 { + label = "Rootfs"; + reg = <0x000000400000 0x00001FC00000>; + }; +}; + + + + diff --git a/arch/arm/boot/dts/dove.dtsi b/arch/arm/boot/dts/dove.dtsi index a5441d5..7e71f45 100644 --- a/arch/arm/boot/dts/dove.dtsi +++ b/arch/arm/boot/dts/dove.dtsi @@ -380,6 +380,22 @@ status = "disabled"; }; + nand: nand@c0000 { + compatible = "marvell,armada370-nand"; + #address-cells = <1>; + #size-cells = <1>; + reg= <0xc0000 0x60>; + interrupts = <3>; + clocks = <&core_clk 0>; + pinctrl-0 = <&pmx_nand>; + pinctrl-names = "default"; + marvell,nand-keep-config; + marvell,nand-enable-arbiter; + nand-on-flash-bbt; + }; + + + thermal: thermal-diode@d001c { compatible = "marvell,dove-thermal"; reg = <0xd001c 0x0c>, <0xd005c 0x08>;