1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: "http://devicetree.org/schemas/serial/serial.yaml#"
5 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
7 title: Serial Interface Generic DT Bindings
10 - Rob Herring <robh@kernel.org>
11 - Greg Kroah-Hartman <gregkh@linuxfoundation.org>
14 This document lists a set of generic properties for describing UARTs in a
15 device tree. Whether these properties apply to a particular device depends
16 on the DT bindings for the actual device.
18 Each enabled UART may have an optional "serialN" alias in the "aliases" node,
19 where N is the port number (non-negative decimal integer) as printed on the
20 label next to the physical port.
24 pattern: "^serial(@.*)?$"
29 Must contain a GPIO specifier, referring to the GPIO pin to be used as
35 Must contain a GPIO specifier, referring to the GPIO pin to be used as
41 Must contain a GPIO specifier, referring to the GPIO pin to be used as
47 Must contain a GPIO specifier, referring to the GPIO pin to be used as
53 Must contain a GPIO specifier, referring to the GPIO pin to be used as
59 Must contain a GPIO specifier, referring to the GPIO pin to be used as
63 $ref: /schemas/types.yaml#/definitions/flag
65 The presence of this property indicates that the UART has dedicated lines
66 for RTS/CTS hardware flow control, and that they are available for use
67 (wired and enabled by pinmux configuration). This depends on both the
68 UART hardware and the board wiring.
84 Serial attached devices shall be a child node of the host UART device
85 the slave device is attached to. It is expected that the attached
86 device is the only child node of the UART device. The slave device node
87 name shall reflect the generic type of device for the node.
92 Compatible of the device connected to the serial port.
95 $ref: /schemas/types.yaml#/definitions/uint32
97 The maximum baud rate the device operates at.
98 This should only be present if the maximum is less than the slave
99 device can support. For example, a particular board has some
100 signal quality issue or the host processor can't support higher
104 $ref: /schemas/types.yaml#/definitions/uint32
106 The current baud rate the device operates at.
107 This should only be present in case a driver has no chance to know
108 the baud rate of the slave device.
110 * device supports auto-baud
111 * the rate is setup by a bootloader and there is no way to reset
113 * device baud rate is configured by its firmware but there is no
114 way to request the actual settings
122 compatible = "ns16550a";
127 compatible = "brcm,bcm43341-bt";
128 interrupt-parent = <&gpio>;