From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Michael Kopfensteiner <michael.kopfensteiner@vahle.com>,
Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH 3/6] ARM: IMX8MP: var-dart-dt8mcustomboard.dts: use new-style partition binding
Date: Mon, 17 Feb 2025 19:08:30 +0100 [thread overview]
Message-ID: <20250217180833.3955657-4-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20250217180833.3955657-1-a.fatoum@pengutronix.de>
The fixed-partitions compatible is meant to be used for the partitions
container holding the individual partitions and not for every individual
partition.
This didn't lead to problems so far, because barebox ignored the
compatible and parsed them as legacy partitions.
Resolve the confusion by changing the description to use the new-style
binding correctly.
While at it, we also drop some leading zeroes for readability's sake.
Cc: Michael Kopfensteiner <michael.kopfensteiner@vahle.com>
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
.../dts/imx8mp-var-dart-dt8mcustomboard.dts | 23 ++++++++++---------
1 file changed, 12 insertions(+), 11 deletions(-)
diff --git a/arch/arm/dts/imx8mp-var-dart-dt8mcustomboard.dts b/arch/arm/dts/imx8mp-var-dart-dt8mcustomboard.dts
index ab4c5790cf15..f11218c904f5 100644
--- a/arch/arm/dts/imx8mp-var-dart-dt8mcustomboard.dts
+++ b/arch/arm/dts/imx8mp-var-dart-dt8mcustomboard.dts
@@ -356,9 +356,6 @@ &usb_dwc3_1 {
};
&usdhc2 {
- #address-cells = <2>;
- #size-cells = <1>;
-
pinctrl-names = "default", "state_100mhz", "state_200mhz";
pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>;
@@ -368,16 +365,20 @@ &usdhc2 {
bus-width = <4>;
status = "okay";
- partition@0 {
+ partitions {
compatible = "fixed-partitions";
- label = "barebox";
- reg = <0x00000000 0x00000000 0x000e0000>;
- };
+ #size-cells = <2>;
+ #address-cells = <1>;
- env_sd: partition@e0000 {
- compatible = "fixed-partitions";
- label = "barebox-environment";
- reg = <0x00000000 0x000e0000 0x00020000>;
+ partition@0 {
+ label = "barebox";
+ reg = <0x0 0x0 0xe0000>;
+ };
+
+ env_sd: partition@e0000 {
+ label = "barebox-environment";
+ reg = <0x0 0xe0000 0x20000>;
+ };
};
};
--
2.39.5
next prev parent reply other threads:[~2025-02-17 18:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-17 18:08 [PATCH 0/6] of: partition: add Linux CONFIG_OF_PARTITION-compatible adaptive fixup mode Ahmad Fatoum
2025-02-17 18:08 ` [PATCH 1/6] of: factor out of_node_is_fixed_partitions check Ahmad Fatoum
2025-02-17 18:08 ` [PATCH 2/6] of: of_path: support barebox,fixed-partitions Ahmad Fatoum
2025-02-17 18:08 ` Ahmad Fatoum [this message]
2025-02-17 18:08 ` [PATCH 4/6] ARM: dts: prefix all non-MTD fixed-partitions with barebox, Ahmad Fatoum
2025-02-17 18:08 ` [PATCH 5/6] of: partition: refactor of_partition_binding checks into switch Ahmad Fatoum
2025-02-17 18:08 ` [PATCH 6/6] of: partition: add Linux CONFIG_OF_PARTITION-compatible adaptive fixup mode Ahmad Fatoum
2025-02-17 19:25 ` [PATCH 0/6] " Marco Felsch
2025-02-17 19:57 ` Ahmad Fatoum
2025-02-20 8:26 ` Sascha Hauer
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=20250217180833.3955657-4-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=michael.kopfensteiner@vahle.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox