Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: serial: qca,ar9330-uart: Convert to json-schema

Convert the Qualcomm Atheros AR9330 High-Speed UART
Device Tree binding documentation to json-schema.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Oleksij Rempel and committed by
Rob Herring
907dd453 59ffe4ed

+50 -31
-31
Documentation/devicetree/bindings/serial/qca,ar9330-uart.txt
··· 1 - * Qualcomm Atheros AR9330 High-Speed UART 2 - 3 - Required properties: 4 - 5 - - compatible: Must be "qca,ar9330-uart" 6 - 7 - - reg: Specifies the physical base address of the controller and 8 - the length of the memory mapped region. 9 - 10 - - interrupts: Specifies the interrupt source of the parent interrupt 11 - controller. The format of the interrupt specifier depends on the 12 - parent interrupt controller. 13 - 14 - Additional requirements: 15 - 16 - Each UART port must have an alias correctly numbered in "aliases" 17 - node. 18 - 19 - Example: 20 - 21 - aliases { 22 - serial0 = &uart0; 23 - }; 24 - 25 - uart0: uart@18020000 { 26 - compatible = "qca,ar9330-uart"; 27 - reg = <0x18020000 0x14>; 28 - 29 - interrupt-parent = <&intc>; 30 - interrupts = <3>; 31 - };
+50
Documentation/devicetree/bindings/serial/qca,ar9330-uart.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/serial/qca,ar9330-uart.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm Atheros AR9330 High-Speed UART 8 + 9 + maintainers: 10 + - Oleksij Rempel <o.rempel@pengutronix.de> 11 + 12 + allOf: 13 + - $ref: /schemas/serial.yaml# 14 + 15 + properties: 16 + compatible: 17 + const: qca,ar9330-uart 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + interrupts: 23 + maxItems: 1 24 + 25 + clocks: 26 + maxItems: 1 27 + 28 + clock-names: 29 + const: uart 30 + 31 + required: 32 + - compatible 33 + - reg 34 + - interrupts 35 + - clocks 36 + - clock-names 37 + 38 + additionalProperties: false 39 + 40 + examples: 41 + - | 42 + serial@18020000 { 43 + compatible = "qca,ar9330-uart"; 44 + reg = <0x18020000 0x14>; 45 + clocks = <&ref>; 46 + clock-names = "uart"; 47 + interrupt-parent = <&intc>; 48 + interrupts = <3>; 49 + }; 50 + ...