Amlogic Audio AXG SPDIF Output

Schema identifier ($id): "http://devicetree.org/schemas/sound/amlogic,axg-spdifout.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-spdifout"

Rule 2

Array item rules (items)

Item 1

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

Item 2

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

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 output master clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pclk"

Item 2

Exact value (const): "mclk"

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"

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-spdifout", "amlogic,sm1-spdifout"

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>

audio-controller@480 {
    compatible = "amlogic,axg-spdifout";
    reg = <0x480 0x50>;
    #sound-dai-cells = <0>;
    clocks = <&clkc_audio AUD_CLKID_SPDIFOUT>,
             <&clkc_audio AUD_CLKID_SPDIFOUT_CLK>;
    clock-names = "pclk", "mclk";
};

Source notes #

Annotations retained from the schema source

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

Edit this page