lkml.org 
[lkml]   [2024]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/3] spi: dt-bindings: nxp,sc18is602: convert binding to YAML
On Tue, Apr 23, 2024 at 01:35:30PM +0200, Alvin Šipraga wrote:
> From: Alvin Šipraga <alsi@bang-olufsen.dk>
>
> 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@bang-olufsen.dk>
> ---
> .../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@bang-olufsen.dk>
> +
> +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@kernel.org>

\
 
 \ /
  Last update: 2024-05-27 17:58    [W:0.054 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site