1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/mtd/partitions/qcom,smem-part.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm SMEM NAND flash partition parser
8
9maintainers:
10  - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
11
12description: |
13  The Qualcomm SoCs supporting the NAND controller interface features a Shared
14  Memory (SMEM) based partition table scheme. The maximum partitions supported
15  varies between partition table revisions. V3 supports maximum 16 partitions
16  and V4 supports 48 partitions.
17
18select: false
19
20properties:
21  compatible:
22    const: qcom,smem-part
23
24patternProperties:
25  "^partition-[0-9a-z]+$":
26    $ref: nvmem-cells.yaml
27
28required:
29  - compatible
30
31additionalProperties: false
32
33examples:
34  - |
35    flash {
36        partitions {
37            compatible = "qcom,smem-part";
38        };
39    };
40
41  - |
42    /* Example declaring dynamic partition */
43    flash {
44        partitions {
45            compatible = "qcom,smem-part";
46
47            partition-art {
48                compatible = "nvmem-cells";
49                #address-cells = <1>;
50                #size-cells = <1>;
51                label = "0:art";
52
53                macaddr_art_0: macaddr@0 {
54                    reg = <0x0 0x6>;
55                };
56
57                macaddr_art_6: macaddr@6 {
58                    reg = <0x6 0x6>;
59                };
60            };
61        };
62    };
63