Mediatek AFE PCM controller for MT8173

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

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

Maintainers (maintainers): "Trevor Wu <trevor.wu@mediatek.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "mediatek,mt8173-afe-pcm"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

audio infra sys clock

Item 2

audio top mux

Item 3

audio intbus mux

Item 4

apll1 clock

Item 5

apll2 clock

Item 6

i2s0 mclk mux

Item 7

i2s1 mclk mux

Item 8

i2s2 mclk mux

Item 9

i2s3 mclk mux

Item 10

i2s3 bclk mux

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "infra_sys_audio_clk"

Item 2

Exact value (const): "top_pdn_audio"

Item 3

Exact value (const): "top_pdn_aud_intbus"

Item 4

Exact value (const): "bck0"

Item 5

Exact value (const): "bck1"

Item 6

Exact value (const): "i2s0_m"

Item 7

Exact value (const): "i2s1_m"

Item 8

Exact value (const): "i2s2_m"

Item 9

Exact value (const): "i2s3_m"

Item 10

Exact value (const): "i2s3_b"

power-domains — required here #

Maximum number of items (maxItems): 1

memory-region — not listed as required here #

memory region for audio DMA buffers

Maximum number of items (maxItems): 1

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

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

false

Not allowed by this rule.

Examples (examples) #

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

mt8173-afe-pcm@11220000 {
    compatible = "mediatek,mt8173-afe-pcm";
    reg = <0x11220000 0x1000>;
    interrupts = <GIC_SPI 134 IRQ_TYPE_EDGE_FALLING>;
    power-domains = <&spm MT8173_POWER_DOMAIN_AUDIO>;
    clocks = <&infracfg CLK_INFRA_AUDIO>,
             <&topckgen CLK_TOP_AUDIO_SEL>,
             <&topckgen CLK_TOP_AUD_INTBUS_SEL>,
             <&topckgen CLK_TOP_APLL1_DIV0>,
             <&topckgen CLK_TOP_APLL2_DIV0>,
             <&topckgen CLK_TOP_I2S0_M_SEL>,
             <&topckgen CLK_TOP_I2S1_M_SEL>,
             <&topckgen CLK_TOP_I2S2_M_SEL>,
             <&topckgen CLK_TOP_I2S3_M_SEL>,
             <&topckgen CLK_TOP_I2S3_B_SEL>;
     clock-names = "infra_sys_audio_clk",
                   "top_pdn_audio",
                   "top_pdn_aud_intbus",
                   "bck0",
                   "bck1",
                   "i2s0_m",
                   "i2s1_m",
                   "i2s2_m",
                   "i2s3_m",
                   "i2s3_b";
      memory-region = <&afe_dma_mem>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page