| 1 |
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/sound/mt8192-afe-pcm.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Mediatek AFE PCM controller for mt8192 |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Jiaxin Yu <[email protected]> |
| 11 |
- Shane Chien <[email protected]> |
| 12 |
|
| 13 |
properties: |
| 14 |
compatible: |
| 15 |
const: mediatek,mt8192-audio |
| 16 |
|
| 17 |
interrupts: |
| 18 |
maxItems: 1 |
| 19 |
|
| 20 |
resets: |
| 21 |
maxItems: 1 |
| 22 |
|
| 23 |
reset-names: |
| 24 |
const: audiosys |
| 25 |
|
| 26 |
memory-region: |
| 27 |
description: memory region for audio DMA buffers |
| 28 |
maxItems: 1 |
| 29 |
|
| 30 |
mediatek,apmixedsys: |
| 31 |
$ref: /schemas/types.yaml#/definitions/phandle |
| 32 |
description: The phandle of the mediatek apmixedsys controller |
| 33 |
|
| 34 |
mediatek,infracfg: |
| 35 |
$ref: /schemas/types.yaml#/definitions/phandle |
| 36 |
description: The phandle of the mediatek infracfg controller |
| 37 |
|
| 38 |
mediatek,topckgen: |
| 39 |
$ref: /schemas/types.yaml#/definitions/phandle |
| 40 |
description: The phandle of the mediatek topckgen controller |
| 41 |
|
| 42 |
power-domains: |
| 43 |
maxItems: 1 |
| 44 |
|
| 45 |
clocks: |
| 46 |
items: |
| 47 |
- description: AFE clock |
| 48 |
- description: ADDA DAC clock |
| 49 |
- description: ADDA DAC pre-distortion clock |
| 50 |
- description: ADDA ADC clock |
| 51 |
- description: ADDA6 ADC clock |
| 52 |
- description: Audio low-jitter 22.5792m clock |
| 53 |
- description: Audio low-jitter 24.576m clock |
| 54 |
- description: Audio PLL1 tuner clock |
| 55 |
- description: Audio PLL2 tuner clock |
| 56 |
- description: Audio Time-Division Multiplexing interface clock |
| 57 |
- description: ADDA ADC Sine Generator clock |
| 58 |
- description: audio Non-LE clock |
| 59 |
- description: Audio DAC High-Resolution clock |
| 60 |
- description: Audio High-Resolution ADC clock |
| 61 |
- description: Audio High-Resolution ADC SineGen clock |
| 62 |
- description: Audio ADDA6 High-Resolution ADC clock |
| 63 |
- description: Tertiary ADDA DAC clock |
| 64 |
- description: Tertiary ADDA DAC pre-distortion clock |
| 65 |
- description: Tertiary ADDA DAC Sine Generator clock |
| 66 |
- description: Tertiary ADDA DAC High-Resolution clock |
| 67 |
- description: Audio infra sys clock |
| 68 |
- description: Audio infra 26M clock |
| 69 |
- description: Mux for audio clock |
| 70 |
- description: Mux for audio internal bus clock |
| 71 |
- description: Mux main divider by 4 |
| 72 |
- description: Primary audio mux |
| 73 |
- description: Primary audio PLL |
| 74 |
- description: Secondary audio mux |
| 75 |
- description: Secondary audio PLL |
| 76 |
- description: Primary audio en-generator clock |
| 77 |
- description: Primary PLL divider by 4 for IEC |
| 78 |
- description: Secondary audio en-generator clock |
| 79 |
- description: Secondary PLL divider by 4 for IEC |
| 80 |
- description: Mux selector for I2S port 0 |
| 81 |
- description: Mux selector for I2S port 1 |
| 82 |
- description: Mux selector for I2S port 2 |
| 83 |
- description: Mux selector for I2S port 3 |
| 84 |
- description: Mux selector for I2S port 4 |
| 85 |
- description: Mux selector for I2S port 5 |
| 86 |
- description: Mux selector for I2S port 6 |
| 87 |
- description: Mux selector for I2S port 7 |
| 88 |
- description: Mux selector for I2S port 8 |
| 89 |
- description: Mux selector for I2S port 9 |
| 90 |
- description: APLL1 and APLL2 divider for I2S port 0 |
| 91 |
- description: APLL1 and APLL2 divider for I2S port 1 |
| 92 |
- description: APLL1 and APLL2 divider for I2S port 2 |
| 93 |
- description: APLL1 and APLL2 divider for I2S port 3 |
| 94 |
- description: APLL1 and APLL2 divider for I2S port 4 |
| 95 |
- description: APLL1 and APLL2 divider for IEC |
| 96 |
- description: APLL1 and APLL2 divider for I2S port 5 |
| 97 |
- description: APLL1 and APLL2 divider for I2S port 6 |
| 98 |
- description: APLL1 and APLL2 divider for I2S port 7 |
| 99 |
- description: APLL1 and APLL2 divider for I2S port 8 |
| 100 |
- description: APLL1 and APLL2 divider for I2S port 9 |
| 101 |
- description: Top mux for audio subsystem |
| 102 |
- description: 26MHz clock for audio subsystem |
| 103 |
|
| 104 |
clock-names: |
| 105 |
items: |
| 106 |
- const: aud_afe_clk |
| 107 |
- const: aud_dac_clk |
| 108 |
- const: aud_dac_predis_clk |
| 109 |
- const: aud_adc_clk |
| 110 |
- const: aud_adda6_adc_clk |
| 111 |
- const: aud_apll22m_clk |
| 112 |
- const: aud_apll24m_clk |
| 113 |
- const: aud_apll1_tuner_clk |
| 114 |
- const: aud_apll2_tuner_clk |
| 115 |
- const: aud_tdm_clk |
| 116 |
- const: aud_tml_clk |
| 117 |
- const: aud_nle |
| 118 |
- const: aud_dac_hires_clk |
| 119 |
- const: aud_adc_hires_clk |
| 120 |
- const: aud_adc_hires_tml |
| 121 |
- const: aud_adda6_adc_hires_clk |
| 122 |
- const: aud_3rd_dac_clk |
| 123 |
- const: aud_3rd_dac_predis_clk |
| 124 |
- const: aud_3rd_dac_tml |
| 125 |
- const: aud_3rd_dac_hires_clk |
| 126 |
- const: aud_infra_clk |
| 127 |
- const: aud_infra_26m_clk |
| 128 |
- const: top_mux_audio |
| 129 |
- const: top_mux_audio_int |
| 130 |
- const: top_mainpll_d4_d4 |
| 131 |
- const: top_mux_aud_1 |
| 132 |
- const: top_apll1_ck |
| 133 |
- const: top_mux_aud_2 |
| 134 |
- const: top_apll2_ck |
| 135 |
- const: top_mux_aud_eng1 |
| 136 |
- const: top_apll1_d4 |
| 137 |
- const: top_mux_aud_eng2 |
| 138 |
- const: top_apll2_d4 |
| 139 |
- const: top_i2s0_m_sel |
| 140 |
- const: top_i2s1_m_sel |
| 141 |
- const: top_i2s2_m_sel |
| 142 |
- const: top_i2s3_m_sel |
| 143 |
- const: top_i2s4_m_sel |
| 144 |
- const: top_i2s5_m_sel |
| 145 |
- const: top_i2s6_m_sel |
| 146 |
- const: top_i2s7_m_sel |
| 147 |
- const: top_i2s8_m_sel |
| 148 |
- const: top_i2s9_m_sel |
| 149 |
- const: top_apll12_div0 |
| 150 |
- const: top_apll12_div1 |
| 151 |
- const: top_apll12_div2 |
| 152 |
- const: top_apll12_div3 |
| 153 |
- const: top_apll12_div4 |
| 154 |
- const: top_apll12_divb |
| 155 |
- const: top_apll12_div5 |
| 156 |
- const: top_apll12_div6 |
| 157 |
- const: top_apll12_div7 |
| 158 |
- const: top_apll12_div8 |
| 159 |
- const: top_apll12_div9 |
| 160 |
- const: top_mux_audio_h |
| 161 |
- const: top_clk26m_clk |
| 162 |
|
| 163 |
required: |
| 164 |
- compatible |
| 165 |
- interrupts |
| 166 |
- resets |
| 167 |
- reset-names |
| 168 |
- mediatek,apmixedsys |
| 169 |
- mediatek,infracfg |
| 170 |
- mediatek,topckgen |
| 171 |
- power-domains |
| 172 |
- clocks |
| 173 |
- clock-names |
| 174 |
|
| 175 |
additionalProperties: false |
| 176 |
|
| 177 |
examples: |
| 178 |
- | |
| 179 |
#include <dt-bindings/clock/mt8192-clk.h> |
| 180 |
#include <dt-bindings/interrupt-controller/arm-gic.h> |
| 181 |
#include <dt-bindings/interrupt-controller/irq.h> |
| 182 |
#include <dt-bindings/power/mt8192-power.h> |
| 183 |
#include <dt-bindings/reset/mt8192-resets.h> |
| 184 |
|
| 185 |
afe: mt8192-afe-pcm { |
| 186 |
compatible = "mediatek,mt8192-audio"; |
| 187 |
interrupts = <GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH>; |
| 188 |
clocks = <&audsys CLK_AUD_AFE>, <&audsys CLK_AUD_DAC>, |
| 189 |
<&audsys CLK_AUD_DAC_PREDIS>, <&audsys CLK_AUD_ADC>, |
| 190 |
<&audsys CLK_AUD_ADDA6_ADC>, <&audsys CLK_AUD_22M>, |
| 191 |
<&audsys CLK_AUD_24M>, <&audsys CLK_AUD_APLL_TUNER>, |
| 192 |
<&audsys CLK_AUD_APLL2_TUNER>, <&audsys CLK_AUD_TDM>, |
| 193 |
<&audsys CLK_AUD_TML>, <&audsys CLK_AUD_NLE>, |
| 194 |
<&audsys CLK_AUD_DAC_HIRES>, <&audsys CLK_AUD_ADC_HIRES>, |
| 195 |
<&audsys CLK_AUD_ADC_HIRES_TML>, <&audsys CLK_AUD_ADDA6_ADC_HIRES>, |
| 196 |
<&audsys CLK_AUD_3RD_DAC>, <&audsys CLK_AUD_3RD_DAC_PREDIS>, |
| 197 |
<&audsys CLK_AUD_3RD_DAC_TML>, <&audsys CLK_AUD_3RD_DAC_HIRES>, |
| 198 |
<&infracfg CLK_INFRA_AUDIO>, <&infracfg CLK_INFRA_AUDIO_26M_B>, |
| 199 |
<&topckgen CLK_TOP_AUDIO_SEL>, <&topckgen CLK_TOP_AUD_INTBUS_SEL>, |
| 200 |
<&topckgen CLK_TOP_MAINPLL_D4_D4>, <&topckgen CLK_TOP_AUD_1_SEL>, |
| 201 |
<&topckgen CLK_TOP_APLL1>, <&topckgen CLK_TOP_AUD_2_SEL>, |
| 202 |
<&topckgen CLK_TOP_APLL2>, <&topckgen CLK_TOP_AUD_ENGEN1_SEL>, |
| 203 |
<&topckgen CLK_TOP_APLL1_D4>, <&topckgen CLK_TOP_AUD_ENGEN2_SEL>, |
| 204 |
<&topckgen CLK_TOP_APLL2_D4>, <&topckgen CLK_TOP_APLL_I2S0_M_SEL>, |
| 205 |
<&topckgen CLK_TOP_APLL_I2S1_M_SEL>, <&topckgen CLK_TOP_APLL_I2S2_M_SEL>, |
| 206 |
<&topckgen CLK_TOP_APLL_I2S3_M_SEL>, <&topckgen CLK_TOP_APLL_I2S4_M_SEL>, |
| 207 |
<&topckgen CLK_TOP_APLL_I2S5_M_SEL>, <&topckgen CLK_TOP_APLL_I2S6_M_SEL>, |
| 208 |
<&topckgen CLK_TOP_APLL_I2S7_M_SEL>, <&topckgen CLK_TOP_APLL_I2S8_M_SEL>, |
| 209 |
<&topckgen CLK_TOP_APLL_I2S9_M_SEL>, <&topckgen CLK_TOP_APLL12_DIV0>, |
| 210 |
<&topckgen CLK_TOP_APLL12_DIV1>, <&topckgen CLK_TOP_APLL12_DIV2>, |
| 211 |
<&topckgen CLK_TOP_APLL12_DIV3>, <&topckgen CLK_TOP_APLL12_DIV4>, |
| 212 |
<&topckgen CLK_TOP_APLL12_DIVB>, <&topckgen CLK_TOP_APLL12_DIV5>, |
| 213 |
<&topckgen CLK_TOP_APLL12_DIV6>, <&topckgen CLK_TOP_APLL12_DIV7>, |
| 214 |
<&topckgen CLK_TOP_APLL12_DIV8>, <&topckgen CLK_TOP_APLL12_DIV9>, |
| 215 |
<&topckgen CLK_TOP_AUDIO_H_SEL>, <&clk26m>; |
| 216 |
clock-names = "aud_afe_clk", "aud_dac_clk", |
| 217 |
"aud_dac_predis_clk", "aud_adc_clk", |
| 218 |
"aud_adda6_adc_clk", "aud_apll22m_clk", |
| 219 |
"aud_apll24m_clk", "aud_apll1_tuner_clk", |
| 220 |
"aud_apll2_tuner_clk", "aud_tdm_clk", |
| 221 |
"aud_tml_clk", "aud_nle", |
| 222 |
"aud_dac_hires_clk", "aud_adc_hires_clk", |
| 223 |
"aud_adc_hires_tml", "aud_adda6_adc_hires_clk", |
| 224 |
"aud_3rd_dac_clk", "aud_3rd_dac_predis_clk", |
| 225 |
"aud_3rd_dac_tml", "aud_3rd_dac_hires_clk", |
| 226 |
"aud_infra_clk", "aud_infra_26m_clk", |
| 227 |
"top_mux_audio", "top_mux_audio_int", |
| 228 |
"top_mainpll_d4_d4", "top_mux_aud_1", |
| 229 |
"top_apll1_ck", "top_mux_aud_2", |
| 230 |
"top_apll2_ck", "top_mux_aud_eng1", |
| 231 |
"top_apll1_d4", "top_mux_aud_eng2", |
| 232 |
"top_apll2_d4", "top_i2s0_m_sel", |
| 233 |
"top_i2s1_m_sel", "top_i2s2_m_sel", |
| 234 |
"top_i2s3_m_sel", "top_i2s4_m_sel", |
| 235 |
"top_i2s5_m_sel", "top_i2s6_m_sel", |
| 236 |
"top_i2s7_m_sel", "top_i2s8_m_sel", |
| 237 |
"top_i2s9_m_sel", "top_apll12_div0", |
| 238 |
"top_apll12_div1", "top_apll12_div2", |
| 239 |
"top_apll12_div3", "top_apll12_div4", |
| 240 |
"top_apll12_divb", "top_apll12_div5", |
| 241 |
"top_apll12_div6", "top_apll12_div7", |
| 242 |
"top_apll12_div8", "top_apll12_div9", |
| 243 |
"top_mux_audio_h", "top_clk26m_clk"; |
| 244 |
memory-region = <&afe_dma_mem>; |
| 245 |
power-domains = <&scpsys MT8192_POWER_DOMAIN_AUDIO>; |
| 246 |
resets = <&watchdog MT8192_TOPRGU_AUDIO_SW_RST>; |
| 247 |
reset-names = "audiosys"; |
| 248 |
mediatek,apmixedsys = <&apmixedsys>; |
| 249 |
mediatek,infracfg = <&infracfg>; |
| 250 |
mediatek,topckgen = <&topckgen>; |
| 251 |
}; |
| 252 |
|
| 253 |
... |