Skip to content

Commit dd63820

Browse files
Ansuelmiquelraynal
authored andcommitted
dt-bindings: mtd: partitions: add additional example for qcom,smem-part
Add additional example for qcom,smem-part to declare a dynamic partition to provide NVMEM cells for the commonly ART partition provided by this parser. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20220622010628.30414-3-ansuelsmth@gmail.com
1 parent 118f3fb commit dd63820

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Documentation/devicetree/bindings/mtd/partitions/qcom,smem-part.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ properties:
1919
compatible:
2020
const: qcom,smem-part
2121

22+
patternProperties:
23+
"^partition-[0-9a-z]+$":
24+
$ref: partition.yaml#
25+
2226
required:
2327
- compatible
2428

@@ -31,3 +35,26 @@ examples:
3135
compatible = "qcom,smem-part";
3236
};
3337
};
38+
39+
- |
40+
/* Example declaring dynamic partition */
41+
flash {
42+
partitions {
43+
compatible = "qcom,smem-part";
44+
45+
partition-art {
46+
compatible = "nvmem-cells";
47+
#address-cells = <1>;
48+
#size-cells = <1>;
49+
label = "0:art";
50+
51+
macaddr_art_0: macaddr@0 {
52+
reg = <0x0 0x6>;
53+
};
54+
55+
macaddr_art_6: macaddr@6 {
56+
reg = <0x6 0x6>;
57+
};
58+
};
59+
};
60+
};

0 commit comments

Comments
 (0)