ARM AMBA Primecell PL011 serial UART
Schema identifier ($id): "http://devicetree.org/schemas/serial/pl011.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Rob Herring <robh@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/arm/primecell.yaml#
Rule 2 #
Shared schema rule (
$ref):serial.yaml#
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Exact value (
const):"arm,pl011"
Item 2
Exact value (
const):"arm,primecell"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
pinctrl-0 — not listed as required here #
true — No constraints added by this property rule.
pinctrl-1 — not listed as required here #
true — No constraints added by this property rule.
pinctrl-names — not listed as required here #
When present, must have one state named "default", and may contain a second name named "sleep". The former state sets up pins for ordinary operation whereas the latter state will put the associated pins to sleep when the UART is unused
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"default"
Item 2
Exact value (
const):"sleep"
clocks — not listed as required here #
When present, the first clock listed must correspond to the clock named UARTCLK on the IP block, i.e. the clock to the external serial line, whereas the second clock must correspond to the PCLK clocking the internal logic of the block. Just listing one clock (the first one) is deprecated.
Maximum number of items (maxItems): 2
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"uartclk"
Item 2
Exact value (
const):"apb_pclk"
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 #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"rx"
Item 2
Exact value (
const):"tx"
auto-poll — not listed as required here #
Enables polling when using RX DMA.
Value type (type): "boolean"
poll-rate-ms — not listed as required here #
Rate at which poll occurs when auto-poll is set. default 100ms.
Default value (default): 100
poll-timeout-ms — not listed as required here #
Poll timeout when auto-poll is set, default 3000ms.
Default value (default): 3000
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
reg-io-width — not listed as required here #
The size (in bytes) of the IO accesses that should be performed on the device.
Required in this object (required): "compatible", "reg", "interrupts"
Property dependencies (dependencies) #
poll-rate-ms — applies when this property is present #
Also requires: "auto-poll"
poll-timeout-ms — applies when this property is present #
Also requires: "auto-poll"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
serial@80120000 {
compatible = "arm,pl011", "arm,primecell";
reg = <0x80120000 0x1000>;
interrupts = <0 11 4>;
dmas = <&dma 13 0 0x2>, <&dma 13 0 0x0>;
dma-names = "rx", "tx";
clocks = <&foo_clk>, <&bar_clk>;
clock-names = "uartclk", "apb_pclk";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 16: Need a custom select here or 'arm,primecell' will match on lots of nodes