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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: serial: brcm,bcm2835-aux-uart: convert to dtschema

Convert the Broadcom BCM2835 Auxiliary UART to newer DT schema.
Created DT schema based on the .txt file which had
`compatible`, `reg` `clocks` and `interrupts` as the
required properties. This binding is used by Broadcom BCM2835
SOC used in some Raspberry PI boards.
Changes from original file:
Implemented complete example which the original txt binding lacked.

Acked-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Pratik Farkase <pratik.farkase@wsisweden.com>
Link: https://lore.kernel.org/r/20240425162554.13576-1-pratik.farkase@wsisweden.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Pratik Farkase and committed by
Greg Kroah-Hartman
719910eb e3896be2

+46 -18
-18
Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-uart.txt
··· 1 - * BCM2835 AUXILIAR UART 2 - 3 - Required properties: 4 - 5 - - compatible: "brcm,bcm2835-aux-uart" 6 - - reg: The base address of the UART register bank. 7 - - interrupts: A single interrupt specifier. 8 - - clocks: Clock driving the hardware; used to figure out the baud rate 9 - divisor. 10 - 11 - Example: 12 - 13 - uart1: serial@7e215040 { 14 - compatible = "brcm,bcm2835-aux-uart"; 15 - reg = <0x7e215040 0x40>; 16 - interrupts = <1 29>; 17 - clocks = <&aux BCM2835_AUX_CLOCK_UART>; 18 - };
+46
Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-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,bcm2835-aux-uart.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: BCM2835 AUXILIARY UART 8 + 9 + maintainers: 10 + - Pratik Farkase <pratikfarkase94@gmail.com> 11 + - Florian Fainelli <florian.fainelli@broadcom.com> 12 + - Stefan Wahren <wahrenst@gmx.net> 13 + 14 + allOf: 15 + - $ref: serial.yaml 16 + 17 + properties: 18 + compatible: 19 + const: brcm,bcm2835-aux-uart 20 + 21 + reg: 22 + maxItems: 1 23 + 24 + interrupts: 25 + maxItems: 1 26 + 27 + clocks: 28 + maxItems: 1 29 + 30 + required: 31 + - compatible 32 + - reg 33 + - interrupts 34 + - clocks 35 + 36 + unevaluatedProperties: false 37 + 38 + examples: 39 + - | 40 + #include <dt-bindings/clock/bcm2835-aux.h> 41 + serial@7e215040 { 42 + compatible = "brcm,bcm2835-aux-uart"; 43 + reg = <0x7e215040 0x40>; 44 + interrupts = <1 29>; 45 + clocks = <&aux BCM2835_AUX_CLOCK_UART>; 46 + };