15f327f08SManivannan Sadhasivam# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25f327f08SManivannan Sadhasivam%YAML 1.2
35f327f08SManivannan Sadhasivam---
45f327f08SManivannan Sadhasivam$id: http://devicetree.org/schemas/mtd/partitions/qcom,smem-part.yaml#
55f327f08SManivannan Sadhasivam$schema: http://devicetree.org/meta-schemas/core.yaml#
65f327f08SManivannan Sadhasivam
7*84e85359SKrzysztof Kozlowskititle: Qualcomm SMEM NAND flash partition parser
85f327f08SManivannan Sadhasivam
95f327f08SManivannan Sadhasivammaintainers:
105f327f08SManivannan Sadhasivam  - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
115f327f08SManivannan Sadhasivam
125f327f08SManivannan Sadhasivamdescription: |
135f327f08SManivannan Sadhasivam  The Qualcomm SoCs supporting the NAND controller interface features a Shared
145f327f08SManivannan Sadhasivam  Memory (SMEM) based partition table scheme. The maximum partitions supported
155f327f08SManivannan Sadhasivam  varies between partition table revisions. V3 supports maximum 16 partitions
165f327f08SManivannan Sadhasivam  and V4 supports 48 partitions.
175f327f08SManivannan Sadhasivam
18991088a6SMiquel Raynalselect: false
19991088a6SMiquel Raynal
205f327f08SManivannan Sadhasivamproperties:
215f327f08SManivannan Sadhasivam  compatible:
225f327f08SManivannan Sadhasivam    const: qcom,smem-part
235f327f08SManivannan Sadhasivam
24dd638202SChristian MarangipatternProperties:
25dd638202SChristian Marangi  "^partition-[0-9a-z]+$":
26e141ee82SMiquel Raynal    $ref: nvmem-cells.yaml
27dd638202SChristian Marangi
285f327f08SManivannan Sadhasivamrequired:
295f327f08SManivannan Sadhasivam  - compatible
305f327f08SManivannan Sadhasivam
315f327f08SManivannan SadhasivamadditionalProperties: false
325f327f08SManivannan Sadhasivam
335f327f08SManivannan Sadhasivamexamples:
345f327f08SManivannan Sadhasivam  - |
355f327f08SManivannan Sadhasivam    flash {
365f327f08SManivannan Sadhasivam        partitions {
375f327f08SManivannan Sadhasivam            compatible = "qcom,smem-part";
385f327f08SManivannan Sadhasivam        };
395f327f08SManivannan Sadhasivam    };
40dd638202SChristian Marangi
41dd638202SChristian Marangi  - |
42dd638202SChristian Marangi    /* Example declaring dynamic partition */
43dd638202SChristian Marangi    flash {
44dd638202SChristian Marangi        partitions {
45dd638202SChristian Marangi            compatible = "qcom,smem-part";
46dd638202SChristian Marangi
47dd638202SChristian Marangi            partition-art {
48dd638202SChristian Marangi                compatible = "nvmem-cells";
49dd638202SChristian Marangi                #address-cells = <1>;
50dd638202SChristian Marangi                #size-cells = <1>;
51dd638202SChristian Marangi                label = "0:art";
52dd638202SChristian Marangi
53dd638202SChristian Marangi                macaddr_art_0: macaddr@0 {
54dd638202SChristian Marangi                    reg = <0x0 0x6>;
55dd638202SChristian Marangi                };
56dd638202SChristian Marangi
57dd638202SChristian Marangi                macaddr_art_6: macaddr@6 {
58dd638202SChristian Marangi                    reg = <0x6 0x6>;
59dd638202SChristian Marangi                };
60dd638202SChristian Marangi            };
61dd638202SChristian Marangi        };
62dd638202SChristian Marangi    };
63