Amlogic AXG Audio FIFO controllers

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

Allowed values (enum): "amlogic,axg-toddr", "amlogic,axg-frddr"

Rule 2

Array item rules (items)

Item 1

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

Item 2

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

Rule 3

Array item rules (items)

Item 1

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

Item 2

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

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

interrupts — required here #

Maximum number of items (maxItems): 1

resets — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

reset-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

amlogic,fifo-depth — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Size of the controller's fifo in bytes

Required in this object (required): "compatible", "reg", "#sound-dai-cells", "clocks", "interrupts", "resets", "amlogic,fifo-depth"

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-toddr", "amlogic,sm1-toddr", "amlogic,g12a-frddr", "amlogic,sm1-frddr"

When the condition matches (then) #

Properties and child nodes (properties)

resets — not listed as required here

Minimum number of items (minItems): 2

reset-names — required here

Array item rules (items)

Item 1

Exact value (const): "arb"

Item 2

Exact value (const): "rst"

Required in this object (required): "reset-names"

When the condition does not match (else) #

Properties and child nodes (properties)

resets — not listed as required here

Maximum number of items (maxItems): 1

reset-names — not listed as required here

Exact value (const): "arb"

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>
#include <dt-bindings/reset/amlogic,meson-axg-audio-arb.h>
#include <dt-bindings/reset/amlogic,meson-g12a-audio-reset.h>

audio-controller@1c0 {
    compatible = "amlogic,g12a-frddr", "amlogic,axg-frddr";
    reg = <0x1c0 0x1c>;
    #sound-dai-cells = <0>;
    clocks = <&clkc_audio AUD_CLKID_FRDDR_A>;
    interrupts = <GIC_SPI 88 IRQ_TYPE_EDGE_RISING>;
    resets = <&arb>, <&clkc_audio AUD_RESET_FRDDR_A>;
    reset-names = "arb", "rst";
    amlogic,fifo-depth = <512>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page