From patchwork Wed Feb 5 13:28:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: pekon gupta X-Patchwork-Id: 3586031 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2B889C02DC for ; Wed, 5 Feb 2014 13:28:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 51893201B4 for ; Wed, 5 Feb 2014 13:28:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4D8452017B for ; Wed, 5 Feb 2014 13:28:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751332AbaBEN2o (ORCPT ); Wed, 5 Feb 2014 08:28:44 -0500 Received: from bear.ext.ti.com ([192.94.94.41]:33057 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750985AbaBEN2n (ORCPT ); Wed, 5 Feb 2014 08:28:43 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s15DSg2X002977; Wed, 5 Feb 2014 07:28:42 -0600 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s15DSgRA015562; Wed, 5 Feb 2014 07:28:42 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.2.342.3; Wed, 5 Feb 2014 07:28:41 -0600 Received: from psplinux063.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s15DSa5d010180; Wed, 5 Feb 2014 07:28:40 -0600 From: Pekon Gupta To: Tony Lindgren , CC: linux-omap , Pekon Gupta Subject: [PATCH v1 2/5] ARM: dts: am335x-evm: NAND: update MTD partition table Date: Wed, 5 Feb 2014 18:58:31 +0530 Message-ID: <1391606914-9947-3-git-send-email-pekon@ti.com> X-Mailer: git-send-email 1.8.5.1.163.gd7aced9 In-Reply-To: <1391606914-9947-1-git-send-email-pekon@ti.com> References: <1391606914-9947-1-git-send-email-pekon@ti.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch has following updates, specific to MTD/NAND DT - update MTD NAND partition table to keep compatibility between different boards and mainline u-boot. - prefix 'NAND.' in names of NAND device MTD partitions to differentiate them from other MTD device partitions (like NOR and QSPI) Partition_Name Partition_Size /dev/mtd0 NAND.SPL 1 block-size* /dev/mtd1 NAND.SPL.backup1 1 block-size* /dev/mtd2 NAND.SPL.backup2 1 block-size* /dev/mtd3 NAND.SPL.backup3 1 block-size* /dev/mtd5 NAND.u-boot-spl-os 2 block-size* [for falcon boot] /dev/mtd4 NAND.u-boot 1 MB /dev/mtd6 NAND.u-boot-env 1 block-size* /dev/mtd7 NAND.u-boot-env.backup1 1 block-size* /dev/mtd8 NAND.kernel till 0xA00000 /dev/mtd9 NAND.file-system till end of device * am335x-evm uses NAND device with block-size=128KiB Signed-off-by: Pekon Gupta --- arch/arm/boot/dts/am335x-evm.dts | 48 +++++++++++++++++++++------------------- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts index 7e6c64e..17c3cc0 100644 --- a/arch/arm/boot/dts/am335x-evm.dts +++ b/arch/arm/boot/dts/am335x-evm.dts @@ -460,50 +460,52 @@ gpmc,wait-monitoring-ns = <0>; gpmc,wr-access-ns = <40>; gpmc,wr-data-mux-bus-ns = <0>; - - #address-cells = <1>; - #size-cells = <1>; elm_id = <&elm>; - /* MTD partition table */ + /* All SPL-* partitions are sized to minimal length + * which can be independently programmable. For + * NAND flash this is equal to size of erase-block */ + #address-cells = <1>; + #size-cells = <1>; partition@0 { - label = "SPL1"; + label = "NAND.SPL"; reg = <0x00000000 0x000020000>; }; - partition@1 { - label = "SPL2"; + label = "NAND.SPL.backup1"; reg = <0x00020000 0x00020000>; }; - partition@2 { - label = "SPL3"; + label = "NAND.SPL.backup2"; reg = <0x00040000 0x00020000>; }; - partition@3 { - label = "SPL4"; + label = "NAND.SPL.backup3"; reg = <0x00060000 0x00020000>; }; - partition@4 { - label = "U-boot"; - reg = <0x00080000 0x001e0000>; + label = "NAND.u-boot-spl"; + reg = <0x00080000 0x00040000>; }; - partition@5 { - label = "environment"; - reg = <0x00260000 0x00020000>; + label = "NAND.u-boot"; + reg = <0x000C0000 0x00100000>; }; - partition@6 { - label = "Kernel"; - reg = <0x00280000 0x00500000>; + label = "NAND.u-boot-env"; + reg = <0x001C0000 0x00020000>; }; - partition@7 { - label = "File-System"; - reg = <0x00780000 0x0F880000>; + label = "NAND.u-boot-env.backup1"; + reg = <0x001E0000 0x00020000>; + }; + partition@8 { + label = "NAND.kernel"; + reg = <0x00200000 0x00800000>; + }; + partition@9 { + label = "NAND.file-system"; + reg = <0x00A00000 0x0F600000>; }; }; };