Amlogic AIU audio output controller

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

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

Maintainers (maintainers): "Jerome Brunet <jbrunet@baylibre.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^audio-controller@.*"

#sound-dai-cells — required here #

Exact value (const): 2

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "amlogic,aiu-gxbb", "amlogic,aiu-gxl", "amlogic,aiu-meson8", "amlogic,aiu-meson8b"

Item 2

Exact value (const): "amlogic,aiu"

clocks — required here #

Array item rules (items) #

Item 1

AIU peripheral clock

Item 2

I2S peripheral clock

Item 3

I2S output clock

Item 4

I2S master clock

Item 5

I2S mixer clock

Item 6

SPDIF peripheral clock

Item 7

SPDIF output clock

Item 8

SPDIF master clock

Item 9

SPDIF master clock multiplexer

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pclk"

Item 2

Exact value (const): "i2s_pclk"

Item 3

Exact value (const): "i2s_aoclk"

Item 4

Exact value (const): "i2s_mclk"

Item 5

Exact value (const): "i2s_mixer"

Item 6

Exact value (const): "spdif_pclk"

Item 7

Exact value (const): "spdif_aoclk"

Item 8

Exact value (const): "spdif_mclk"

Item 9

Exact value (const): "spdif_mclk_sel"

interrupts — required here #

Array item rules (items) #

Item 1

I2S interrupt line

Item 2

SPDIF interrupt line

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "i2s"

Item 2

Exact value (const): "spdif"

reg — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

sound-name-prefix — not listed as required here #

true — No constraints added by this property rule.

Required in this object (required): "#sound-dai-cells", "compatible", "clocks", "clock-names", "interrupts", "interrupt-names", "reg", "resets"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/gxbb-clkc.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/reset/amlogic,meson-gxbb-reset.h>

aiu: audio-controller@5400 {
    compatible = "amlogic,aiu-gxl", "amlogic,aiu";
    #sound-dai-cells = <2>;
    reg = <0x5400 0x2ac>;
    interrupts = <GIC_SPI 48 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 50 IRQ_TYPE_EDGE_RISING>;
    interrupt-names = "i2s", "spdif";
    clocks = <&clkc CLKID_AIU_GLUE>,
             <&clkc CLKID_I2S_OUT>,
             <&clkc CLKID_AOCLK_GATE>,
             <&clkc CLKID_CTS_AMCLK>,
             <&clkc CLKID_MIXER_IFACE>,
             <&clkc CLKID_IEC958>,
             <&clkc CLKID_IEC958_GATE>,
             <&clkc CLKID_CTS_MCLK_I958>,
             <&clkc CLKID_CTS_I958>;
    clock-names = "pclk",
                  "i2s_pclk",
                  "i2s_aoclk",
                  "i2s_mclk",
                  "i2s_mixer",
                  "spdif_pclk",
                  "spdif_aoclk",
                  "spdif_mclk",
                  "spdif_mclk_sel";
    resets = <&reset RESET_AIU>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Edit this page