Home
last modified time | relevance | path

Searched +full:mt2701 +full:- +full:audio (Results 1 – 24 of 24) sorted by relevance

/linux-6.14.4/Documentation/devicetree/bindings/sound/
Dmediatek,mt2701-wm8960.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/sound/mediatek,mt2701-wm8960.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: MediaTek MT2701 with WM8960 CODEC
10 - Kartik Agarwala <[email protected]>
14 const: mediatek,mt2701-wm8960-machine
18 description: The phandle of MT2701 ASoC platform.
20 audio-routing:
21 $ref: /schemas/types.yaml#/definitions/non-unique-string-array
[all …]
Dmt2701-cs42448.txt1 MT2701 with CS42448 CODEC
4 - compatible: "mediatek,mt2701-cs42448-machine"
5 - mediatek,platform: the phandle of MT2701 ASoC platform
6 - audio-routing: a list of the connections between audio
7 - mediatek,audio-codec: the phandles of cs42448 codec
8 - mediatek,audio-codec-bt-mrg the phandles of bt-sco dummy codec
9 - pinctrl-names: Should contain only one value - "default"
10 - pinctrl-0: Should specify pin control groups used for this controller.
11 - i2s1-in-sel-gpio1, i2s1-in-sel-gpio2: Should specify two gpio pins to
12 control I2S1-in mux.
[all …]
Dmediatek,mt2701-audio.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/sound/mediatek,mt2701-audio.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: MediaTek Audio Front End (AFE) PCM controller for mt2701
13 - Eugen Hristev <[email protected]>
18 - mediatek,mt2701-audio
19 - mediatek,mt7622-audio
23 - description: AFE interrupt
24 - description: ASYS interrupt
[all …]
/linux-6.14.4/sound/soc/mediatek/mt2701/
Dmt2701-cs42448.c1 // SPDX-License-Identifier: GPL-2.0
3 * mt2701-cs42448.c -- MT2701 CS42448 ALSA SoC machine driver
16 #include "mt2701-afe-common.h"
40 ucontrol->value.integer.value[0] = priv->i2s1_in_mux; in mt2701_cs42448_i2sin1_mux_get()
50 if (ucontrol->value.integer.value[0] == priv->i2s1_in_mux) in mt2701_cs42448_i2sin1_mux_set()
53 switch (ucontrol->value.integer.value[0]) { in mt2701_cs42448_i2sin1_mux_set()
55 gpiod_set_value(priv->i2s1_in_mux_sel_1, 0); in mt2701_cs42448_i2sin1_mux_set()
56 gpiod_set_value(priv->i2s1_in_mux_sel_2, 0); in mt2701_cs42448_i2sin1_mux_set()
59 gpiod_set_value(priv->i2s1_in_mux_sel_1, 1); in mt2701_cs42448_i2sin1_mux_set()
60 gpiod_set_value(priv->i2s1_in_mux_sel_2, 0); in mt2701_cs42448_i2sin1_mux_set()
[all …]
Dmt2701-wm8960.c1 // SPDX-License-Identifier: GPL-2.0
3 * mt2701-wm8960.c -- MT2701 WM8960 ALSA SoC machine driver
12 #include "mt2701-afe-common.h"
59 DAILINK_COMP_ARRAY(COMP_CODEC(NULL, "wm8960-hifi")),
65 .name = "wm8960-playback",
66 .stream_name = "wm8960-playback",
74 .name = "wm8960-capture",
75 .stream_name = "wm8960-capture",
84 .name = "wm8960-codec",
94 .name = "mt2701-wm8960",
[all …]
Dmt2701-afe-common.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * mt2701-afe-common.h -- Mediatek 2701 audio driver definitions
15 #include "mt2701-reg.h"
16 #include "../common/mtk-base-afe.h"
Dmt2701-afe-clock-ctrl.c1 // SPDX-License-Identifier: GPL-2.0
3 * mt2701-afe-clock-ctrl.c -- Mediatek 2701 afe clock ctrl
10 #include "mt2701-afe-common.h"
11 #include "mt2701-afe-clock-ctrl.h"
27 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_init_clock()
31 afe_priv->base_ck[i] = devm_clk_get(afe->dev, base_clks[i]); in mt2701_init_clock()
32 if (IS_ERR(afe_priv->base_ck[i])) { in mt2701_init_clock()
33 dev_err(afe->dev, "failed to get %s\n", base_clks[i]); in mt2701_init_clock()
34 return PTR_ERR(afe_priv->base_ck[i]); in mt2701_init_clock()
39 for (i = 0; i < afe_priv->soc->i2s_num; i++) { in mt2701_init_clock()
[all …]
Dmt2701-reg.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * mt2701-reg.h -- Mediatek 2701 audio driver reg definition
Dmt2701-afe-pcm.c1 // SPDX-License-Identifier: GPL-2.0
17 #include "mt2701-afe-common.h"
18 #include "mt2701-afe-clock-ctrl.h"
19 #include "../common/mtk-afe-platform-driver.h"
20 #include "../common/mtk-afe-fe-dai.h"
84 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_dai_num_to_i2s()
85 int val = num - MT2701_IO_I2S; in mt2701_dai_num_to_i2s()
87 if (val < 0 || val >= afe_priv->soc->i2s_num) { in mt2701_dai_num_to_i2s()
88 dev_err(afe->dev, "%s, num not available, num %d, val %d\n", in mt2701_dai_num_to_i2s()
90 return -EINVAL; in mt2701_dai_num_to_i2s()
[all …]
/linux-6.14.4/sound/soc/mediatek/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
7 tristate "ASoC support for Mediatek MT2701 chip"
11 This adds ASoC driver for Mediatek MT2701 boards
17 tristate "ASoc Audio driver for MT2701 with CS42448 codec"
22 This adds ASoC driver for Mediatek MT2701 boards
28 tristate "ASoc Audio driver for MT2701 with WM8960 codec"
32 This adds ASoC driver for Mediatek MT2701 boards
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"
[all …]
/linux-6.14.4/Documentation/devicetree/bindings/arm/mediatek/
Dmediatek,audsys.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Eugen Hristev <[email protected]>
18 - items:
19 - enum:
20 - mediatek,mt2701-audsys
21 - mediatek,mt6765-audsys
22 - mediatek,mt6779-audsys
23 - mediatek,mt7622-audsys
[all …]
/linux-6.14.4/Documentation/devicetree/bindings/soc/mediatek/
Dscpsys.txt11 power/power-domain.yaml. It provides the power domains defined in
12 - include/dt-bindings/power/mt8173-power.h
13 - include/dt-bindings/power/mt6797-power.h
14 - include/dt-bindings/power/mt6765-power.h
15 - include/dt-bindings/power/mt2701-power.h
16 - include/dt-bindings/power/mt2712-power.h
17 - include/dt-bindings/power/mt7622-power.h
20 - compatible: Should be one of:
21 - "mediatek,mt2701-scpsys"
22 - "mediatek,mt2712-scpsys"
[all …]
/linux-6.14.4/arch/arm/boot/dts/mediatek/
Dmt2701-evb.dts1 // SPDX-License-Identifier: GPL-2.0
8 /dts-v1/;
9 #include <dt-bindings/gpio/gpio.h>
10 #include "mt2701.dtsi"
13 model = "MediaTek MT2701 evaluation board";
14 compatible = "mediatek,mt2701-evb", "mediatek,mt2701";
22 compatible = "mediatek,mt2701-cs42448-machine";
25 audio-routing =
42 mediatek,audio-codec = <&cs42448>;
43 mediatek,audio-codec-bt-mrg = <&bt_sco_codec>;
[all …]
Dmt2701.dtsi1 // SPDX-License-Identifier: GPL-2.0
8 #include <dt-bindings/clock/mt2701-clk.h>
9 #include <dt-bindings/phy/phy.h>
10 #include <dt-bindings/power/mt2701-power.h>
11 #include <dt-bindings/interrupt-controller/irq.h>
12 #include <dt-bindings/interrupt-controller/arm-gic.h>
13 #include <dt-bindings/memory/mt2701-larb-port.h>
14 #include <dt-bindings/reset/mt2701-resets.h>
15 #include "mt2701-pinfunc.h"
18 #address-cells = <2>;
[all …]
Dmt7623.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2017-2018 MediaTek Inc.
10 #include <dt-bindings/interrupt-controller/irq.h>
11 #include <dt-bindings/interrupt-controller/arm-gic.h>
12 #include <dt-bindings/clock/mt2701-clk.h>
13 #include <dt-bindings/pinctrl/mt7623-pinfunc.h>
14 #include <dt-bindings/power/mt2701-power.h>
15 #include <dt-bindings/gpio/gpio.h>
16 #include <dt-bindings/phy/phy.h>
17 #include <dt-bindings/reset/mt2701-resets.h>
[all …]
Dmt7623a-rfb-emmc.dts1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2017-2018 MediaTek Inc.
8 /dts-v1/;
9 #include <dt-bindings/input/input.h>
15 compatible = "mediatek,mt7623a-rfb-emmc", "mediatek,mt7623";
22 stdout-path = "serial2:115200n8";
27 proc-supply = <&mt6323_vproc_reg>;
31 proc-supply = <&mt6323_vproc_reg>;
35 proc-supply = <&mt6323_vproc_reg>;
39 proc-supply = <&mt6323_vproc_reg>;
[all …]
Dmt7623a-rfb-nand.dts1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2017-2018 MediaTek Inc.
8 /dts-v1/;
9 #include <dt-bindings/input/input.h>
15 compatible = "mediatek,mt7623a-rfb-nand", "mediatek,mt7623";
22 stdout-path = "serial2:115200n8";
27 proc-supply = <&mt6323_vproc_reg>;
31 proc-supply = <&mt6323_vproc_reg>;
35 proc-supply = <&mt6323_vproc_reg>;
39 proc-supply = <&mt6323_vproc_reg>;
[all …]
Dmt7623n-rfb-emmc.dts1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2017-2018 MediaTek Inc.
8 /dts-v1/;
9 #include <dt-bindings/input/input.h>
15 compatible = "mediatek,mt7623n-rfb-emmc", "mediatek,mt7623";
24 stdout-path = "serial2:115200n8";
28 compatible = "hdmi-connector";
31 ddc-i2c-bus = <&hdmiddc0>;
35 remote-endpoint = <&hdmi0_out>;
42 proc-supply = <&mt6323_vproc_reg>;
[all …]
/linux-6.14.4/drivers/clk/mediatek/
DMakefile1 # 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_MT6735) += clk-mt6735-apmixedsys.o clk-mt6735-infracfg.o clk-mt6735-pericfg…
6 obj-$(CONFIG_COMMON_CLK_MT6735_IMGSYS) += clk-mt6735-imgsys.o
7 obj-$(CONFIG_COMMON_CLK_MT6735_MFGCFG) += clk-mt6735-mfgcfg.o
8 obj-$(CONFIG_COMMON_CLK_MT6735_VDECSYS) += clk-mt6735-vdecsys.o
9 obj-$(CONFIG_COMMON_CLK_MT6735_VENCSYS) += clk-mt6735-vencsys.o
10 obj-$(CONFIG_COMMON_CLK_MT6765) += clk-mt6765.o
11 obj-$(CONFIG_COMMON_CLK_MT6765_AUDIOSYS) += clk-mt6765-audio.o
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
22 bool "Clock driver for MediaTek MT2701"
27 This driver supports MediaTek MT2701 basic clocks.
30 bool "Clock driver for MediaTek MT2701 mmsys"
33 This driver supports MediaTek MT2701 mmsys clocks.
36 bool "Clock driver for MediaTek MT2701 imgsys"
39 This driver supports MediaTek MT2701 imgsys clocks.
42 bool "Clock driver for MediaTek MT2701 vdecsys"
45 This driver supports MediaTek MT2701 vdecsys clocks.
48 bool "Clock driver for MediaTek MT2701 hifsys"
[all …]
Dclk-mt2701-aud.c1 // SPDX-License-Identifier: GPL-2.0
7 #include <linux/clk-provider.h>
13 #include "clk-mtk.h"
14 #include "clk-gate.h"
16 #include <dt-bindings/clock/mt2701-clk.h>
134 { .compatible = "mediatek,mt2701-audsys", .data = &audio_desc },
145 dev_err(&pdev->dev, in clk_mt2701_aud_probe()
147 pdev->name, r); in clk_mt2701_aud_probe()
152 r = devm_of_platform_populate(&pdev->dev); in clk_mt2701_aud_probe()
165 of_platform_depopulate(&pdev->dev); in clk_mt2701_aud_remove()
[all …]
/linux-6.14.4/drivers/pmdomain/mediatek/
Dmtk-scpsys.c1 // SPDX-License-Identifier: GPL-2.0-only
16 #include <dt-bindings/power/mt2701-power.h>
17 #include <dt-bindings/power/mt2712-power.h>
18 #include <dt-bindings/power/mt6797-power.h>
19 #include <dt-bindings/power/mt7622-power.h>
20 #include <dt-bindings/power/mt7623a-power.h>
21 #include <dt-bindings/power/mt8173-power.h>
28 #define MTK_SCPD_CAPS(_scpd, _x) ((_scpd)->data->caps & (_x))
38 #define SPM_BDP_PWR_CON 0x029c /* MT2701 */
105 "audio",
[all …]
/linux-6.14.4/drivers/gpu/drm/mediatek/
Dmtk_hdmi.c1 // SPDX-License-Identifier: GPL-2.0-only
7 #include <linux/arm-smccc.h>
24 #include <sound/hdmi-codec.h>
193 return readl(hdmi->regs + offset); in mtk_hdmi_read()
198 writel(val, hdmi->regs + offset); in mtk_hdmi_write()
203 void __iomem *reg = hdmi->regs + offset; in mtk_hdmi_clear_bits()
213 void __iomem *reg = hdmi->regs + offset; in mtk_hdmi_set_bits()
223 void __iomem *reg = hdmi->regs + offset; in mtk_hdmi_mask()
247 if (hdmi->conf && hdmi->conf->tz_disabled) in mtk_hdmi_hw_make_reg_writable()
248 regmap_update_bits(hdmi->sys_regmap, in mtk_hdmi_hw_make_reg_writable()
[all …]
/linux-6.14.4/arch/arm64/boot/dts/mediatek/
Dmt8188.dtsi1 // SPDX-License-Identifier: GPL-2.0+
7 /dts-v1/;
8 #include <dt-bindings/clock/mediatek,mt8188-clk.h>
9 #include <dt-bindings/interrupt-controller/arm-gic.h>
10 #include <dt-bindings/interrupt-controller/irq.h>
11 #include <dt-bindings/mailbox/mediatek,mt8188-gce.h>
12 #include <dt-bindings/memory/mediatek,mt8188-memory-port.h>
13 #include <dt-bindings/phy/phy.h>
14 #include <dt-bindings/pinctrl/mediatek,mt8188-pinfunc.h>
15 #include <dt-bindings/power/mediatek,mt8188-power.h>
[all …]