Amlogic G12a Internal DAC Control Glue

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

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "amlogic,g12a-toacodec"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "amlogic,sm1-toacodec"

Item 2

Exact value (const): "amlogic,g12a-toacodec"

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", "reg", "resets"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/reset/amlogic,meson-g12a-audio-reset.h>

toacodec: audio-controller@740 {
    compatible = "amlogic,g12a-toacodec";
    reg = <0x740 0x4>;
    #sound-dai-cells = <1>;
    resets = <&clkc_audio AUD_RESET_TOACODEC>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page