MediaTek AFE PCM controller for mt8188
Schema identifier ($id): "http://devicetree.org/schemas/sound/mediatek,mt8188-afe.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,mt8188-afe"
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 — not listed as required here #
Maximum number of items (maxItems): 1
Shared memory region for AFE memif. A "shared-dma-pool". See dtschema reserved-memory/shared-dma-pool.yaml for details.
mediatek,topckgen — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
The phandle of the mediatek topckgen controller
mediatek,infracfg — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
The phandle of the mediatek infracfg 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 26m clock
Item 19
audio pll1 divide 4
Item 20
audio pll2 divide 4
Item 21
clock divider for iec
Item 22
mux for a2sys clock
Item 23
mux for aud_iec
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"clk26m"
Item 2
Exact value (
const):"apll1"
Item 3
Exact value (
const):"apll2"
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):"top_a1sys_hp"
Item 10
Exact value (
const):"top_aud_intbus"
Item 11
Exact value (
const):"top_audio_h"
Item 12
Exact value (
const):"top_audio_local_bus"
Item 13
Exact value (
const):"top_dptx"
Item 14
Exact value (
const):"top_i2so1"
Item 15
Exact value (
const):"top_i2so2"
Item 16
Exact value (
const):"top_i2si1"
Item 17
Exact value (
const):"top_i2si2"
Item 18
Exact value (
const):"adsp_audio_26m"
Item 19
Exact value (
const):"apll1_d4"
Item 20
Exact value (
const):"apll2_d4"
Item 21
Exact value (
const):"apll12_div4"
Item 22
Exact value (
const):"top_a2sys"
Item 23
Exact value (
const):"top_aud_iec"
mediatek,etdm-in1-cowork-source — not listed as required here #
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): 1, 2, 3
mediatek,etdm-in2-cowork-source — not listed as required here #
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, 2, 3
mediatek,etdm-out1-cowork-source — not listed as required here #
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, 3
mediatek,etdm-out2-cowork-source — not listed as required here #
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
Properties matching a name pattern (patternProperties) #
^mediatek,etdm-in[1-2]-chn-disabled$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 16
This is a list of channel IDs which should be disabled. By default, all data received from ETDM pins will be outputted to memory. etdm in supports disable_out in direct mode(w/o interconn), so user can disable the specified channels by the property.
Items must be unique (uniqueItems): true
Array item rules (items) #
Minimum value (
minimum):0Maximum value (
maximum):15
^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.
Required in this object (required): "compatible", "reg", "interrupts", "resets", "reset-names", "mediatek,topckgen", "mediatek,infracfg", "power-domains", "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@10b10000 {
compatible = "mediatek,mt8188-afe";
reg = <0x10b10000 0x10000>;
interrupts = <GIC_SPI 822 IRQ_TYPE_LEVEL_HIGH 0>;
resets = <&watchdog 14>;
reset-names = "audiosys";
memory-region = <&snd_dma_mem_reserved>;
mediatek,topckgen = <&topckgen>;
mediatek,infracfg = <&infracfg_ao>;
power-domains = <&spm 13>; //MT8188_POWER_DOMAIN_AUDIO
mediatek,etdm-in2-cowork-source = <2>;
mediatek,etdm-out2-cowork-source = <0>;
mediatek,etdm-in1-multi-pin-mode;
mediatek,etdm-in1-chn-disabled = /bits/ 8 <0x0 0x2>;
clocks = <&clk26m>,
<&apmixedsys 9>, //CLK_APMIXED_APLL1
<&apmixedsys 10>, //CLK_APMIXED_APLL2
<&topckgen 186>, //CLK_TOP_APLL12_CK_DIV0
<&topckgen 187>, //CLK_TOP_APLL12_CK_DIV1
<&topckgen 188>, //CLK_TOP_APLL12_CK_DIV2
<&topckgen 189>, //CLK_TOP_APLL12_CK_DIV3
<&topckgen 191>, //CLK_TOP_APLL12_CK_DIV9
<&topckgen 83>, //CLK_TOP_A1SYS_HP
<&topckgen 31>, //CLK_TOP_AUD_INTBUS
<&topckgen 32>, //CLK_TOP_AUDIO_H
<&topckgen 69>, //CLK_TOP_AUDIO_LOCAL_BUS
<&topckgen 81>, //CLK_TOP_DPTX
<&topckgen 77>, //CLK_TOP_I2SO1
<&topckgen 78>, //CLK_TOP_I2SO2
<&topckgen 79>, //CLK_TOP_I2SI1
<&topckgen 80>, //CLK_TOP_I2SI2
<&adsp_audio26m 0>, //CLK_AUDIODSP_AUDIO26M
<&topckgen 132>, //CLK_TOP_APLL1_D4
<&topckgen 133>, //CLK_TOP_APLL2_D4
<&topckgen 183>, //CLK_TOP_APLL12_CK_DIV4
<&topckgen 84>, //CLK_TOP_A2SYS
<&topckgen 82>; //CLK_TOP_AUD_IEC>;
clock-names = "clk26m",
"apll1",
"apll2",
"apll12_div0",
"apll12_div1",
"apll12_div2",
"apll12_div3",
"apll12_div9",
"top_a1sys_hp",
"top_aud_intbus",
"top_audio_h",
"top_audio_local_bus",
"top_dptx",
"top_i2so1",
"top_i2so2",
"top_i2si1",
"top_i2si2",
"adsp_audio_26m",
"apll1_d4",
"apll2_d4",
"apll12_div4",
"top_a2sys",
"top_aud_iec";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 103: etdm2_in
Line 104: etdm1_out
Line 105: etdm2_out
Line 113: etdm1_in
Line 114: etdm1_out
Line 115: etdm2_out
Line 123: etdm1_in
Line 124: etdm2_in
Line 125: etdm2_out
Line 133: etdm1_in
Line 134: etdm2_in
Line 135: etdm1_out