MediaTek Audio Front End PCM controller for MT8365
Schema identifier ($id): "http://devicetree.org/schemas/sound/mediatek,mt8365-afe.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Alexandre Mergnat <amergnat@baylibre.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "mediatek,mt8365-afe-pcm"
reg — required here #
Maximum number of items (maxItems): 1
#sound-dai-cells — not listed as required here #
Exact value (const): 0
clocks — required here #
Array item rules (items) #
Item 1
26M clock
Item 2
mux for audio clock
Item 3
audio i2s0 mck
Item 4
audio i2s1 mck
Item 5
audio i2s2 mck
Item 6
audio i2s3 mck
Item 7
engen 1 clock
Item 8
engen 2 clock
Item 9
audio 1 clock
Item 10
audio 2 clock
Item 11
mux for i2s0
Item 12
mux for i2s1
Item 13
mux for i2s2
Item 14
mux for i2s3
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"top_clk26m_clk"
Item 2
Exact value (
const):"top_audio_sel"
Item 3
Exact value (
const):"audio_i2s0_m"
Item 4
Exact value (
const):"audio_i2s1_m"
Item 5
Exact value (
const):"audio_i2s2_m"
Item 6
Exact value (
const):"audio_i2s3_m"
Item 7
Exact value (
const):"engen1"
Item 8
Exact value (
const):"engen2"
Item 9
Exact value (
const):"aud1"
Item 10
Exact value (
const):"aud2"
Item 11
Exact value (
const):"i2s0_m_sel"
Item 12
Exact value (
const):"i2s1_m_sel"
Item 13
Exact value (
const):"i2s2_m_sel"
Item 14
Exact value (
const):"i2s3_m_sel"
interrupts — required here #
Maximum number of items (maxItems): 1
power-domains — required here #
Maximum number of items (maxItems): 1
mediatek,dmic-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Indicates how many data pins are used to transmit two channels of PDM signal. 1 means two wires, 0 means one wire. Default value is 0.
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts", "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/mediatek,mt8365-clk.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/power/mediatek,mt8365-power.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
audio-controller@11220000 {
compatible = "mediatek,mt8365-afe-pcm";
reg = <0 0x11220000 0 0x1000>;
#sound-dai-cells = <0>;
clocks = <&clk26m>,
<&topckgen CLK_TOP_AUDIO_SEL>,
<&topckgen CLK_TOP_AUD_I2S0_M>,
<&topckgen CLK_TOP_AUD_I2S1_M>,
<&topckgen CLK_TOP_AUD_I2S2_M>,
<&topckgen CLK_TOP_AUD_I2S3_M>,
<&topckgen CLK_TOP_AUD_ENGEN1_SEL>,
<&topckgen CLK_TOP_AUD_ENGEN2_SEL>,
<&topckgen CLK_TOP_AUD_1_SEL>,
<&topckgen CLK_TOP_AUD_2_SEL>,
<&topckgen CLK_TOP_APLL_I2S0_SEL>,
<&topckgen CLK_TOP_APLL_I2S1_SEL>,
<&topckgen CLK_TOP_APLL_I2S2_SEL>,
<&topckgen CLK_TOP_APLL_I2S3_SEL>;
clock-names = "top_clk26m_clk",
"top_audio_sel",
"audio_i2s0_m",
"audio_i2s1_m",
"audio_i2s2_m",
"audio_i2s3_m",
"engen1",
"engen2",
"aud1",
"aud2",
"i2s0_m_sel",
"i2s1_m_sel",
"i2s2_m_sel",
"i2s3_m_sel";
interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_LOW>;
power-domains = <&spm MT8365_POWER_DOMAIN_AUDIO>;
mediatek,dmic-mode = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 68: one wire
Line 69: two wires