Re: [PATCH] dt-bindings: gpio: gpio-zevio: convert to dtschema

From: Krzysztof Kozlowski
Date: Sat May 18 2024 - 16:38:21 EST


On 18/05/2024 20:21, Pratik Farkase wrote:
> Convert Zevio GPIO Controller from text to dtschema.
>
> Signed-off-by: Pratik Farkase <pratik.farkase@xxxxxxxxxxxxx>
> ---
> .../devicetree/bindings/gpio/gpio-zevio.txt | 16 --------
> .../devicetree/bindings/gpio/gpio-zevio.yaml | 41 +++++++++++++++++++

Use compatible as filename.

> 2 files changed, 41 insertions(+), 16 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-zevio.txt
> create mode 100644 Documentation/devicetree/bindings/gpio/gpio-zevio.yaml
>

..

> +
> + reg:
> + maxItems: 1
> +
> + "#gpio-cells":
> + const: 2
> +
> + gpio-controller: true
> +
> +required:
> + - compatible
> + - reg
> + - "#gpio-cells"
> + - gpio-controller
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + gpio@90000000 {

Misaligned/indented. Just use 4 space indentation for the example.



Best regards,
Krzysztof