[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240809172106.25892-4-ansuelsmth@gmail.com>
Date: Fri, 9 Aug 2024 19:21:01 +0200
From: Christian Marangi <ansuelsmth@...il.com>
To: Ulf Hansson <ulf.hansson@...aro.org>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Miquel Raynal <miquel.raynal@...tlin.com>,
Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>,
Joern Engel <joern@...ybastard.org>,
Keith Busch <kbusch@...nel.org>,
Jens Axboe <axboe@...nel.dk>,
Christoph Hellwig <hch@....de>,
Sagi Grimberg <sagi@...mberg.me>,
Saravana Kannan <saravanak@...gle.com>,
Christian Marangi <ansuelsmth@...il.com>,
Thomas Bogendoerfer <tsbogend@...ha.franken.de>,
Wolfram Sang <wsa+renesas@...g-engineering.com>,
Florian Fainelli <f.fainelli@...il.com>,
linux-mmc@...r.kernel.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-mtd@...ts.infradead.org,
linux-nvme@...ts.infradead.org
Subject: [PATCH v4 3/7] dt-bindings: mmc: add property for partitions node in mmc-card node
Add property for defining partitions node in mmc-card node to define
partitions in DT by the use of the block2mtd module to use block
devices as MTD.
Signed-off-by: Christian Marangi <ansuelsmth@...il.com>
---
.../devicetree/bindings/mmc/mmc-card.yaml | 40 +++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/Documentation/devicetree/bindings/mmc/mmc-card.yaml b/Documentation/devicetree/bindings/mmc/mmc-card.yaml
index fd347126449a..0f32d24417bc 100644
--- a/Documentation/devicetree/bindings/mmc/mmc-card.yaml
+++ b/Documentation/devicetree/bindings/mmc/mmc-card.yaml
@@ -26,6 +26,9 @@ properties:
Use this to indicate that the mmc-card has a broken hpi
implementation, and that hpi should not be used.
+ partitions:
+ $ref: /schemas/mtd/partitions/partitions.yaml
+
required:
- compatible
- reg
@@ -45,4 +48,41 @@ examples:
};
};
+ mmc1 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ card@0 {
+ compatible = "mmc-card";
+ reg = <0>;
+ broken-hpi;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ bootloader@0 {
+ label = "bootloader";
+ reg = <0x00000000 0x00080000>;
+ };
+
+ tclinux@...00 {
+ label = "tclinux";
+ reg = <0x00080000 0x02800000>;
+ };
+
+ tclinux_slave@...0000 {
+ label = "tclinux_slave";
+ reg = <0x02880000 0x02800000>;
+ };
+
+ rootfs_data@...0000 {
+ label = "rootfs_data";
+ reg = <0x5080000 0x00800000>;
+ };
+ };
+ };
+ };
+
...
--
2.45.2
Powered by blists - more mailing lists