All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V3 1/2] dt-bindings: mtd: partitions: u-boot: allow dynamic subpartitions
@ 2022-10-18 15:42 ` Rafał Miłecki
  0 siblings, 0 replies; 22+ messages in thread
From: Rafał Miłecki @ 2022-10-18 15:42 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski
  Cc: Srinivas Kandagatla, Miquel Raynal, Richard Weinberger,
	Vignesh Raghavendra, Tom Rini, Florian Fainelli, Joel Peshkin,
	William Zhang, Conor Dooley, devicetree, linux-mtd,
	linux-arm-kernel, u-boot, bcm-kernel-feedback-list, linux-kernel,
	Rafał Miłecki

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

U-Boot partition may contain subpartitions. For example Broadcom
includes environment data block in the middle of its U-Boot partition.

This allows describing Broadcom's U-Boot env data and will allow
referencing its NVMEM cell in the future.

Reg: 118f3fbe517f4 ("dt-bindings: mtd: partitions: support label/name only partition")
Ref: dd638202dfb65 ("dt-bindings: mtd: partitions: add additional example for qcom,smem-part")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
V3: Add this patch as pre-requirement for u-boot,env.yaml & brcm,env
---
 .../devicetree/bindings/mtd/partitions/u-boot.yaml         | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Documentation/devicetree/bindings/mtd/partitions/u-boot.yaml b/Documentation/devicetree/bindings/mtd/partitions/u-boot.yaml
index 8a88e7d16524..3c56efe48efd 100644
--- a/Documentation/devicetree/bindings/mtd/partitions/u-boot.yaml
+++ b/Documentation/devicetree/bindings/mtd/partitions/u-boot.yaml
@@ -27,6 +27,10 @@ properties:
           Broadcom stores environment variables inside a U-Boot partition. They
           can be identified by a custom header with magic value.
 
+patternProperties:
+  "^partition-.*$":
+    $ref: partition.yaml#
+
 unevaluatedProperties: false
 
 examples:
@@ -40,6 +44,9 @@ examples:
             compatible = "brcm,u-boot";
             reg = <0x0 0x100000>;
             label = "u-boot";
+
+            partition-u-boot-env {
+            };
         };
 
         partition@100000 {
-- 
2.34.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply related	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2022-10-31 14:46 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-18 15:42 [PATCH V3 1/2] dt-bindings: mtd: partitions: u-boot: allow dynamic subpartitions Rafał Miłecki
2022-10-18 15:42 ` Rafał Miłecki
2022-10-18 15:42 ` Rafał Miłecki
2022-10-18 15:42 ` [PATCH V3 2/2] dt-bindings: nvmem: u-boot,env: add Broadcom's variant binding Rafał Miłecki
2022-10-18 15:42   ` [PATCH V3 2/2] dt-bindings: nvmem: u-boot, env: " Rafał Miłecki
2022-10-18 15:42   ` [PATCH V3 2/2] dt-bindings: nvmem: u-boot,env: " Rafał Miłecki
2022-10-18 15:42   ` Rafał Miłecki
2022-10-31 14:45   ` Rob Herring
2022-10-31 14:45     ` Rob Herring
2022-10-31 14:45     ` Rob Herring
2022-10-18 15:50 ` [PATCH V3 1/2] dt-bindings: mtd: partitions: u-boot: allow dynamic subpartitions Conor Dooley
2022-10-18 15:50   ` Conor Dooley
2022-10-18 15:50   ` Conor Dooley
2022-10-18 15:55   ` Rafał Miłecki
2022-10-18 15:55     ` Rafał Miłecki
2022-10-18 15:55     ` Rafał Miłecki
2022-10-18 16:01     ` Conor Dooley
2022-10-18 16:01       ` Conor Dooley
2022-10-18 16:01       ` Conor Dooley
2022-10-31 14:45 ` Rob Herring
2022-10-31 14:45   ` Rob Herring
2022-10-31 14:45   ` Rob Herring

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.