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

dt-bindings: serial: brcm,bcm6345-uart: convert to the json-schema

This helps validating DTS files.

Redundant generic descriptions (e.g. "The base address of the UART
register bank") were dropped and periph_clk was dropped from example as
not required.

Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Link: https://lore.kernel.org/r/20210829131927.13682-1-zajec5@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Rafał Miłecki and committed by
Greg Kroah-Hartman
0f3b5773 6880fa6c

+47 -36
-36
Documentation/devicetree/bindings/serial/brcm,bcm6345-uart.txt
··· 1 - * BCM63xx UART 2 - 3 - Required properties: 4 - 5 - - compatible: "brcm,bcm6345-uart" 6 - 7 - - reg: The base address of the UART register bank. 8 - 9 - - interrupts: A single interrupt specifier. 10 - 11 - - clocks: Clock driving the hardware; used to figure out the baud rate 12 - divisor. 13 - 14 - 15 - Optional properties: 16 - 17 - - clock-names: Should be "refclk". 18 - 19 - Example: 20 - 21 - uart0: serial@14e00520 { 22 - compatible = "brcm,bcm6345-uart"; 23 - reg = <0x14e00520 0x18>; 24 - interrupt-parent = <&periph_intc>; 25 - interrupts = <2>; 26 - clocks = <&periph_clk>; 27 - clock-names = "refclk"; 28 - }; 29 - 30 - clocks { 31 - periph_clk: periph_clk@0 { 32 - compatible = "fixed-clock"; 33 - #clock-cells = <0>; 34 - clock-frequency = <54000000>; 35 - }; 36 - };
+47
Documentation/devicetree/bindings/serial/brcm,bcm6345-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/brcm,bcm6345-uart.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: BCM63xx UART 8 + 9 + maintainers: 10 + - Rafał Miłecki <rafal@milecki.pl> 11 + 12 + allOf: 13 + - $ref: serial.yaml# 14 + 15 + properties: 16 + compatible: 17 + const: brcm,bcm6345-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: refclk 30 + 31 + unevaluatedProperties: false 32 + 33 + required: 34 + - reg 35 + - interrupts 36 + - clocks 37 + 38 + examples: 39 + - | 40 + serial@14e00520 { 41 + compatible = "brcm,bcm6345-uart"; 42 + reg = <0x14e00520 0x18>; 43 + interrupt-parent = <&periph_intc>; 44 + interrupts = <2>; 45 + clocks = <&periph_clk>; 46 + clock-names = "refclk"; 47 + };