lkml.org 
[lkml]   [2022]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v2] dt-bindings: serial: mtk-uart: Convert txt to json-schema
From
On 19/05/2022 17:23, AngeloGioacchino Del Regno wrote:
> Convert the mtk-uart documentation from freeform text to a json-schema.
>
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> ---
>
> v2: Changed to also accept just "mediatek,mt6577-uart" as compatible.
>
>
> .../bindings/serial/mediatek,uart.yaml | 121 ++++++++++++++++++
> .../devicetree/bindings/serial/mtk-uart.txt | 59 ---------
> 2 files changed, 121 insertions(+), 59 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/serial/mediatek,uart.yaml
> delete mode 100644 Documentation/devicetree/bindings/serial/mtk-uart.txt
>
> diff --git a/Documentation/devicetree/bindings/serial/mediatek,uart.yaml b/Documentation/devicetree/bindings/serial/mediatek,uart.yaml
> new file mode 100644
> index 000000000000..7929aa123487
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/serial/mediatek,uart.yaml
> @@ -0,0 +1,121 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/serial/mediatek,uart.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: MediaTek Universal Asynchronous Receiver/Transmitter (UART)
> +
> +maintainers:
> + - Matthias Brugger <matthias.bgg@gmail.com>
> +
> +allOf:
> + - $ref: serial.yaml#
> +
> +description: |+

No need for |+

> + The MediaTek UART is based on the basic 8250 UART and compatible
> + with 16550A, with enhancements for high speed baud rates and
> + support for DMA.
> +
> +properties:
> + compatible:
> + oneOf:
> + - items:

This is just single item, so no items.

> + - const: mediatek,mt6577-uart

Best regards,
Krzysztof

\
 
 \ /
  Last update: 2022-05-20 10:11    [W:0.485 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site