Freescale i.MX Universal Asynchronous Receiver/Transmitter (UART)
Schema identifier ($id): "http://devicetree.org/schemas/serial/fsl-imx-uart.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Fabio Estevam <festevam@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"fsl,imx1-uart"
Rule 2
Exact value (
const):"fsl,imx21-uart"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx25-uart","fsl,imx27-uart","fsl,imx31-uart","fsl,imx35-uart","fsl,imx50-uart","fsl,imx51-uart","fsl,imx53-uart","fsl,imx6q-uart"Item 2
Exact value (
const):"fsl,imx21-uart"
Rule 4
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx6sl-uart","fsl,imx6sll-uart","fsl,imx6sx-uart"Item 2
Exact value (
const):"fsl,imx6q-uart"Item 3
Exact value (
const):"fsl,imx21-uart"
Rule 5
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx6ul-uart","fsl,imx7d-uart","fsl,imx8mm-uart","fsl,imx8mn-uart","fsl,imx8mp-uart","fsl,imx8mq-uart"Item 2
Exact value (
const):"fsl,imx6q-uart"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 2
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ipg"
Item 2
Exact value (
const):"per"
dmas — not listed as required here #
Array item rules (items) #
Item 1
DMA controller phandle and request line for RX
Item 2
DMA controller phandle and request line for TX
dma-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"rx"
Item 2
Exact value (
const):"tx"
interrupts — required here #
Array item rules (items) #
Item 1
UART RX Interrupt
Item 2
UART TX Interrupt
Item 3
UART RTS Interrupt
Minimum number of items (minItems): 1
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
fsl,dte-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Indicate the uart works in DTE mode. The uart works in DCE mode by default.
fsl,inverted-tx — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Indicate that the hardware attached to the peripheral inverts the signal transmitted, and that the peripheral should invert its output using the INVT registers.
fsl,inverted-rx — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Indicate that the hardware attached to the peripheral inverts the signal received, and that the peripheral should invert its input using the INVR registers.
fsl,dma-info — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
First cell contains the size of DMA buffer chunks, second cell contains the amount of chunks used for the device. Multiplying both numbers is the total size of memory used for receiving data. When not being configured the system will use default settings, which are sensible for most use cases. If you need low latency processing on slow connections this needs to be configured appropriately.
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):serial.yaml#
Rule 2 #
Shared schema rule (
$ref):rs485.yaml#
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"fsl,imx1-uart"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3When the condition does not match (
else) #Properties and child nodes (
properties)
interrupts— not listed as required hereMaximum number of items (
maxItems):1
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/imx5-clock.h>
aliases {
serial0 = &uart1;
};
uart1: serial@73fbc000 {
compatible = "fsl,imx51-uart", "fsl,imx21-uart";
reg = <0x73fbc000 0x4000>;
interrupts = <31>;
clocks = <&clks IMX5_CLK_UART1_IPG_GATE>,
<&clks IMX5_CLK_UART1_PER_GATE>;
clock-names = "ipg", "per";
dmas = <&sdma 18 4 1>, <&sdma 19 4 2>;
dma-names = "rx", "tx";
uart-has-rtscts;
fsl,dte-mode;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)