ASoC: mediatek: Add support for MT8195 sound card with rt1011 and rt5682
Subsystems (4)
v2 cover ASoC: mediatek: Add support for MT8195 sound card with rt1011 and rt5682
This series of patches adds support for mt8195 board with mt6359, rt1011 and rt5682.
Patches are based on broonie tree "for-next" branch.
Changes since v1:
- refined code based on Pierre-Louis's suggestions
- added missing of_node_put
- fixed wrong fixup assignment on HDMITX
Trevor Wu (2):
ASoC: mediatek: mt8195: add machine driver with mt6359, rt1011 and
rt5682
dt-bindings: mediatek: mt8195: add mt8195-mt6359-rt1011-rt5682
document
.../sound/mt8195-mt6359-rt1011-rt5682.yaml | 47 + sound/soc/mediatek/Kconfig | 15 + sound/soc/mediatek/mt8195/Makefile | 1 + .../mt8195/mt8195-mt6359-rt1011-rt5682.c | 1155 +++++++++++++++++ 4 files changed, 1218 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/mt8195-mt6359-rt1011-rt5682.yaml create mode 100644 sound/soc/mediatek/mt8195/mt8195-mt6359-rt1011-rt5682.c
Signature · 1 line
2.18.0
PATCH v2 1/2 ASoC: mediatek: mt8195: add machine driver with mt6359, rt1011 and rt5682
This patch adds support for mt8195 board with mt6359, rt1011 and rt5682.
--- sound/soc/mediatek/Kconfig | 15 + sound/soc/mediatek/mt8195/Makefile | 1 + .../mt8195/mt8195-mt6359-rt1011-rt5682.c | 1155 +++++++++++++++++ 3 files changed, 1171 insertions(+) create mode 100644 sound/soc/mediatek/mt8195/mt8195-mt6359-rt1011-rt5682.c
sound/soc/mediatek/Kconfig +15 -0
@@ -212,3 +212,18 @@ config SND_SOC_MT8195_MT6359_RT1019_RT5682 with the MT6359 RT1019 RT5682 audio codec. Select Y if you have such device. If unsure select "N". + +config SND_SOC_MT8195_MT6359_RT1011_RT5682 + tristate "ASoC Audio driver for MT8195 with MT6359 RT1011 RT5682 codec" + depends on I2C + depends on SND_SOC_MT8195 && MTK_PMIC_WRAP + select SND_SOC_MT6359 + select SND_SOC_RT1011 + select SND_SOC_RT5682_I2C + select SND_SOC_DMIC + select SND_SOC_HDMI_CODEC + help + This adds ASoC driver for Mediatek MT8195 boards + with the MT6359 RT1011 RT5682 audio codec. + Select Y if you have such device. + If unsure select "N".
sound/soc/mediatek/mt8195/Makefile +1 -0
@@ -13,3 +13,4 @@ obj-$(CONFIG_SND_SOC_MT8195) += snd-soc-mt8195-afe.o # machine driver obj-$(CONFIG_SND_SOC_MT8195_MT6359_RT1019_RT5682) += mt8195-mt6359-rt1019-rt5682.o +obj-$(CONFIG_SND_SOC_MT8195_MT6359_RT1011_RT5682) += mt8195-mt6359-rt1011-rt5682.o
sound/soc/mediatek/mt8195/mt8195-mt6359-rt1011-rt5682.c new file +1155 -0
1,155 lines not on this page · raw message
Signature · 1 line
2.18.0
PATCH v2 2/2 dt-bindings: mediatek: mt8195: add mt8195-mt6359-rt1011-rt5682 document
In reply to Trevor WuThis patch adds document for mt8195 board with mt6359, rt1011 and rt5682
--- .../sound/mt8195-mt6359-rt1011-rt5682.yaml | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/mt8195-mt6359-rt1011-rt5682.yaml
Documentation/devicetree/bindings/sound/mt8195-mt6359-rt1011-rt5682.yaml new file +47 -0
@@ -0,0 +1,47 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/mt8195-mt6359-rt1011-rt5682.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Mediatek MT8195 with MT6359, RT1011 and RT5682 ASoC sound card driver + +maintainers: + - Trevor Wu <[email protected]> + +description: + This binding describes the MT8195 sound card with RT1011 and RT5682. + +properties: + compatible: + const: mediatek,mt8195_mt6359_rt1011_rt5682 + + mediatek,platform: + $ref: "/schemas/types.yaml#/definitions/phandle" + description: The phandle of MT8195 ASoC platform. + + mediatek,dptx-codec: + $ref: "/schemas/types.yaml#/definitions/phandle" + description: The phandle of MT8195 Display Port Tx codec node. + + mediatek,hdmi-codec: + $ref: "/schemas/types.yaml#/definitions/phandle" + description: The phandle of MT8195 HDMI codec node. + +additionalProperties: false + +required: + - compatible + - mediatek,platform + +examples: + - | + + sound: mt8195-sound { + compatible = "mediatek,mt8195_mt6359_rt1011_rt5682"; + mediatek,platform = <&afe>; + pinctrl-names = "default"; + pinctrl-0 = <&aud_pins_default>; + }; + +...
Signature · 1 line
2.18.0