1 From d16202eb38585adbc16e32d11188dbc2127015de Mon Sep 17 00:00:00 2001
2 From: Maso Huang <maso.huang@mediatek.com>
3 Date: Thu, 17 Aug 2023 18:13:38 +0800
4 Subject: [PATCH 6/9] ASoC: dt-bindings: mediatek,mt7986-afe: add audio afe
7 Add mt7986 audio afe document.
9 Signed-off-by: Maso Huang <maso.huang@mediatek.com>
10 Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
11 Link: https://lore.kernel.org/r/20230817101338.18782-7-maso.huang@mediatek.com
12 Signed-off-by: Mark Brown <broonie@kernel.org>
14 .../bindings/sound/mediatek,mt7986-afe.yaml | 160 ++++++++++++++++++
15 1 file changed, 160 insertions(+)
16 create mode 100644 Documentation/devicetree/bindings/sound/mediatek,mt7986-afe.yaml
19 +++ b/Documentation/devicetree/bindings/sound/mediatek,mt7986-afe.yaml
21 +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
24 +$id: http://devicetree.org/schemas/sound/mediatek,mt7986-afe.yaml#
25 +$schema: http://devicetree.org/meta-schemas/core.yaml#
27 +title: MediaTek AFE PCM controller for MT7986
30 + - Maso Huang <maso.huang@mediatek.com>
35 + - const: mediatek,mt7986-afe
38 + - mediatek,mt7981-afe
39 + - mediatek,mt7988-afe
40 + - const: mediatek,mt7986-afe
51 + - description: audio bus clock
52 + - description: audio 26M clock
53 + - description: audio intbus clock
54 + - description: audio hopping clock
55 + - description: audio pll clock
56 + - description: mux for pcm_mck
57 + - description: audio i2s/pcm mck
82 + const: mediatek,mt7986-afe
87 + - description: audio bus clock
88 + - description: audio 26M clock
89 + - description: audio intbus clock
90 + - description: audio hopping clock
91 + - description: audio pll clock
104 + const: mediatek,mt7981-afe
109 + - description: audio bus clock
110 + - description: audio 26M clock
111 + - description: audio intbus clock
112 + - description: audio hopping clock
113 + - description: audio pll clock
114 + - description: mux for pcm_mck
128 + const: mediatek,mt7988-afe
133 + - description: audio bus clock
134 + - description: audio 26M clock
135 + - description: audio intbus clock
136 + - description: audio hopping clock
137 + - description: audio pll clock
138 + - description: mux for pcm_mck
139 + - description: audio i2s/pcm mck
150 +additionalProperties: false
154 + #include <dt-bindings/interrupt-controller/arm-gic.h>
155 + #include <dt-bindings/interrupt-controller/irq.h>
156 + #include <dt-bindings/clock/mt7986-clk.h>
159 + compatible = "mediatek,mt7986-afe";
160 + reg = <0x11210000 0x9000>;
161 + interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
162 + clocks = <&infracfg_ao CLK_INFRA_AUD_BUS_CK>,
163 + <&infracfg_ao CLK_INFRA_AUD_26M_CK>,
164 + <&infracfg_ao CLK_INFRA_AUD_L_CK>,
165 + <&infracfg_ao CLK_INFRA_AUD_AUD_CK>,
166 + <&infracfg_ao CLK_INFRA_AUD_EG2_CK>;
167 + clock-names = "bus_ck",
172 + assigned-clocks = <&topckgen CLK_TOP_A1SYS_SEL>,
173 + <&topckgen CLK_TOP_AUD_L_SEL>,
174 + <&topckgen CLK_TOP_A_TUNER_SEL>;
175 + assigned-clock-parents = <&topckgen CLK_TOP_APLL2_D4>,
176 + <&apmixedsys CLK_APMIXED_APLL2>,
177 + <&topckgen CLK_TOP_APLL2_D4>;