From: Alexander Shiyan <eagle.alexander923@gmail.com>
To: linux-omap@vger.kernel.org
Cc: devicetree@vger.kernel.org,
"Benoît Cousson" <bcousson@baylibre.com>,
"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
"Alexander Shiyan" <eagle.alexander923@gmail.com>
Subject: [PATCH 2/2] ARM: dts: am335x-myirtech: Update NAND default partition table layout
Date: Wed, 27 Apr 2022 11:19:14 +0300 [thread overview]
Message-ID: <20220427081914.6773-2-eagle.alexander923@gmail.com> (raw)
In-Reply-To: <20220427081914.6773-1-eagle.alexander923@gmail.com>
This patch replaces the legacy partition table layout with a modern style.
As an additional change, we are reserving space for three backup MLO entries
and increasing space for the main bootloader.
Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>
---
arch/arm/boot/dts/am335x-myirtech-myc.dtsi | 3 ---
arch/arm/boot/dts/am335x-myirtech-myd.dts | 20 +++++++++++++-------
2 files changed, 13 insertions(+), 10 deletions(-)
diff --git a/arch/arm/boot/dts/am335x-myirtech-myc.dtsi b/arch/arm/boot/dts/am335x-myirtech-myc.dtsi
index d94e096983c7..6eea18b29355 100644
--- a/arch/arm/boot/dts/am335x-myirtech-myc.dtsi
+++ b/arch/arm/boot/dts/am335x-myirtech-myc.dtsi
@@ -131,9 +131,6 @@ nand0: nand@0,0 {
gpmc,wr-data-mux-bus-ns = <0>;
ti,elm-id = <&elm>;
ti,nand-ecc-opt = "bch8";
-
- #address-cells = <1>;
- #size-cells = <1>;
};
};
diff --git a/arch/arm/boot/dts/am335x-myirtech-myd.dts b/arch/arm/boot/dts/am335x-myirtech-myd.dts
index 1479fd95dec2..9d81d4cc6890 100644
--- a/arch/arm/boot/dts/am335x-myirtech-myd.dts
+++ b/arch/arm/boot/dts/am335x-myirtech-myd.dts
@@ -227,14 +227,20 @@ &mmc1 {
};
&nand0 {
- partition@0 {
- label = "MLO";
- reg = <0x00000 0x20000>;
- };
+ nand_parts: partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
- partition@20000 {
- label = "boot";
- reg = <0x20000 0x80000>;
+ partition@0 {
+ label = "MLO";
+ reg = <0x00000 0x20000>;
+ };
+
+ partition@80000 {
+ label = "boot";
+ reg = <0x80000 0x100000>;
+ };
};
};
--
2.32.0
next prev parent reply other threads:[~2022-04-27 8:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-27 8:19 [PATCH 1/2] ARM: dts: am335x-myirtech: Add an external clock oscillator for CPU RTC Alexander Shiyan
2022-04-27 8:19 ` Alexander Shiyan [this message]
2022-05-03 6:27 ` Tony Lindgren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220427081914.6773-2-eagle.alexander923@gmail.com \
--to=eagle.alexander923@gmail.com \
--cc=bcousson@baylibre.com \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-omap@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.