Re: [PATCH v2] dt-bindings: serial: mtk-uart: Convert txt to json-schema
From: Krzysztof Kozlowski <hidden>
Date: 2022-05-20 08:10:49
Also in:
linux-devicetree, linux-mediatek, linux-serial, lkml
On 19/05/2022 17:23, AngeloGioacchino Del Regno wrote:
quoted hunk ↗ jump to hunk
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.txtdiff --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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel