[PATCH v2 1/2] dt-bindings: mtd: partitions: Add binding for Sercomm parser
Krzysztof Kozlowski
krzysztof.kozlowski at linaro.org
Thu Apr 7 00:48:49 PDT 2022
On 06/04/2022 21:59, Mikhail Zhilkin wrote:
> Add YAML binding for Sercomm partition parser.
>
> Signed-off-by: Mikhail Zhilkin <csharper2005 at gmail.com>
> ---
> .../mtd/partitions/sercomm,sc-partitions.yaml | 70 +++++++++++++++++++
> 1 file changed, 70 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/mtd/partitions/sercomm,sc-partitions.yaml
>
(...)
> +
> +properties:
> + compatible:
> + const: sercomm,sc-partitions
> +
> + scpart-id:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description: Partition id in Sercomm partition map
Do you really need it? The reg should define the order, unless you
expect some incomplete partition list?
In any case this requires vendor prefix.
> +
> +required:
> + - compatible
Missing reg.
> + - scpart-id
> +
> +additionalProperties: false
Are you sure that you tested your bindings? You miss here address/size
cells and children, so you should have big fat warning.
Plus your DTS example has error and does not compile...
Best regards,
Krzysztof
More information about the linux-mtd
mailing list