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

dt-bindings: serial: actions,owl-uart: convert to dtschema

Convert the Actions Semi Owl UART to newer DT schema.
Created DT schema based on the .txt file which had
`compatible`, `reg` and `interrupts` as the
required properties. This binding is used by Actions S500, S700
and S900 SoC. S700 and S900 use the same UART compatible string.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Kanak Shilledar <kanakshilledar111@protonmail.com>
Link: https://lore.kernel.org/r/20240405080235.11563-1-kanakshilledar@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Kanak Shilledar and committed by
Greg Kroah-Hartman
8c278ade 7fb96133

+48 -16
-16
Documentation/devicetree/bindings/serial/actions,owl-uart.txt
··· 1 - Actions Semi Owl UART 2 - 3 - Required properties: 4 - - compatible : "actions,s500-uart", "actions,owl-uart" for S500 5 - "actions,s900-uart", "actions,owl-uart" for S900 6 - - reg : Offset and length of the register set for the device. 7 - - interrupts : Should contain UART interrupt. 8 - 9 - 10 - Example: 11 - 12 - uart3: serial@b0126000 { 13 - compatible = "actions,s500-uart", "actions,owl-uart"; 14 - reg = <0xb0126000 0x1000>; 15 - interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; 16 - };
+48
Documentation/devicetree/bindings/serial/actions,owl-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/actions,owl-uart.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Actions Semi Owl UART 8 + 9 + maintainers: 10 + - Kanak Shilledar <kanakshilledar111@protonmail.com> 11 + 12 + allOf: 13 + - $ref: serial.yaml 14 + 15 + properties: 16 + compatible: 17 + items: 18 + - enum: 19 + - actions,s500-uart 20 + - actions,s900-uart 21 + - const: actions,owl-uart 22 + 23 + reg: 24 + maxItems: 1 25 + 26 + interrupts: 27 + maxItems: 1 28 + 29 + clocks: 30 + maxItems: 1 31 + 32 + required: 33 + - compatible 34 + - reg 35 + - interrupts 36 + 37 + unevaluatedProperties: false 38 + 39 + examples: 40 + - | 41 + #include <dt-bindings/clock/actions,s500-cmu.h> 42 + #include <dt-bindings/interrupt-controller/arm-gic.h> 43 + uart0: serial@b0126000 { 44 + compatible = "actions,s500-uart", "actions,owl-uart"; 45 + reg = <0xb0126000 0x1000>; 46 + clocks = <&cmu CLK_UART0>; 47 + interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; 48 + };