Amlogic Audio AXG SPDIF Input

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

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

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "amlogic,axg-spdifin"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "amlogic,g12a-spdifin", "amlogic,sm1-spdifin"

Item 2

Exact value (const): "amlogic,axg-spdifin"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 0

clocks — required here #

Array item rules (items) #

Item 1

Peripheral clock

Item 2

SPDIF input reference clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pclk"

Item 2

Exact value (const): "refclk"

interrupts — required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

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

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)

Allowed values (enum): "amlogic,g12a-spdifin", "amlogic,sm1-spdifin"

When the condition matches (then) #

Required in this object (required): "resets"

When the condition does not match (else) #

Properties and child nodes (properties)

resets — not listed as required here

false — Not permitted by this property rule.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/axg-audio-clkc.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

audio-controller@400 {
    compatible = "amlogic,axg-spdifin";
    reg = <0x400 0x30>;
    #sound-dai-cells = <0>;
    interrupts = <GIC_SPI 87 IRQ_TYPE_EDGE_RISING>;
    clocks = <&clkc_audio AUD_CLKID_SPDIFIN>,
             <&clkc_audio AUD_CLKID_SPDIFIN_CLK>;
    clock-names = "pclk", "refclk";
};

Source notes #

Annotations retained from the schema source

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

Edit this page