Mediatek AFE PCM controller for mt8195
Schema identifier ($id): "http://devicetree.org/schemas/sound/mt8195-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,mt8195-audio"
reg — 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 — required here #
Maximum number of items (maxItems): 1
Shared memory region for AFE memif. A "shared-dma-pool". See ../reserved-memory/reserved-memory.txt for details.
mediatek,topckgen — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
The phandle of the mediatek topckgen controller
power-domains — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
26M clock
Item 2
audio pll1 clock
Item 3
audio pll2 clock
Item 4
clock divider for i2si1_mck
Item 5
clock divider for i2si2_mck
Item 6
clock divider for i2so1_mck
Item 7
clock divider for i2so2_mck
Item 8
clock divider for dptx_mck
Item 9
a1sys hoping clock
Item 10
audio intbus clock
Item 11
audio hires clock
Item 12
audio local bus clock
Item 13
mux for dptx_mck
Item 14
mux for i2so1_mck
Item 15
mux for i2so2_mck
Item 16
mux for i2si1_mck
Item 17
mux for i2si2_mck
Item 18
audio infra 26M clock
Item 19
infra bus clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"clk26m"
Item 2
Exact value (
const):"apll1_ck"
Item 3
Exact value (
const):"apll2_ck"
Item 4
Exact value (
const):"apll12_div0"
Item 5
Exact value (
const):"apll12_div1"
Item 6
Exact value (
const):"apll12_div2"
Item 7
Exact value (
const):"apll12_div3"
Item 8
Exact value (
const):"apll12_div9"
Item 9
Exact value (
const):"a1sys_hp_sel"
Item 10
Exact value (
const):"aud_intbus_sel"
Item 11
Exact value (
const):"audio_h_sel"
Item 12
Exact value (
const):"audio_local_bus_sel"
Item 13
Exact value (
const):"dptx_m_sel"
Item 14
Exact value (
const):"i2so1_m_sel"
Item 15
Exact value (
const):"i2so2_m_sel"
Item 16
Exact value (
const):"i2si1_m_sel"
Item 17
Exact value (
const):"i2si2_m_sel"
Item 18
Exact value (
const):"infra_ao_audio_26m_b"
Item 19
Exact value (
const):"scp_adsp_audiodsp"
mediatek,etdm-in1-chn-disabled — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Maximum number of items (maxItems): 24
Specify which input channel should be disabled.
mediatek,etdm-in2-chn-disabled — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Maximum number of items (maxItems): 16
Specify which input channel should be disabled.
Properties matching a name pattern (patternProperties) #
^mediatek,etdm-in[1-2]-mclk-always-on-rate-hz$ — name matches this regular expression #
Specify etdm in mclk output rate for always on case.
^mediatek,etdm-out[1-3]-mclk-always-on-rate-hz$ — name matches this regular expression #
Specify etdm out mclk output rate for always on case.
^mediatek,etdm-in[1-2]-multi-pin-mode$ — name matches this regular expression #
Value type (type): "boolean"
if present, the etdm data mode is I2S.
^mediatek,etdm-out[1-3]-multi-pin-mode$ — name matches this regular expression #
Value type (type): "boolean"
if present, the etdm data mode is I2S.
^mediatek,etdm-in[1-2]-cowork-source$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
etdm modules can share the same external clock pin. Specify which etdm clock source is required by this etdm in module.
Allowed values (enum): 0, 1, 2, 3
^mediatek,etdm-out[1-2]-cowork-source$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
etdm modules can share the same external clock pin. Specify which etdm clock source is required by this etdm out module.
Allowed values (enum): 0, 1, 2, 3
Required in this object (required): "compatible", "reg", "interrupts", "resets", "reset-names", "mediatek,topckgen", "power-domains", "clocks", "clock-names", "memory-region"
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: mt8195-afe-pcm@10890000 {
compatible = "mediatek,mt8195-audio";
reg = <0x10890000 0x10000>;
interrupts = <GIC_SPI 822 IRQ_TYPE_LEVEL_HIGH 0>;
resets = <&watchdog 14>;
reset-names = "audiosys";
mediatek,topckgen = <&topckgen>;
power-domains = <&spm 7>; //MT8195_POWER_DOMAIN_AUDIO
memory-region = <&snd_dma_mem_reserved>;
clocks = <&clk26m>,
<&topckgen 163>, //CLK_TOP_APLL1
<&topckgen 166>, //CLK_TOP_APLL2
<&topckgen 233>, //CLK_TOP_APLL12_DIV0
<&topckgen 234>, //CLK_TOP_APLL12_DIV1
<&topckgen 235>, //CLK_TOP_APLL12_DIV2
<&topckgen 236>, //CLK_TOP_APLL12_DIV3
<&topckgen 238>, //CLK_TOP_APLL12_DIV9
<&topckgen 100>, //CLK_TOP_A1SYS_HP_SEL
<&topckgen 33>, //CLK_TOP_AUD_INTBUS_SEL
<&topckgen 34>, //CLK_TOP_AUDIO_H_SEL
<&topckgen 107>, //CLK_TOP_AUDIO_LOCAL_BUS_SEL
<&topckgen 98>, //CLK_TOP_DPTX_M_SEL
<&topckgen 94>, //CLK_TOP_I2SO1_M_SEL
<&topckgen 95>, //CLK_TOP_I2SO2_M_SEL
<&topckgen 96>, //CLK_TOP_I2SI1_M_SEL
<&topckgen 97>, //CLK_TOP_I2SI2_M_SEL
<&infracfg_ao 50>, //CLK_INFRA_AO_AUDIO_26M_B
<&scp_adsp 0>; //CLK_SCP_ADSP_AUDIODSP
clock-names = "clk26m",
"apll1_ck",
"apll2_ck",
"apll12_div0",
"apll12_div1",
"apll12_div2",
"apll12_div3",
"apll12_div9",
"a1sys_hp_sel",
"aud_intbus_sel",
"audio_h_sel",
"audio_local_bus_sel",
"dptx_m_sel",
"i2so1_m_sel",
"i2so2_m_sel",
"i2si1_m_sel",
"i2si2_m_sel",
"infra_ao_audio_26m_b",
"scp_adsp_audiodsp";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 116: etdm1_in
Line 117: etdm2_in
Line 118: etdm1_out
Line 119: etdm2_out
Line 127: etdm1_in
Line 128: etdm2_in
Line 129: etdm1_out
Line 130: etdm2_out