diff mbox series

[v3,1/4] dt-bindings: mtd: partitions: Add binding for Qcom SMEM parser

Message ID 20201119071308.9292-2-manivannan.sadhasivam@linaro.org
State Superseded
Headers show
Series [v3,1/4] dt-bindings: mtd: partitions: Add binding for Qcom SMEM parser | expand

Commit Message

Manivannan Sadhasivam Nov. 19, 2020, 7:13 a.m. UTC
Add YAML binding for Qualcomm Shared Memory (SMEM) Flash partition
parser.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>

---
 .../mtd/partitions/qcom,smem-part.yaml        | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mtd/partitions/qcom,smem-part.yaml

-- 
2.17.1


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

Comments

Rob Herring Dec. 7, 2020, 9:52 p.m. UTC | #1
On Thu, Nov 19, 2020 at 12:43:05PM +0530, Manivannan Sadhasivam wrote:
> Add YAML binding for Qualcomm Shared Memory (SMEM) Flash partition

> parser.

> 

> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>

> ---

>  .../mtd/partitions/qcom,smem-part.yaml        | 33 +++++++++++++++++++

>  1 file changed, 33 insertions(+)

>  create mode 100644 Documentation/devicetree/bindings/mtd/partitions/qcom,smem-part.yaml

> 

> diff --git a/Documentation/devicetree/bindings/mtd/partitions/qcom,smem-part.yaml b/Documentation/devicetree/bindings/mtd/partitions/qcom,smem-part.yaml

> new file mode 100644

> index 000000000000..cf3f8c1e035d

> --- /dev/null

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

> @@ -0,0 +1,33 @@

> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

> +%YAML 1.2

> +---

> +$id: http://devicetree.org/schemas/mtd/partitions/qcom,smem-part.yaml#

> +$schema: http://devicetree.org/meta-schemas/core.yaml#

> +

> +title: Qualcomm SMEM NAND flash partition parser binding

> +

> +maintainers:

> +  - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>

> +

> +description: |

> +  The Qualcomm SoCs supporting the NAND controller interface features a Shared

> +  Memory (SMEM) based partition table scheme. The maximum partitions supported

> +  varies between partition table revisions. V3 supports maximum 16 partitions

> +  and V4 supports 48 partitions.


V3 vs. V4 (and any other version for that matter) is discoverable?

> +

> +properties:

> +  compatible:

> +    const: qcom,smem-part

> +

> +required:

> +  - compatible

> +

> +additionalProperties: false

> +

> +examples:

> +  - |

> +    flash {

> +        partitions {

> +            compatible = "qcom,smem-part";

> +        };

> +    };

> -- 

> 2.17.1

> 


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
Manivannan Sadhasivam Dec. 11, 2020, 3:31 a.m. UTC | #2
On Mon, Dec 07, 2020 at 03:52:36PM -0600, Rob Herring wrote:
> On Thu, Nov 19, 2020 at 12:43:05PM +0530, Manivannan Sadhasivam wrote:

> > Add YAML binding for Qualcomm Shared Memory (SMEM) Flash partition

> > parser.

> > 

> > Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>

> > ---

> >  .../mtd/partitions/qcom,smem-part.yaml        | 33 +++++++++++++++++++

> >  1 file changed, 33 insertions(+)

> >  create mode 100644 Documentation/devicetree/bindings/mtd/partitions/qcom,smem-part.yaml

> > 

> > diff --git a/Documentation/devicetree/bindings/mtd/partitions/qcom,smem-part.yaml b/Documentation/devicetree/bindings/mtd/partitions/qcom,smem-part.yaml

> > new file mode 100644

> > index 000000000000..cf3f8c1e035d

> > --- /dev/null

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

> > @@ -0,0 +1,33 @@

> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

> > +%YAML 1.2

> > +---

> > +$id: http://devicetree.org/schemas/mtd/partitions/qcom,smem-part.yaml#

> > +$schema: http://devicetree.org/meta-schemas/core.yaml#

> > +

> > +title: Qualcomm SMEM NAND flash partition parser binding

> > +

> > +maintainers:

> > +  - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>

> > +

> > +description: |

> > +  The Qualcomm SoCs supporting the NAND controller interface features a Shared

> > +  Memory (SMEM) based partition table scheme. The maximum partitions supported

> > +  varies between partition table revisions. V3 supports maximum 16 partitions

> > +  and V4 supports 48 partitions.

> 

> V3 vs. V4 (and any other version for that matter) is discoverable?

> 


Yes, it is discoverable based on the partition header and we do that in
the parser.

Thanks,
Mani

> > +

> > +properties:

> > +  compatible:

> > +    const: qcom,smem-part

> > +

> > +required:

> > +  - compatible

> > +

> > +additionalProperties: false

> > +

> > +examples:

> > +  - |

> > +    flash {

> > +        partitions {

> > +            compatible = "qcom,smem-part";

> > +        };

> > +    };

> > -- 

> > 2.17.1

> > 


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
Rob Herring Dec. 11, 2020, 9:13 p.m. UTC | #3
On Fri, Dec 11, 2020 at 09:01:40AM +0530, Manivannan Sadhasivam wrote:
> On Mon, Dec 07, 2020 at 03:52:36PM -0600, Rob Herring wrote:

> > On Thu, Nov 19, 2020 at 12:43:05PM +0530, Manivannan Sadhasivam wrote:

> > > Add YAML binding for Qualcomm Shared Memory (SMEM) Flash partition

> > > parser.

> > > 

> > > Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>

> > > ---

> > >  .../mtd/partitions/qcom,smem-part.yaml        | 33 +++++++++++++++++++

> > >  1 file changed, 33 insertions(+)

> > >  create mode 100644 Documentation/devicetree/bindings/mtd/partitions/qcom,smem-part.yaml

> > > 

> > > diff --git a/Documentation/devicetree/bindings/mtd/partitions/qcom,smem-part.yaml b/Documentation/devicetree/bindings/mtd/partitions/qcom,smem-part.yaml

> > > new file mode 100644

> > > index 000000000000..cf3f8c1e035d

> > > --- /dev/null

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

> > > @@ -0,0 +1,33 @@

> > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

> > > +%YAML 1.2

> > > +---

> > > +$id: http://devicetree.org/schemas/mtd/partitions/qcom,smem-part.yaml#

> > > +$schema: http://devicetree.org/meta-schemas/core.yaml#

> > > +

> > > +title: Qualcomm SMEM NAND flash partition parser binding

> > > +

> > > +maintainers:

> > > +  - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>

> > > +

> > > +description: |

> > > +  The Qualcomm SoCs supporting the NAND controller interface features a Shared

> > > +  Memory (SMEM) based partition table scheme. The maximum partitions supported

> > > +  varies between partition table revisions. V3 supports maximum 16 partitions

> > > +  and V4 supports 48 partitions.

> > 

> > V3 vs. V4 (and any other version for that matter) is discoverable?

> > 

> 

> Yes, it is discoverable based on the partition header and we do that in

> the parser.


Okay,

Reviewed-by: Rob Herring <robh@kernel.org>


> 

> Thanks,

> Mani

> 

> > > +

> > > +properties:

> > > +  compatible:

> > > +    const: qcom,smem-part

> > > +

> > > +required:

> > > +  - compatible

> > > +

> > > +additionalProperties: false

> > > +

> > > +examples:

> > > +  - |

> > > +    flash {

> > > +        partitions {

> > > +            compatible = "qcom,smem-part";

> > > +        };

> > > +    };

> > > -- 

> > > 2.17.1

> > > 


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

Patch

diff --git a/Documentation/devicetree/bindings/mtd/partitions/qcom,smem-part.yaml b/Documentation/devicetree/bindings/mtd/partitions/qcom,smem-part.yaml
new file mode 100644
index 000000000000..cf3f8c1e035d
--- /dev/null
+++ b/Documentation/devicetree/bindings/mtd/partitions/qcom,smem-part.yaml
@@ -0,0 +1,33 @@ 
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mtd/partitions/qcom,smem-part.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm SMEM NAND flash partition parser binding
+
+maintainers:
+  - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
+
+description: |
+  The Qualcomm SoCs supporting the NAND controller interface features a Shared
+  Memory (SMEM) based partition table scheme. The maximum partitions supported
+  varies between partition table revisions. V3 supports maximum 16 partitions
+  and V4 supports 48 partitions.
+
+properties:
+  compatible:
+    const: qcom,smem-part
+
+required:
+  - compatible
+
+additionalProperties: false
+
+examples:
+  - |
+    flash {
+        partitions {
+            compatible = "qcom,smem-part";
+        };
+    };