Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: dt-bindings: mt8192-afe-pcm: Fix clocks and clock-names

Both clocks and clock-names are missing (a lot of) entries: add
all the used audio clocks and their description and also fix the
example node.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Fixes: c861af7861aa ("ASoC: dt-bindings: mediatek: mt8192: re-add audio afe document")
Link: https://patch.msgid.link/20260115125624.73598-3-angelogioacchino.delregno@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

AngeloGioacchino Del Regno and committed by
Mark Brown
60e8451b 4711b292

+162 -14
+162 -14
Documentation/devicetree/bindings/sound/mt8192-afe-pcm.yaml
··· 47 47 - description: AFE clock 48 48 - description: ADDA DAC clock 49 49 - description: ADDA DAC pre-distortion clock 50 - - description: audio infra sys clock 51 - - description: audio infra 26M 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 52 103 53 104 clock-names: 54 105 items: 55 106 - const: aud_afe_clk 56 107 - const: aud_dac_clk 57 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 58 126 - const: aud_infra_clk 59 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 60 162 61 163 required: 62 164 - compatible ··· 185 83 afe: mt8192-afe-pcm { 186 84 compatible = "mediatek,mt8192-audio"; 187 85 interrupts = <GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH>; 86 + clocks = <&audsys CLK_AUD_AFE>, <&audsys CLK_AUD_DAC>, 87 + <&audsys CLK_AUD_DAC_PREDIS>, <&audsys CLK_AUD_ADC>, 88 + <&audsys CLK_AUD_ADDA6_ADC>, <&audsys CLK_AUD_22M>, 89 + <&audsys CLK_AUD_24M>, <&audsys CLK_AUD_APLL_TUNER>, 90 + <&audsys CLK_AUD_APLL2_TUNER>, <&audsys CLK_AUD_TDM>, 91 + <&audsys CLK_AUD_TML>, <&audsys CLK_AUD_NLE>, 92 + <&audsys CLK_AUD_DAC_HIRES>, <&audsys CLK_AUD_ADC_HIRES>, 93 + <&audsys CLK_AUD_ADC_HIRES_TML>, <&audsys CLK_AUD_ADDA6_ADC_HIRES>, 94 + <&audsys CLK_AUD_3RD_DAC>, <&audsys CLK_AUD_3RD_DAC_PREDIS>, 95 + <&audsys CLK_AUD_3RD_DAC_TML>, <&audsys CLK_AUD_3RD_DAC_HIRES>, 96 + <&infracfg CLK_INFRA_AUDIO>, <&infracfg CLK_INFRA_AUDIO_26M_B>, 97 + <&topckgen CLK_TOP_AUDIO_SEL>, <&topckgen CLK_TOP_AUD_INTBUS_SEL>, 98 + <&topckgen CLK_TOP_MAINPLL_D4_D4>, <&topckgen CLK_TOP_AUD_1_SEL>, 99 + <&topckgen CLK_TOP_APLL1>, <&topckgen CLK_TOP_AUD_2_SEL>, 100 + <&topckgen CLK_TOP_APLL2>, <&topckgen CLK_TOP_AUD_ENGEN1_SEL>, 101 + <&topckgen CLK_TOP_APLL1_D4>, <&topckgen CLK_TOP_AUD_ENGEN2_SEL>, 102 + <&topckgen CLK_TOP_APLL2_D4>, <&topckgen CLK_TOP_APLL_I2S0_M_SEL>, 103 + <&topckgen CLK_TOP_APLL_I2S1_M_SEL>, <&topckgen CLK_TOP_APLL_I2S2_M_SEL>, 104 + <&topckgen CLK_TOP_APLL_I2S3_M_SEL>, <&topckgen CLK_TOP_APLL_I2S4_M_SEL>, 105 + <&topckgen CLK_TOP_APLL_I2S5_M_SEL>, <&topckgen CLK_TOP_APLL_I2S6_M_SEL>, 106 + <&topckgen CLK_TOP_APLL_I2S7_M_SEL>, <&topckgen CLK_TOP_APLL_I2S8_M_SEL>, 107 + <&topckgen CLK_TOP_APLL_I2S9_M_SEL>, <&topckgen CLK_TOP_APLL12_DIV0>, 108 + <&topckgen CLK_TOP_APLL12_DIV1>, <&topckgen CLK_TOP_APLL12_DIV2>, 109 + <&topckgen CLK_TOP_APLL12_DIV3>, <&topckgen CLK_TOP_APLL12_DIV4>, 110 + <&topckgen CLK_TOP_APLL12_DIVB>, <&topckgen CLK_TOP_APLL12_DIV5>, 111 + <&topckgen CLK_TOP_APLL12_DIV6>, <&topckgen CLK_TOP_APLL12_DIV7>, 112 + <&topckgen CLK_TOP_APLL12_DIV8>, <&topckgen CLK_TOP_APLL12_DIV9>, 113 + <&topckgen CLK_TOP_AUDIO_H_SEL>, <&clk26m>; 114 + clock-names = "aud_afe_clk", "aud_dac_clk", 115 + "aud_dac_predis_clk", "aud_adc_clk", 116 + "aud_adda6_adc_clk", "aud_apll22m_clk", 117 + "aud_apll24m_clk", "aud_apll1_tuner_clk", 118 + "aud_apll2_tuner_clk", "aud_tdm_clk", 119 + "aud_tml_clk", "aud_nle", 120 + "aud_dac_hires_clk", "aud_adc_hires_clk", 121 + "aud_adc_hires_tml", "aud_adda6_adc_hires_clk", 122 + "aud_3rd_dac_clk", "aud_3rd_dac_predis_clk", 123 + "aud_3rd_dac_tml", "aud_3rd_dac_hires_clk", 124 + "aud_infra_clk", "aud_infra_26m_clk", 125 + "top_mux_audio", "top_mux_audio_int", 126 + "top_mainpll_d4_d4", "top_mux_aud_1", 127 + "top_apll1_ck", "top_mux_aud_2", 128 + "top_apll2_ck", "top_mux_aud_eng1", 129 + "top_apll1_d4", "top_mux_aud_eng2", 130 + "top_apll2_d4", "top_i2s0_m_sel", 131 + "top_i2s1_m_sel", "top_i2s2_m_sel", 132 + "top_i2s3_m_sel", "top_i2s4_m_sel", 133 + "top_i2s5_m_sel", "top_i2s6_m_sel", 134 + "top_i2s7_m_sel", "top_i2s8_m_sel", 135 + "top_i2s9_m_sel", "top_apll12_div0", 136 + "top_apll12_div1", "top_apll12_div2", 137 + "top_apll12_div3", "top_apll12_div4", 138 + "top_apll12_divb", "top_apll12_div5", 139 + "top_apll12_div6", "top_apll12_div7", 140 + "top_apll12_div8", "top_apll12_div9", 141 + "top_mux_audio_h", "top_clk26m_clk"; 142 + memory-region = <&afe_dma_mem>; 143 + power-domains = <&scpsys MT8192_POWER_DOMAIN_AUDIO>; 188 144 resets = <&watchdog MT8192_TOPRGU_AUDIO_SW_RST>; 189 145 reset-names = "audiosys"; 190 146 mediatek,apmixedsys = <&apmixedsys>; 191 147 mediatek,infracfg = <&infracfg>; 192 148 mediatek,topckgen = <&topckgen>; 193 - power-domains = <&scpsys MT8192_POWER_DOMAIN_AUDIO>; 194 - clocks = <&audsys CLK_AUD_AFE>, 195 - <&audsys CLK_AUD_DAC>, 196 - <&audsys CLK_AUD_DAC_PREDIS>, 197 - <&infracfg CLK_INFRA_AUDIO>, 198 - <&infracfg CLK_INFRA_AUDIO_26M_B>; 199 - clock-names = "aud_afe_clk", 200 - "aud_dac_clk", 201 - "aud_dac_predis_clk", 202 - "aud_infra_clk", 203 - "aud_infra_26m_clk"; 204 - memory-region = <&afe_dma_mem>; 205 149 }; 206 150 207 151 ...