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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Rafał Miłecki <rafal@xxxxxxxxxx>

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@xxxxxxxxxx>
---
 .../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




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux