Maxim MAX310X Advanced Universal Asynchronous Receiver-Transmitter (UART)

Schema identifier ($id): "http://devicetree.org/schemas/serial/maxim,max310x.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): "maxim,max3107", "maxim,max3108", "maxim,max3109", "maxim,max14830"

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

clock-names — required here #

Allowed values (enum): "xtal", "osc"

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): 16

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"

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#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    serial@2c {
        compatible = "maxim,max3107";
        reg = <0x2c>;
        clocks = <&xtal4m>;
        clock-names = "xtal";
        interrupt-parent = <&gpio3>;
        interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
        gpio-controller;
        #gpio-cells = <2>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 31: External crystal

Line 32: External clock source

Edit this page