STMicroelectronics STM32 USART
Schema identifier ($id): "http://devicetree.org/schemas/serial/st,stm32-uart.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Erwan Le Ray <erwan.leray@foss.st.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "st,stm32-uart", "st,stm32f7-uart", "st,stm32h7-uart"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
label — not listed as required here #
label associated with this uart
st,hw-flow-ctrl — not listed as required here #
enable hardware flow control (deprecated)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
rx-tx-swap — not listed as required here #
true — No constraints added by this property rule.
dmas — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
dma-names — not listed as required here #
Array item rules (items) #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
cts-gpios — not listed as required here #
true — No constraints added by this property rule.
rts-gpios — not listed as required here #
true — No constraints added by this property rule.
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
rx-threshold — not listed as required here #
If value is set to 1, RX FIFO threshold is disabled.
Allowed values (enum): 1, 2, 4, 8, 12, 14, 16
Default value (default): 8
tx-threshold — not listed as required here #
If value is set to 1, TX FIFO threshold is disabled.
Allowed values (enum): 1, 2, 4, 8, 12, 14, 16
Default value (default): 8
access-controllers — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):rs485.yaml#
Rule 2 #
Shared schema rule (
$ref):serial.yaml#
Rule 3 #
Condition (
if) #When the condition matches (
then) #Properties and child nodes (
properties)
cts-gpios— not listed as required here
false— Not permitted by this property rule.
rts-gpios— not listed as required here
false— Not permitted by this property rule.
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"st,stm32-uart"When the condition matches (
then) #Properties and child nodes (
properties)
rx-tx-swap— not listed as required here
false— Not permitted by this property rule.
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
rx-threshold— not listed as required here
false— Not permitted by this property rule.
tx-threshold— not listed as required here
false— Not permitted by this property rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/stm32mp1-clks.h>
usart1: serial@40011000 {
compatible = "st,stm32h7-uart";
reg = <0x40011000 0x400>;
interrupts = <37>;
clocks = <&rcc 0 164>;
dmas = <&dma2 2 4 0x414 0x0>,
<&dma2 7 4 0x414 0x0>;
dma-names = "rx", "tx";
rx-threshold = <4>;
tx-threshold = <4>;
rs485-rts-active-low;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 50: cts-gpios and rts-gpios properties can be used instead of 'uart-has-rtscts'
Line 51: or 'st,hw-flow-ctrl' (deprecated) for making use of any gpio pins for flow
Line 52: control instead of dedicated pins.
Line 53:
Line 54: It should be noted that both cts-gpios/rts-gpios and 'uart-has-rtscts' or
Line 55: 'st,hw-flow-ctrl' (deprecated) properties cannot co-exist in a design.