Synopsys DesignWare ABP UART
Schema identifier ($id): "http://devicetree.org/schemas/serial/snps-dw-apb-uart.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):serial.yaml#
Rule 2 #
Shared schema rule (
$ref):rs485.yaml#
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereArray item rules (
items)Item 1
This rule adds no constraints.
Item 2
Exact value (
const):"renesas,rzn1-uart"Item 3
Exact value (
const):"snps,dw-apb-uart"When the condition matches (
then) #Properties and child nodes (
properties)
dmas— not listed as required here
false— Not permitted by this property rule.
dma-names— 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 hereRule for matching array elements (
contains)Exact value (
const):"starfive,jh7110-uart"When the condition matches (
then) #Properties and child nodes (
properties)
resets— not listed as required hereMinimum number of items (
minItems):2When the condition does not match (
else) #Properties and child nodes (
properties)
resets— not listed as required hereMaximum number of items (
maxItems):1
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"renesas,r9a06g032-uart"Item 2
Exact value (
const):"renesas,rzn1-uart"Item 3
Exact value (
const):"snps,dw-apb-uart"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"renesas,r9a06g032-uart"Item 2
Exact value (
const):"renesas,rzn1-uart"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"anlogic,dr1v90-uart","brcm,bcm11351-dw-apb-uart","brcm,bcm21664-dw-apb-uart","rockchip,px30-uart","rockchip,rk1808-uart","rockchip,rk3036-uart","rockchip,rk3066-uart","rockchip,rk3128-uart","rockchip,rk3188-uart","rockchip,rk3288-uart","rockchip,rk3308-uart","rockchip,rk3328-uart","rockchip,rk3368-uart","rockchip,rk3399-uart","rockchip,rk3506-uart","rockchip,rk3528-uart","rockchip,rk3562-uart","rockchip,rk3568-uart","rockchip,rk3576-uart","rockchip,rk3588-uart","rockchip,rv1108-uart","rockchip,rv1126-uart","sophgo,sg2044-uart","starfive,jh7100-hsuart","starfive,jh7100-uart","starfive,jh7110-uart"Item 2
Exact value (
const):"snps,dw-apb-uart"
Rule 4
Exact value (
const):"snps,dw-apb-uart"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
clock-frequency — not listed as required here #
true — No constraints added by this property rule.
clocks — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"baudclk"
Item 2
Exact value (
const):"apb_pclk"
dmas — not listed as required here #
Maximum number of items (maxItems): 2
dma-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"tx"
Item 2
Exact value (
const):"rx"
snps,uart-16550-compatible — not listed as required here #
reflects the value of UART_16550_COMPATIBLE configuration parameter. Define this if your UART does not implement the busy functionality.
Value type (type): "boolean"
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
reg-shift — not listed as required here #
true — No constraints added by this property rule.
reg-io-width — not listed as required here #
true — No constraints added by this property rule.
dcd-override — not listed as required here #
Override the DCD modem status signal. This signal will always be reported as active instead of being obtained from the modem status register. Define this if your serial port does not use this pin.
Value type (type): "boolean"
dsr-override — not listed as required here #
Override the DTS modem status signal. This signal will always be reported as active instead of being obtained from the modem status register. Define this if your serial port does not use this pin.
Value type (type): "boolean"
cts-override — not listed as required here #
Override the CTS modem status signal. This signal will always be reported as active instead of being obtained from the modem status register. Define this if your serial port does not use this pin.
Value type (type): "boolean"
ri-override — not listed as required here #
Override the RI modem status signal. This signal will always be reported as inactive instead of being obtained from the modem status register. Define this if your serial port does not use this pin.
Value type (type): "boolean"
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
serial@80230000 {
compatible = "snps,dw-apb-uart";
reg = <0x80230000 0x100>;
clock-frequency = <3686400>;
interrupts = <10>;
reg-shift = <2>;
reg-io-width = <4>;
dcd-override;
dsr-override;
cts-override;
ri-override;
};
// Example with one clock:
serial@80230000 {
compatible = "snps,dw-apb-uart";
reg = <0x80230000 0x100>;
clocks = <&baudclk>;
interrupts = <10>;
reg-shift = <2>;
reg-io-width = <4>;
};
// Example with two clocks:
serial@80230000 {
compatible = "snps,dw-apb-uart";
reg = <0x80230000 0x100>;
clocks = <&baudclk>, <&apb_pclk>;
clock-names = "baudclk", "apb_pclk";
interrupts = <10>;
reg-shift = <2>;
reg-io-width = <4>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0