[PATCH v2] dt-bindings: serial: mtk-uart: Convert txt to json-schema

Krzysztof Kozlowski krzysztof.kozlowski at linaro.org
Fri May 20 01:10:35 PDT 2022


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 at 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 at 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



More information about the linux-arm-kernel mailing list