Microchip Flexcom (Flexible Serial Communication Unit)

Schema identifier ($id): "http://devicetree.org/schemas/mfd/atmel,sama5d2-flexcom.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Kavyasree Kotagiri <kavyasree.kotagiri@microchip.com>"

The Microchip Flexcom is just a wrapper which embeds a SPI controller, an I2C controller and an USART. Only one function can be used at a time and is chosen at boot time according to the device tree.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "atmel,sama5d2-flexcom"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "microchip,lan9691-flexcom", "microchip,sam9x7-flexcom", "microchip,sama7d65-flexcom", "microchip,sama7g5-flexcom"

Item 2

Exact value (const): "atmel,sama5d2-flexcom"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

#address-cells — required here #

Exact value (const): 1

#size-cells — required here #

Exact value (const): 1

ranges — required here #

One range for the full I/O register region. (including USART, TWI and SPI registers).

Array item rules (items) #

Maximum number of items (maxItems): 3

atmel,flexcom-mode — required here #

Specifies the flexcom mode as follows: 1: USART 2: SPI 3: I2C.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 1, 2, 3

Properties matching a name pattern (patternProperties) #

^serial@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

Child node describing USART. See atmel-usart.txt for details of USART bindings.

^spi@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

Child node describing SPI. See ../spi/spi_atmel.txt for details of SPI bindings.

^i2c@[0-9a-f]+$ — name matches this regular expression #

Shared schema rule ($ref): /schemas/i2c/atmel,at91sam-i2c.yaml

Child node describing I2C.

Required in this object (required): "compatible", "reg", "clocks", "#address-cells", "#size-cells", "ranges", "atmel,flexcom-mode"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

flx0: flexcom@f8034000 {
    compatible = "atmel,sama5d2-flexcom";
    reg = <0xf8034000 0x200>;
    clocks = <&flx0_clk>;
    #address-cells = <1>;
    #size-cells = <1>;
    ranges = <0x0 0xf8034000 0x800>;
    atmel,flexcom-mode = <2>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page