Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 72A27C433F5 for ; Mon, 27 Dec 2021 10:46:59 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9EB3982FB4; Mon, 27 Dec 2021 11:46:56 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1640602017; bh=ZHw8Af2fqikjX84mjalG2lDEa9J2qX6941lZA+g5IGU=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=sNp0cLeRrE/hH4pDWm24mILYcvY8KtBauNs0WPNEkOQmFt+3XV84nGaF+UxFYvWkU FeiM1UBSIs3E48a/4pLE5HOZe3oZHZnI1FwG5NtNEAjxytHM6CrUlfZ4Ec62qb1D9l os+utfXFhCmjWjNn/uG4H7kRu51wrSIpcb80ou0IV5feF2U+fQyyufzjTf72DZgIN2 rmzqSN3gYQRZC8d9OnHHV7AvuPZdTU8QKAinuvpR/tsKWd3+VfdKzvznV7POmL9E6T GxrhYV61vxoif/SGwmjwJBmLIFTQqBBymcwsznxnZnBSZ/6W10oDmCvVL+CvLHtD3/ 0lQsUIw8y4tQA== Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 4FC5B82F65; Mon, 27 Dec 2021 11:46:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1640602014; bh=ZHw8Af2fqikjX84mjalG2lDEa9J2qX6941lZA+g5IGU=; h=From:To:Cc:Subject:Date:From; b=vH4WfcG9lLhCN0cFcWdeyota/Lo9pSVp45KC8ixxQZXxVq5zIkv1HGjZ/7ghEKKQ1 3+X6iorbi6JLnParAQQDocAYG4izgE0q1bolIZPsoU4NwCdj3QISoSVwFYhVAUFMeE y/HNoEaDK0ClAB7sfBuPz/ZEJWbXU5+wgMERJst76evy3kQQEvi2Wql0OhzuZ7SacK h9K56zbfWXiaAvOkw9FMPToA//R0ZcAzvGN/OCSUs+lWnYmcgCNYs+80LTKbAS7hTT Y3jbmJurIMLoSyCeDPsCvNokakkEQBjKOOLvAXw54pIZk3zL4geIaHM8sb6XjOmvMl DVQb6aGAa/mow== From: Lukasz Majewski To: u-boot@lists.denx.de, Stefano Babic , Tom Rini Cc: Lukasz Majewski , Fabio Estevam , "NXP i.MX U-Boot Team" Subject: [PATCH v2 1/4] xea: dts: Update the SPI-NOR flash memory partitions description Date: Mon, 27 Dec 2021 11:46:38 +0100 Message-Id: <20211227104641.428-1-lukma@denx.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Now the dts information corresponds to the one available in the kernel. With this patch applied the 'mtd list' shows proper names and offsets for MTD partitions. Signed-off-by: Lukasz Majewski --- (no changes since v1) arch/arm/dts/imx28-xea.dts | 55 +++++++++++++++++++++++--------------- 1 file changed, 34 insertions(+), 21 deletions(-) diff --git a/arch/arm/dts/imx28-xea.dts b/arch/arm/dts/imx28-xea.dts index de049042f8..34af6cf67f 100644 --- a/arch/arm/dts/imx28-xea.dts +++ b/arch/arm/dts/imx28-xea.dts @@ -86,27 +86,40 @@ spi-max-frequency = <40000000>; reg = <0>; - partition@0 { - label = "SPL (spi)"; - reg = <0x0 0x10000>; - read-only; - }; - partition@1 { - label = "u-boot (spi)"; - reg = <0x10000 0x70000>; - read-only; - }; - partition@2 { - label = "uboot-env (spi)"; - reg = <0x80000 0x20000>; - }; - partition@3 { - label = "kernel (spi)"; - reg = <0x100000 0x400000>; - }; - partition@4 { - label = "swupdate (spi)"; - reg = <0x50000 0x800000>; + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + partition@0 { + label = "SPL"; + reg = <0x0 0x10000>; + read-only; + }; + partition@10000 { + label = "u-boot"; + reg = <0x10000 0x70000>; + read-only; + }; + partition@80000 { + label = "uboot-env1"; + reg = <0x80000 0x10000>; + }; + partition@90000 { + label = "uboot-env2"; + reg = <0x90000 0x10000>; + }; + partition@A0000 { + label = "rescue"; + reg = <0xA0000 0xF40000>; + }; + partition@FE0000 { + label = "spl-boot-data1"; + reg = <0xFE0000 0x10000>; + }; + partition@FF0000 { + label = "spl-boot-data2"; + reg = <0xFF0000 0x10000>; + }; }; }; }; -- 2.20.1