From patchwork Thu Mar 13 19:39:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 330105 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:770:15f::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 065792C00A4 for ; Fri, 14 Mar 2014 07:14:18 +1100 (EST) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WOBW4-0001Hx-Ql; Thu, 13 Mar 2014 19:42:10 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WOBVE-0004yD-EV; Thu, 13 Mar 2014 19:41:16 +0000 Received: from mail-yh0-f54.google.com ([209.85.213.54]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WOBU0-0004no-4N for linux-mtd@lists.infradead.org; Thu, 13 Mar 2014 19:40:07 +0000 Received: by mail-yh0-f54.google.com with SMTP id f73so1579909yha.27 for ; Thu, 13 Mar 2014 12:39:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=wxGLlep9Yi6Of75z+WK+02quTGO04NrSchKxZk2eyPU=; b=ESLh5HSrp+3iYetuMNQ8iU7RWaURK6r3VjLgxuzfCF0KJJUeYYhgS5CpNq7E9J3ryc U0kxf6XnOdLobh3eKOIuWMJZuQRJx26RcXsCQA+htXSlxbRLHs6/Ahv1iJbQaJFJ3p0K S3prEiiFvm+LF93VWjySFSwtT6SVtMRefAijLRXQiazJlnQ9NB+EZHIZ6KPEXrO9iyYq o6LP2SAKp67UZJlKt7Gs/6ydOjgcXYyJtIEpH5UGUgzTqz1YoYtGMGE+dX86oJUUfAx3 U33YWMmFHXdyh1Y7l4vGQ3JdaW2vchZj6vdCdbtZUQnIMFxYtCtuf4gds5PQAlxDw+Qv GVww== X-Gm-Message-State: ALoCoQlhzqxf2tXXNwNJ+o8eGVVBCx29jkmgTpt1qt2gj4LhBWjELY3jMN5t9NDtIXdZvajzFw4Y X-Received: by 10.236.7.47 with SMTP id 35mr4747360yho.23.1394739579060; Thu, 13 Mar 2014 12:39:39 -0700 (PDT) Received: from localhost.localdomain ([190.2.108.104]) by mx.google.com with ESMTPSA id t58sm8806635yho.20.2014.03.13.12.39.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 13 Mar 2014 12:39:38 -0700 (PDT) From: Ezequiel Garcia To: Mike Turquette , Jason Cooper , , , Subject: [PATCH v2 5/6] ARM: mvebu: Enable NAND controller in Armada 385-DB Date: Thu, 13 Mar 2014 16:39:01 -0300 Message-Id: <1394739542-30017-6-git-send-email-ezequiel@vanguardiasur.com.ar> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1394739542-30017-1-git-send-email-ezequiel@vanguardiasur.com.ar> References: <1394739542-30017-1-git-send-email-ezequiel@vanguardiasur.com.ar> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140313_154000_439222_53F9DB8B X-CRM114-Status: UNSURE ( 7.56 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.213.54 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Lior Amsalem , Thomas Petazzoni , sergei.shtylyov@cogentembedded.com, Tawfik Bayouk , Andrew Lunn , Seif Mazareeb , Ezequiel Garcia , Gregory Clement , Sebastian Hesselbarth X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Ezequiel Garcia The Armada 385-DB board has a NAND flash, so enable it in the devicetree and add the partitions as prepared in the factory images. Signed-off-by: Ezequiel Garcia --- arch/arm/boot/dts/armada-385-db.dts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/armada-385-db.dts b/arch/arm/boot/dts/armada-385-db.dts index 9a13642..edcf7ff 100644 --- a/arch/arm/boot/dts/armada-385-db.dts +++ b/arch/arm/boot/dts/armada-385-db.dts @@ -80,6 +80,27 @@ reg = <1>; }; }; + + flash: flash@d0000 { + status = "okay"; + num-cs = <1>; + marvell,nand-keep-config; + marvell,nand-enable-arbiter; + nand-on-flash-bbt; + + partition@0 { + label = "U-Boot"; + reg = <0 0x800000>; + }; + partition@800000 { + label = "Linux"; + reg = <0x800000 0x800000>; + }; + partition@1000000 { + label = "Filesystem"; + reg = <0x1000000 0x3f000000>; + }; + }; }; pcie-controller {