NXP Audio Transceiver (XCVR) Controller

Schema identifier ($id): "http://devicetree.org/schemas/sound/fsl,xcvr.yaml#"

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

Maintainers (maintainers): "Viorel Suman <viorel.suman@nxp.com>"

NXP XCVR (Audio Transceiver) is a on-chip functional module that allows CPU to receive and transmit digital audio via HDMI2.1 eARC, HDMI1.4 ARC and SPDIF.

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^xcvr@.*"

compatible — required here #

Allowed values (enum): "fsl,imx8mp-xcvr", "fsl,imx93-xcvr", "fsl,imx95-xcvr"

reg — required here #

Array item rules (items) #

Item 1

20K RAM for code and data

Item 2

registers space

Item 3

RX FIFO address

Item 4

TX FIFO address

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ram"

Item 2

Exact value (const): "regs"

Item 3

Exact value (const): "rxfifo"

Item 4

Exact value (const): "txfifo"

interrupts — required here #

Array item rules (items) #

Item 1

WAKEUPMIX Audio XCVR Interrupt 1

Item 2

WAKEUPMIX Audio XCVR Interrupt 2

Item 3

SPDIF wakeup interrupt from PHY

Minimum number of items (minItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Peripheral clock

Item 2

PHY clock

Item 3

SPBA clock

Item 4

PLL clock

Item 5

PLL clock source for 8kHz series

Item 6

PLL clock source for 11kHz series

Minimum number of items (minItems): 4

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ipg"

Item 2

Exact value (const): "phy"

Item 3

Exact value (const): "spba"

Item 4

Exact value (const): "pll_ipg"

Item 5

Exact value (const): "pll8k"

Item 6

Exact value (const): "pll11k"

Minimum number of items (minItems): 4

dmas — required here #

Array item rules (items) #

Item 1

DMA controller phandle and request line for RX

Item 2

DMA controller phandle and request line for TX

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

resets — not listed as required here #

Maximum number of items (maxItems): 1

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

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 here

Rule for matching array elements (contains)

Exact value (const): "fsl,imx8mp-xcvr"

When the condition matches (then) #

Required in this object (required): "resets"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "fsl,imx93-xcvr", "fsl,imx95-xcvr"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

When the condition does not match (else) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "fsl,imx8mp-xcvr", "fsl,imx93-xcvr"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 4

clock-names — not listed as required here

Maximum number of items (maxItems): 4

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

xcvr: xcvr@30cc0000 {
    compatible = "fsl,imx8mp-xcvr";
    reg = <0x30cc0000 0x800>,
          <0x30cc0800 0x400>,
          <0x30cc0c00 0x080>,
          <0x30cc0e00 0x080>;
    reg-names = "ram", "regs", "rxfifo", "txfifo";
    interrupts = <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&audiomix_clk IMX8MP_CLK_AUDIOMIX_EARC_IPG>,
             <&audiomix_clk IMX8MP_CLK_AUDIOMIX_EARC_PHY>,
             <&audiomix_clk IMX8MP_CLK_AUDIOMIX_SPBA2_ROOT>,
             <&audiomix_clk IMX8MP_CLK_AUDIOMIX_AUDPLL_ROOT>;
    clock-names = "ipg", "phy", "spba", "pll_ipg";
    dmas = <&sdma2 30 2 0>, <&sdma2 31 2 0>;
    dma-names = "rx", "tx";
    resets = <&audiomix_reset 0>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page