Freescale Enhanced Serial Audio Interface (ESAI) Controller
Schema identifier ($id): "http://devicetree.org/schemas/sound/fsl,esai.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Shengjiu Wang <shengjiu.wang@nxp.com>", "Frank Li <Frank.Li@nxp.com>"
The Enhanced Serial Audio Interface (ESAI) provides a full-duplex serial port for serial communication with a variety of serial devices, including industry standard codecs, Sony/Phillips Digital Interface (S/PDIF) transceivers, and other DSPs. It has up to six transmitters and four receivers.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"fsl,imx35-esai","fsl,imx6ull-esai","fsl,vf610-esai"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,imx6ull-esai"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 3
Array item rules (items) #
Item 1
The core clock used to access registers.
Item 2
The esai baud clock for esai controller used to derive HCK, SCK and FS.
Item 3
The system clock derived from ahb clock used to derive HCK, SCK and FS.
Item 4
The spba clock is required when ESAI is placed as a bus slave of the Shared Peripheral Bus and when two or more bus masters (CPU, DMA or DSP) try to access it. This property is optional depending on the SoC design.
clock-names — required here #
Minimum number of items (minItems): 3
Array item rules (items) #
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"extal"
Item 3
Exact value (
const):"fsys"
Item 4
Exact value (
const):"spba"
dmas — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
dma-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"rx"
Item 2
Exact value (
const):"tx"
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
fsl,fifo-depth — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 64
The number of elements in the transmit and receive FIFOs. This number is the maximum allowed value for TFCR[TFWM] or RFCR[RFWM].
fsl,esai-synchronous — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
This is a boolean property. If present, indicating that ESAI would work in the synchronous mode, which means all the settings for Receiving would be duplicated from Transmission related registers.
big-endian — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
If this property is absent, the native endian mode will be in use as default, or the big endian mode will be in use for all the device registers.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "dmas", "dma-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dai-common.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"fsl,imx8qm-esai"When the condition matches (
then) #When the condition does not match (
else) #Properties and child nodes (
properties)
power-domains— not listed as required here
false— Not permitted by this property rule.
Examples (examples) #
esai@2024000 {
compatible = "fsl,imx35-esai";
reg = <0x02024000 0x4000>;
interrupts = <0 51 0x04>;
clocks = <&clks 208>, <&clks 118>, <&clks 208>;
clock-names = "core", "extal", "fsys";
dmas = <&sdma 23 21 0>, <&sdma 24 21 0>;
dma-names = "rx", "tx";
fsl,fifo-depth = <128>;
fsl,esai-synchronous;
big-endian;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)