NXP SC16IS7xx Advanced Universal Asynchronous Receiver-Transmitter (UART)
Schema identifier ($id): "http://devicetree.org/schemas/serial/nxp,sc16is7xx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Hugo Villeneuve <hvilleneuve@dimonoff.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "nxp,sc16is740", "nxp,sc16is741", "nxp,sc16is750", "nxp,sc16is752", "nxp,sc16is760", "nxp,sc16is762"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
When missing, device driver uses polling instead.
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
clock-frequency — not listed as required here #
When there is no clock provider visible to the platform, this is the source crystal or external clock frequency for the IC in Hz.
Minimum value (minimum): 1
Maximum value (maximum): 80000000
gpio-controller — not listed as required here #
true — No constraints added by this property rule.
#gpio-cells — not listed as required here #
Exact value (const): 2
gpio-line-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
irda-mode-ports — not listed as required here #
An array that lists the indices of the port that should operate in IrDA mode: 0: port A 1: port B
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items) #
Minimum value (
minimum):0Maximum value (
maximum):1
nxp,modem-control-line-ports — not listed as required here #
An array that lists the indices of the port that should have shared GPIO lines configured as modem control lines: 0: port A 1: port B
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items) #
Minimum value (
minimum):0Maximum value (
maximum):1
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/serial/serial.yaml#
Rule 3 #
Shared schema rule (
$ref):/schemas/serial/rs485.yaml#
Exactly one of these rules must match (oneOf) #
Rule 1 #
Rule 2 #
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
serial@51 {
compatible = "nxp,sc16is750";
reg = <0x51>;
clocks = <&clk20m>;
interrupt-parent = <&gpio3>;
interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
gpio-controller;
#gpio-cells = <2>;
};
serial@53 {
compatible = "nxp,sc16is752";
reg = <0x53>;
clocks = <&clk20m>;
interrupt-parent = <&gpio3>;
interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
nxp,modem-control-line-ports = <1>; /* Port 1 as modem control lines */
gpio-controller; /* Port 0 as GPIOs */
#gpio-cells = <2>;
};
serial@54 {
compatible = "nxp,sc16is752";
reg = <0x54>;
clocks = <&clk20m>;
reset-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
interrupt-parent = <&gpio3>;
interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
nxp,modem-control-line-ports = <0 1>; /* Ports 0 and 1 as modem control lines */
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)