Skip to contentSkip to conversation

ASoC: mediatek: Add support for MT8195 sound card with rt1011 and rt5682

PATCH RESEND In review Trevor Wu 2 participants 4 messages Oct 20, 2021 – Oct 29, 2021

Subsystems (4)
lore
Share & tools
lore

Trevor Wu

author
#0 lore raw

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
author
#1 lore raw

PATCH RESEND 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
index 81ad2dcee9eb..8c798ff20aab 100644
@@ -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
index 44775f400b40..e5f0df5010b6 100644
@@ -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
author
#2 lore raw

PATCH RESEND v2 2/2 dt-bindings: mediatek: mt8195: add mt8195-mt6359-rt1011-rt5682 document

In reply to Trevor Wu

This 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
new file mode 100644
index 000000000000..d354c30d3377
@@ -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
maintainer
#3 lore raw
In reply to Trevor Wu
Quoted 10 lines · Trevor Wu

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

[...]

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/2] ASoC: mediatek: mt8195: add machine driver with mt6359, rt1011 and rt5682

      commit: 0261e36477cfa2608468c1300e30cb667c5e1269
[2/2] dt-bindings: mediatek: mt8195: add mt8195-mt6359-rt1011-rt5682 document
      commit: 6c8552ebba7742e7128134859846e17edbfdf222

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark