[PATCH mtd/next] dt-bindings: mtd: partitions: allow SafeLoader dynamic subpartitions

Rafał Miłecki zajec5 at gmail.com
Tue Nov 8 01:31:02 PST 2022


From: Rafał Miłecki <rafal at milecki.pl>

TP-Link SafeLoader partitioning means flash contains multiple partitions
defined in the on-flash table. Some of those partitions may have a
special meaning and may require describing additionally. Allow that.

Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
---
 .../mtd/partitions/tplink,safeloader-partitions.yaml      | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/Documentation/devicetree/bindings/mtd/partitions/tplink,safeloader-partitions.yaml b/Documentation/devicetree/bindings/mtd/partitions/tplink,safeloader-partitions.yaml
index 63e596aa0ca3..a24bbaac3a90 100644
--- a/Documentation/devicetree/bindings/mtd/partitions/tplink,safeloader-partitions.yaml
+++ b/Documentation/devicetree/bindings/mtd/partitions/tplink,safeloader-partitions.yaml
@@ -36,6 +36,10 @@ properties:
     description: Flash offset of partitions table
     $ref: /schemas/types.yaml#/definitions/uint32
 
+patternProperties:
+  "^partition-.*$":
+    $ref: partition.yaml#
+
 required:
   - partitions-table-offset
 
@@ -46,4 +50,8 @@ examples:
     partitions {
         compatible = "tplink,safeloader-partitions";
         partitions-table-offset = <0x100000>;
+
+        partition-file-system {
+                linux,rootfs;
+        };
     };
-- 
2.34.1




More information about the linux-mtd mailing list