MediaTek AFE PCM controller for MT7986

Schema identifier ($id): "http://devicetree.org/schemas/sound/mediatek,mt7986-afe.yaml#"

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

Maintainers (maintainers): "Maso Huang <maso.huang@mediatek.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "mediatek,mt7986-afe"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt7981-afe", "mediatek,mt7988-afe"

Item 2

Exact value (const): "mediatek,mt7986-afe"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 5

Array item rules (items) #

Item 1

audio bus clock

Item 2

audio 26M clock

Item 3

audio intbus clock

Item 4

audio hopping clock

Item 5

audio pll clock

Item 6

mux for pcm_mck

Item 7

audio i2s/pcm mck

clock-names — required here #

Minimum number of items (minItems): 5

Array item rules (items) #

Item 1

Exact value (const): "bus_ck"

Item 2

Exact value (const): "26m_ck"

Item 3

Exact value (const): "l_ck"

Item 4

Exact value (const): "aud_ck"

Item 5

Exact value (const): "eg2_ck"

Item 6

Exact value (const): "sel"

Item 7

Exact value (const): "i2s_m"

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

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "mediatek,mt7986-afe"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

audio bus clock

Item 2

audio 26M clock

Item 3

audio intbus clock

Item 4

audio hopping clock

Item 5

audio pll clock

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "bus_ck"

Item 2

Exact value (const): "26m_ck"

Item 3

Exact value (const): "l_ck"

Item 4

Exact value (const): "aud_ck"

Item 5

Exact value (const): "eg2_ck"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "mediatek,mt7981-afe"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

audio bus clock

Item 2

audio 26M clock

Item 3

audio intbus clock

Item 4

audio hopping clock

Item 5

audio pll clock

Item 6

mux for pcm_mck

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "bus_ck"

Item 2

Exact value (const): "26m_ck"

Item 3

Exact value (const): "l_ck"

Item 4

Exact value (const): "aud_ck"

Item 5

Exact value (const): "eg2_ck"

Item 6

Exact value (const): "sel"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "mediatek,mt7988-afe"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

audio bus clock

Item 2

audio 26M clock

Item 3

audio intbus clock

Item 4

audio hopping clock

Item 5

audio pll clock

Item 6

mux for pcm_mck

Item 7

audio i2s/pcm mck

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "bus_ck"

Item 2

Exact value (const): "26m_ck"

Item 3

Exact value (const): "l_ck"

Item 4

Exact value (const): "aud_ck"

Item 5

Exact value (const): "eg2_ck"

Item 6

Exact value (const): "sel"

Item 7

Exact value (const): "i2s_m"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/clock/mt7986-clk.h>

afe@11210000 {
    compatible = "mediatek,mt7986-afe";
    reg = <0x11210000 0x9000>;
    interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&infracfg_ao CLK_INFRA_AUD_BUS_CK>,
             <&infracfg_ao CLK_INFRA_AUD_26M_CK>,
             <&infracfg_ao CLK_INFRA_AUD_L_CK>,
             <&infracfg_ao CLK_INFRA_AUD_AUD_CK>,
             <&infracfg_ao CLK_INFRA_AUD_EG2_CK>;
    clock-names = "bus_ck",
                  "26m_ck",
                  "l_ck",
                  "aud_ck",
                  "eg2_ck";
    assigned-clocks = <&topckgen CLK_TOP_A1SYS_SEL>,
                      <&topckgen CLK_TOP_AUD_L_SEL>,
                      <&topckgen CLK_TOP_A_TUNER_SEL>;
    assigned-clock-parents = <&topckgen CLK_TOP_APLL2_D4>,
                             <&apmixedsys CLK_APMIXED_APLL2>,
                             <&topckgen CLK_TOP_APLL2_D4>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page