/linux-6.12.1/Documentation/devicetree/bindings/sound/ |
D | mt8195-mt6359.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/mt8195-mt6359.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: MediaTek MT8195 ASoC sound card driver 10 - Trevor Wu <trevor.wu@mediatek.com> 13 This binding describes the MT8195 sound card. 16 - $ref: sound-card-common.yaml# 21 - mediatek,mt8195_mt6359_rt1019_rt5682 22 - mediatek,mt8195_mt6359_rt1011_rt5682 [all …]
|
D | mt8195-afe-pcm.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/mt8195-afe-pcm.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Mediatek AFE PCM controller for mt8195 10 - Trevor Wu <trevor.wu@mediatek.com> 14 const: mediatek,mt8195-audio 25 reset-names: 28 memory-region: 31 Shared memory region for AFE memif. A "shared-dma-pool". [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/dsp/ |
D | mediatek,mt8195-dsp.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/dsp/mediatek,mt8195-dsp.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Mediatek mt8195 DSP core 10 - YC Hung <yc.hung@mediatek.com> 13 Some boards from mt8195 contain a DSP core used for 14 advanced pre- and post- audio processing. 18 const: mediatek,mt8195-dsp 22 - description: Address and size of the DSP Cfg registers [all …]
|
/linux-6.12.1/sound/soc/mediatek/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 17 tristate "ASoc Audio driver for MT2701 with CS42448 codec" 28 tristate "ASoc Audio driver for MT2701 with WM8960 codec" 48 tristate "ASoc Audio driver for MT6797 with MT6351 codec" 68 tristate "ASoc Audio driver for MT7986 with WM8960 codec" 88 tristate "ASoC Audio driver for MT8173 with MAX98090 codec" 93 with the MAX98090 audio codec. 98 tristate "ASoC Audio driver for MT8173 with RT5650 codec" 104 with the RT5650 audio codec. 109 tristate "ASoC Audio driver for MT8173 with RT5650 RT5514 codecs" [all …]
|
/linux-6.12.1/sound/soc/sof/mediatek/ |
D | Kconfig | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 4 bool "SOF support for MTK audio DSPs" 22 This option is not user-selectable but automagically handled by 26 tristate "SOF support for MT8186 audio DSP" 36 tristate "SOF support for MT8195 audio DSP" 41 using the mt8195 processors.
|
/linux-6.12.1/drivers/clk/mediatek/ |
D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 2 obj-$(CONFIG_COMMON_CLK_MEDIATEK) += clk-mtk.o clk-pll.o clk-gate.o clk-apmixed.o clk-cpumux.o rese… 3 obj-$(CONFIG_COMMON_CLK_MEDIATEK_FHCTL) += clk-fhctl.o clk-pllfh.o 5 obj-$(CONFIG_COMMON_CLK_MT6765) += clk-mt6765.o 6 obj-$(CONFIG_COMMON_CLK_MT6765_AUDIOSYS) += clk-mt6765-audio.o 7 obj-$(CONFIG_COMMON_CLK_MT6765_CAMSYS) += clk-mt6765-cam.o 8 obj-$(CONFIG_COMMON_CLK_MT6765_IMGSYS) += clk-mt6765-img.o 9 obj-$(CONFIG_COMMON_CLK_MT6765_MIPI0ASYS) += clk-mt6765-mipi0a.o 10 obj-$(CONFIG_COMMON_CLK_MT6765_MMSYS) += clk-mt6765-mm.o 11 obj-$(CONFIG_COMMON_CLK_MT6765_VCODECSYS) += clk-mt6765-vcodec.o [all …]
|
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 360 to PCI-E and USB. 367 to audio consumers such as I2S and TDM. 390 to PCI-E and USB. 875 bool "Clock driver for MediaTek MT8195" 881 This driver supports MediaTek MT8195 clocks. 884 tristate "Clock driver for MediaTek MT8195 apusys" 888 This driver supports MediaTek MT8195 AI Processor Unit System clocks. 891 tristate "Clock driver for MediaTek MT8195 audsys" 895 This driver supports MediaTek MT8195 audsys clocks. [all …]
|
/linux-6.12.1/sound/soc/sof/mediatek/mt8195/ |
D | mt8195.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 9 * Hardware interface for audio DSP on mt8195 24 #include "../../sof-of-dev.h" 25 #include "../../sof-audio.h" 27 #include "../mtk-adsp-common.h" 28 #include "mt8195.h" 29 #include "mt8195-clk.h" 44 struct adsp_priv *priv = sdev->pdata->hw_pdata; in mt8195_send_msg() 46 sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data, in mt8195_send_msg() 47 msg->msg_size); in mt8195_send_msg() [all …]
|
D | mt8195-clk.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 7 // Hardware interface for mt8195 DSP clock 11 #include "mt8195.h" 12 #include "mt8195-clk.h" 14 #include "../../sof-audio.h" 27 struct device *dev = sdev->dev; in mt8195_adsp_init_clock() 28 struct adsp_priv *priv = sdev->pdata->hw_pdata; in mt8195_adsp_init_clock() 31 priv->clk = devm_kcalloc(dev, ADSP_CLK_MAX, sizeof(*priv->clk), GFP_KERNEL); in mt8195_adsp_init_clock() 33 if (!priv->clk) in mt8195_adsp_init_clock() 34 return -ENOMEM; in mt8195_adsp_init_clock() [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/display/mediatek/ |
D | mediatek,dp.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Chun-Kuang Hu <chunkuang.hu@kernel.org> 11 - Jitao shi <jitao.shi@mediatek.com> 15 which are not supported for eDP. For example, audio is not supported for 24 - mediatek,mt8188-dp-tx 25 - mediatek,mt8188-edp-tx 26 - mediatek,mt8195-dp-tx 27 - mediatek,mt8195-edp-tx [all …]
|
/linux-6.12.1/arch/arm64/boot/dts/mediatek/ |
D | mt8195-cherry-dojo-r1.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 5 /dts-v1/; 6 #include "mt8195-cherry.dtsi" 10 chassis-type = "convertible"; 11 compatible = "google,dojo-sku7", "google,dojo-sku5", 12 "google,dojo-sku3", "google,dojo-sku1", 13 "google,dojo", "mediatek,mt8195"; 18 realtek,amic-delay-ms = <250>; 25 reset-gpios = <&pio 100 GPIO_ACTIVE_LOW>; 26 sound-name-prefix = "Right"; [all …]
|
D | mt8195.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 7 /dts-v1/; 8 #include <dt-bindings/clock/mt8195-clk.h> 9 #include <dt-bindings/gce/mt8195-gce.h> 10 #include <dt-bindings/interrupt-controller/arm-gic.h> 11 #include <dt-bindings/interrupt-controller/irq.h> 12 #include <dt-bindings/memory/mt8195-memory-port.h> 13 #include <dt-bindings/phy/phy.h> 14 #include <dt-bindings/pinctrl/mt8195-pinfunc.h> 15 #include <dt-bindings/power/mt8195-power.h> [all …]
|
D | mt8395-genio-1200-evk.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 7 /dts-v1/; 9 #include "mt8195.dtsi" 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/input/input.h> 13 #include <dt-bindings/interrupt-controller/irq.h> 14 #include <dt-bindings/pinctrl/mt8195-pinfunc.h> 15 #include <dt-bindings/regulator/mediatek,mt6360-regulator.h> 16 #include <dt-bindings/spmi/spmi.h> 17 #include <dt-bindings/usb/pd.h> [all …]
|
D | mt8195-cherry.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/spmi/spmi.h> 8 #include "mt8195.dtsi" 25 backlight_lcd0: backlight-lcd0 { 26 compatible = "pwm-backlight"; 27 brightness-levels = <0 1023>; 28 default-brightness-level = <576>; 29 enable-gpios = <&pio 82 GPIO_ACTIVE_HIGH>; 30 num-interpolated-steps = <1023>; [all …]
|
D | mt8186.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 * Author: Allen-KH Cheng <allen-kh.cheng@mediatek.com> 6 /dts-v1/; 7 #include <dt-bindings/clock/mt8186-clk.h> 8 #include <dt-bindings/gce/mt8186-gce.h> 9 #include <dt-bindings/interrupt-controller/arm-gic.h> 10 #include <dt-bindings/interrupt-controller/irq.h> 11 #include <dt-bindings/memory/mt8186-memory-port.h> 12 #include <dt-bindings/pinctrl/mt8186-pinfunc.h> 13 #include <dt-bindings/power/mt8186-power.h> [all …]
|
/linux-6.12.1/sound/soc/mediatek/mt8195/ |
D | mt8195-dai-pcm.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * MediaTek ALSA SoC Audio DAI PCM I/F Control 12 #include "mt8195-afe-clk.h" 13 #include "mt8195-afe-common.h" 14 #include "mt8195-reg.h" 60 return -EINVAL; in mtk_dai_pcm_mode() 122 struct snd_pcm_runtime * const runtime = substream->runtime; in mtk_dai_pcm_configure() 124 struct mt8195_afe_private *afe_priv = afe->platform_priv; in mtk_dai_pcm_configure() 130 unsigned int bit_width = dai->sample_bits; in mtk_dai_pcm_configure() 136 if (dai->id != MT8195_AFE_IO_PCM) in mtk_dai_pcm_configure() [all …]
|
D | mt8195-afe-common.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * mt8195-afe-common.h -- Mediatek 8195 audio driver definitions 16 #include "../common/mtk-base-afe.h" 39 MT8195_AFE_MEMIF_NUM = (MT8195_AFE_MEMIF_END - MT8195_AFE_MEMIF_START), 51 (MT8195_AFE_IO_ETDM_END - MT8195_AFE_IO_ETDM_START), 56 MT8195_AFE_IO_NUM = (MT8195_AFE_IO_END - MT8195_AFE_IO_START), 58 MT8195_DAI_NUM = (MT8195_DAI_END - MT8195_DAI_START),
|
D | mt8195-afe-clk.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * mt8195-afe-clk.c -- Mediatek 8195 afe clock ctrl 12 #include "mt8195-afe-common.h" 13 #include "mt8195-afe-clk.h" 14 #include "mt8195-reg.h" 15 #include "mt8195-audsys-clk.h" 209 return -EINVAL; in mt8195_afe_init_apll_tuner() 211 cfg->ref_cnt = 0; in mt8195_afe_init_apll_tuner() 212 spin_lock_init(&cfg->ctrl_lock); in mt8195_afe_init_apll_tuner() 223 return -EINVAL; in mt8195_afe_setup_apll_tuner() [all …]
|
D | mt8195-dai-adda.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * MediaTek ALSA SoC Audio DAI ADDA Control 12 #include "mt8195-afe-clk.h" 13 #include "mt8195-afe-common.h" 14 #include "mt8195-reg.h" 15 #include "../common/mtk-dai-adda-common.h" 40 struct mt8195_afe_private *afe_priv = afe->platform_priv; in mt8195_adda_mtkaif_init() 41 struct mtkaif_param *param = &afe_priv->mtkaif_params; in mt8195_adda_mtkaif_init() 51 regmap_update_bits(afe->regmap, AFE_ADDA_MTKAIF_CFG0, mask, val); in mt8195_adda_mtkaif_init() 52 regmap_update_bits(afe->regmap, AFE_ADDA6_MTKAIF_CFG0, mask, val); in mt8195_adda_mtkaif_init() [all …]
|
D | mt8195-afe-pcm.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #include <linux/dma-mapping.h> 20 #include "mt8195-afe-common.h" 21 #include "mt8195-afe-clk.h" 22 #include "mt8195-reg.h" 23 #include "../common/mtk-afe-platform-driver.h" 24 #include "../common/mtk-afe-fe-dai.h" 81 return -EINVAL; in mt8195_afe_fs_timing() 91 int id = snd_soc_rtd_to_cpu(rtd, 0)->id; in mt8195_memif_fs() 92 struct mtk_base_afe_memif *memif = &afe->memif[id]; in mt8195_memif_fs() [all …]
|
D | mt8195-dai-etdm.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * MediaTek ALSA SoC Audio DAI eTDM Control 14 #include "mt8195-afe-clk.h" 15 #include "mt8195-afe-common.h" 16 #include "mt8195-reg.h" 117 int cowork_slv_id[MT8195_AFE_IO_ETDM_NUM - 1]; //dai_id 180 return -EINVAL; in get_etdm_fs_timing() 201 etdm_reg->con0 = ETDM_IN1_CON0; in get_etdm_reg() 202 etdm_reg->con1 = ETDM_IN1_CON1; in get_etdm_reg() 203 etdm_reg->con2 = ETDM_IN1_CON2; in get_etdm_reg() [all …]
|
D | mt8195-reg.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * mt8195-reg.h -- Mediatek 8195 audio driver reg definition 2591 #define AFE_MPHONE_MULTI_CON1_BIT_NUM(x) ((((x) - 1) & 0x1f) << 8) 2595 #define AFE_MPHONE_MULTI_CON1_CH_NUM(x) ((((x) >> 1) - 1) & 0x3) 2682 #define ETDM_CON0_CH_NUM(x) (((x) - 1) << 23) 2684 #define ETDM_CON0_WORD_LEN(x) (((x) - 1) << 16) 2686 #define ETDM_CON0_BIT_LEN(x) (((x) - 1) << 11) 2698 #define ETDM_IN_CON1_LRCK_WIDTH(x) (((x) - 1) << 20) 2701 #define ETDM_OUT_CON1_LRCK_WIDTH(x) (((x) - 1) << 19) 2705 #define ETDM_IN_CON2_MULTI_IP_TOTAL_CH(x) (((x) - 1) << 15)
|
/linux-6.12.1/drivers/pmdomain/mediatek/ |
D | mt8195-pm-domains.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Author: Chun-Jie Chen <chun-jie.chen@mediatek.com> 10 #include "mtk-pm-domains.h" 11 #include <dt-bindings/power/mt8195-power.h> 14 * MT8195 power domain support 112 .name = "audio",
|
/linux-6.12.1/drivers/gpu/drm/mediatek/ |
D | mtk_dp.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2019-2022 MediaTek Inc. 18 #include <linux/arm-smccc.h> 23 #include <linux/media-bus-format.h> 24 #include <linux/nvmem-consumer.h> 33 #include <sound/hdmi-codec.h> 129 /* For audio */ 135 /* protect the plugged_cb as it's used in both bridge ops and audio */ 402 .name = "mtk-dp-registers", 415 ret = regmap_read(mtk_dp->regs, offset, &read_val); in mtk_dp_read() [all …]
|