Re: [PATCH v3 1/2] dt-bindings: nvmem: Add nxp,qoriq-efuse

From: Krzysztof Kozlowski
Date: Thu Mar 30 2023 - 04:00:48 EST


On 28/03/2023 10:27, Richard Alpe wrote:
> Add a schema for the NVMEM eFuse (SFP) layout on the NXP QorIQ SOC.
>
> Signed-off-by: Richard Alpe <richard@xxxxxxxx>
> ---
> .../bindings/nvmem/nxp,qoriq-efuse.yaml | 40 +++++++++++++++++++
> 1 file changed, 40 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/nvmem/nxp,qoriq-efuse.yaml

Filename matching compatible.
>
> diff --git a/Documentation/devicetree/bindings/nvmem/nxp,qoriq-efuse.yaml b/Documentation/devicetree/bindings/nvmem/nxp,qoriq-efuse.yaml
> new file mode 100644
> index 000000000000..e1d4d3849519
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/nvmem/nxp,qoriq-efuse.yaml
> @@ -0,0 +1,40 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/nvmem/nxp,qoriq-efuse.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: NXP QorIQ eFuse support
> +
> +maintainers:
> + - Richard Alpe <richard@xxxxxxxx>
> +
> +description: |

Do not need '|'.

> + Read support for the eFuses (SFP) on NXP QorIQ series SoC's.
> +
> +allOf:
> + - $ref: "nvmem.yaml#"

Drop quotes.

> +
> +properties:
> + compatible:
> + oneOf:

Drop oneOf, no need for it. You can put description as comment.

> + - description: Trust architecture 2.0
> + items:

One items, so no need for "items:"

> + - const: fsl,t1023-sfp
> +
> + reg:
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + efuse@e8000 {
> + compatible = "fsl,t1023-sfp";
> + reg = <0xe8000 0x1000>;
> + };
> +...

Best regards,
Krzysztof