mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-06 21:14:18 +00:00
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
This commit is contained in:
parent
118f3fbe51
commit
dd638202df
@ -19,6 +19,10 @@ properties:
|
|||||||
compatible:
|
compatible:
|
||||||
const: qcom,smem-part
|
const: qcom,smem-part
|
||||||
|
|
||||||
|
patternProperties:
|
||||||
|
"^partition-[0-9a-z]+$":
|
||||||
|
$ref: partition.yaml#
|
||||||
|
|
||||||
required:
|
required:
|
||||||
- compatible
|
- compatible
|
||||||
|
|
||||||
@ -31,3 +35,26 @@ examples:
|
|||||||
compatible = "qcom,smem-part";
|
compatible = "qcom,smem-part";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
- |
|
||||||
|
/* Example declaring dynamic partition */
|
||||||
|
flash {
|
||||||
|
partitions {
|
||||||
|
compatible = "qcom,smem-part";
|
||||||
|
|
||||||
|
partition-art {
|
||||||
|
compatible = "nvmem-cells";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
label = "0:art";
|
||||||
|
|
||||||
|
macaddr_art_0: macaddr@0 {
|
||||||
|
reg = <0x0 0x6>;
|
||||||
|
};
|
||||||
|
|
||||||
|
macaddr_art_6: macaddr@6 {
|
||||||
|
reg = <0x6 0x6>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user