Re: [PATCH 1/3] spi: dt-bindings: nxp,sc18is602: convert binding to YAML
From: Rob Herring
Date: Tue Apr 23 2024 - 11:13:36 EST
On Tue, Apr 23, 2024 at 01:35:30PM +0200, Alvin Šipraga wrote:
> From: Alvin Šipraga <alsi@xxxxxxxxxxxxxxx>
>
> Convert the txt binding to YAML. In the example, the node name was
> changed from sc18is603@28 to spi@28 to conform with the standard
> $nodename property in the spi-controller.yaml schema.
>
> Make myself maintainer of this binding, since nobody else has
> volunteered themselves.
>
> Signed-off-by: Alvin Šipraga <alsi@xxxxxxxxxxxxxxx>
> ---
> .../devicetree/bindings/spi/nxp,sc18is602.yaml | 59 ++++++++++++++++++++++
> .../devicetree/bindings/spi/spi-sc18is602.txt | 23 ---------
> 2 files changed, 59 insertions(+), 23 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/spi/nxp,sc18is602.yaml b/Documentation/devicetree/bindings/spi/nxp,sc18is602.yaml
> new file mode 100644
> index 000000000000..5b34fdf6148a
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/spi/nxp,sc18is602.yaml
> @@ -0,0 +1,59 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/spi/nxp,sc18is602.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: NXP SC18IS602/602B/603 I2C to SPI bridge
> +
> +maintainers:
> + - Alvin Šipraga <alsi@xxxxxxxxxxxxxxx>
> +
> +properties:
> + compatible:
> + enum:
> + - nxp,sc18is602
> + - nxp,sc18is602b
> + - nxp,sc18is603
> +
> + reg:
> + maxItems: 1
> +
> + clock-frequency:
> + $ref: /schemas/types.yaml#/definitions/uint32
Drop. 'clock-frequency' already has a type. With that,
Reviewed-by: Rob Herring (Arm) <robh@xxxxxxxxxx>