[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9cd03cb0-0924-3431-8fe3-4d5f4a27b1a1@linaro.org>
Date: Thu, 30 Mar 2023 09:28:59 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Brenda Streiff <brenda.streiff@...com>
Cc: Gratian Crisan <gratian.crisan@...com>,
Jason Smith <jason.smith@...com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Jiri Slaby <jirislaby@...nel.org>,
linux-serial@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH tty-next 1/2] dt-bindings: serial: ni,ni16650: add
bindings
On 29/03/2023 17:42, Brenda Streiff wrote:
> Add bindings for the NI 16550 UART.
>
> Signed-off-by: Brenda Streiff <brenda.streiff@...com>
> Cc: Gratian Crisan <gratian.crisan@...com>
> Cc: Jason Smith <jason.smith@...com>
> ---
> .../bindings/serial/ni,ni16550.yaml | 53 +++++++++++++++++++
> 1 file changed, 53 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/serial/ni,ni16550.yaml
>
> diff --git a/Documentation/devicetree/bindings/serial/ni,ni16550.yaml b/Documentation/devicetree/bindings/serial/ni,ni16550.yaml
> new file mode 100644
> index 000000000000..4ac1c96726f8
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/serial/ni,ni16550.yaml
> @@ -0,0 +1,53 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/serial/ni,ni16550.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: NI 16550 asynchronous serial interface (UART)
> +
> +maintainers:
> + - Brenda Streiff <brenda.streiff@...com>
> +
> +allOf:
> + - $ref: serial.yaml#
> +
> +properties:
> + compatible:
> + items:
You have one item, so remove item.
> + - enum:
> + - ni,ni16550
As Rob pointed out - you did not test it at all.
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + clock-frequency: true
> +
> + transceiver:
Missing description, type and maybe vendor prefix if this is not a
common property. Explain what's this.
> + items:
Not a list.
> + - enum:
> + - RS-232
> + - RS-485
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> + - clock-frequency
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + serial@...00000 {
Broken indentation.
Use 4 spaces for example indentation.
> + compatible = "ni,ni16550", "ns16550a";
> + reg = <0x80000000 0x8>;
> + interrupts = <0 30 4>;
> + clock-frequency = <58824000>;
> + transceiver = "RS-485";
> + };
> +
> +...
Best regards,
Krzysztof
Powered by blists - more mailing lists