Mediatek AFE PCM controller for mt8186

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

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

Maintainers (maintainers): "Jiaxin Yu <jiaxin.yu@mediatek.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "mediatek,mt8186-sound"

reg — not listed as required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

reset-names — required here #

Exact value (const): "audiosys"

memory-region — not listed as required here #

memory region for audio DMA buffers

Maximum number of items (maxItems): 1

mediatek,apmixedsys — required here #

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

The phandle of the mediatek apmixedsys controller

mediatek,infracfg — required here #

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

The phandle of the mediatek infracfg controller

mediatek,topckgen — required here #

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

The phandle of the mediatek topckgen controller

clocks — required here #

Array item rules (items) #

Item 1

audio infra sys clock

Item 2

audio infra 26M clock

Item 3

audio top mux

Item 4

audio intbus mux

Item 5

mainpll 136.5M clock

Item 6

faud1 mux

Item 7

apll1 clock

Item 8

faud2 mux

Item 9

apll2 clock

Item 10

audio engen1 mux

Item 11

apll1_d8 22.5792M clock

Item 12

audio engen2 mux

Item 13

apll2_d8 24.576M clock

Item 14

i2s0 mclk mux

Item 15

i2s1 mclk mux

Item 16

i2s2 mclk mux

Item 17

i2s4 mclk mux

Item 18

tdm mclk mux

Item 19

i2s0_mck divider

Item 20

i2s1_mck divider

Item 21

i2s2_mck divider

Item 22

i2s4_mck divider

Item 23

tdm_mck divider

Item 24

audio hires mux

Item 25

26M clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "aud_infra_clk"

Item 2

Exact value (const): "mtkaif_26m_clk"

Item 3

Exact value (const): "top_mux_audio"

Item 4

Exact value (const): "top_mux_audio_int"

Item 5

Exact value (const): "top_mainpll_d2_d4"

Item 6

Exact value (const): "top_mux_aud_1"

Item 7

Exact value (const): "top_apll1_ck"

Item 8

Exact value (const): "top_mux_aud_2"

Item 9

Exact value (const): "top_apll2_ck"

Item 10

Exact value (const): "top_mux_aud_eng1"

Item 11

Exact value (const): "top_apll1_d8"

Item 12

Exact value (const): "top_mux_aud_eng2"

Item 13

Exact value (const): "top_apll2_d8"

Item 14

Exact value (const): "top_i2s0_m_sel"

Item 15

Exact value (const): "top_i2s1_m_sel"

Item 16

Exact value (const): "top_i2s2_m_sel"

Item 17

Exact value (const): "top_i2s4_m_sel"

Item 18

Exact value (const): "top_tdm_m_sel"

Item 19

Exact value (const): "top_apll12_div0"

Item 20

Exact value (const): "top_apll12_div1"

Item 21

Exact value (const): "top_apll12_div2"

Item 22

Exact value (const): "top_apll12_div4"

Item 23

Exact value (const): "top_apll12_div_tdm"

Item 24

Exact value (const): "top_mux_audio_h"

Item 25

Exact value (const): "top_clk26m_clk"

Required in this object (required): "compatible", "interrupts", "resets", "reset-names", "mediatek,apmixedsys", "mediatek,infracfg", "mediatek,topckgen", "clocks", "clock-names"

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>

afe: mt8186-afe-pcm@11210000 {
    compatible = "mediatek,mt8186-sound";
    reg = <0x11210000 0x2000>;
    interrupts = <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>;
    resets = <&watchdog 17>; //MT8186_TOPRGU_AUDIO_SW_RST
    reset-names = "audiosys";
    mediatek,apmixedsys = <&apmixedsys>;
    mediatek,infracfg = <&infracfg>;
    mediatek,topckgen = <&topckgen>;
    clocks = <&infracfg_ao 44>, //CLK_INFRA_AO_AUDIO
             <&infracfg_ao 54>, //CLK_INFRA_AO_AUDIO_26M_BCLK
             <&topckgen 15>, //CLK_TOP_AUDIO
             <&topckgen 16>, //CLK_TOP_AUD_INTBUS
             <&topckgen 70>, //CLK_TOP_MAINPLL_D2_D4
             <&topckgen 17>, //CLK_TOP_AUD_1
             <&apmixedsys 12>, //CLK_APMIXED_APLL1
             <&topckgen 18>, //CLK_TOP_AUD_2
             <&apmixedsys 13>, //CLK_APMIXED_APLL2
             <&topckgen 19>, //CLK_TOP_AUD_ENGEN1
             <&topckgen 101>, //CLK_TOP_APLL1_D8
             <&topckgen 20>, //CLK_TOP_AUD_ENGEN2
             <&topckgen 104>, //CLK_TOP_APLL2_D8
             <&topckgen 63>, //CLK_TOP_APLL_I2S0_MCK_SEL
             <&topckgen 64>, //CLK_TOP_APLL_I2S1_MCK_SEL
             <&topckgen 65>, //CLK_TOP_APLL_I2S2_MCK_SEL
             <&topckgen 66>, //CLK_TOP_APLL_I2S4_MCK_SEL
             <&topckgen 67>, //CLK_TOP_APLL_TDMOUT_MCK_SEL
             <&topckgen 131>, //CLK_TOP_APLL12_CK_DIV0
             <&topckgen 132>, //CLK_TOP_APLL12_CK_DIV1
             <&topckgen 133>, //CLK_TOP_APLL12_CK_DIV2
             <&topckgen 134>, //CLK_TOP_APLL12_CK_DIV4
             <&topckgen 135>, //CLK_TOP_APLL12_CK_DIV_TDMOUT_M
             <&topckgen 44>, //CLK_TOP_AUDIO_H
             <&clk26m>;
    clock-names = "aud_infra_clk",
                  "mtkaif_26m_clk",
                  "top_mux_audio",
                  "top_mux_audio_int",
                  "top_mainpll_d2_d4",
                  "top_mux_aud_1",
                  "top_apll1_ck",
                  "top_mux_aud_2",
                  "top_apll2_ck",
                  "top_mux_aud_eng1",
                  "top_apll1_d8",
                  "top_mux_aud_eng2",
                  "top_apll2_d8",
                  "top_i2s0_m_sel",
                  "top_i2s1_m_sel",
                  "top_i2s2_m_sel",
                  "top_i2s4_m_sel",
                  "top_tdm_m_sel",
                  "top_apll12_div0",
                  "top_apll12_div1",
                  "top_apll12_div2",
                  "top_apll12_div4",
                  "top_apll12_div_tdm",
                  "top_mux_audio_h",
                  "top_clk26m_clk";
    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