diff mbox series

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

Message ID 20221108093102.8360-1-zajec5@gmail.com
State New
Headers show
Series [mtd/next] dt-bindings: mtd: partitions: allow SafeLoader dynamic subpartitions | expand

Commit Message

Rafał Miłecki Nov. 8, 2022, 9:31 a.m. UTC
From: Rafał Miłecki <rafal@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@milecki.pl>
---
 .../mtd/partitions/tplink,safeloader-partitions.yaml      | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Rob Herring (Arm) Nov. 16, 2022, 4:24 p.m. UTC | #1
On Tue, 08 Nov 2022 10:31:02 +0100, Rafał Miłecki wrote:
> From: Rafał Miłecki <rafal@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@milecki.pl>
> ---
>  .../mtd/partitions/tplink,safeloader-partitions.yaml      | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 

Reviewed-by: Rob Herring <robh@kernel.org>
diff mbox series

Patch

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;
+        };
     };