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

ASoC: Convert MT8183 DA7219 sound card to DT schema

Convert the Device Tree binding for MT8183-based boards using the
DA7219 headset codec and optional MAX98357, RT1015 or RT1015P speaker
amplifiers from the legacy .txt format to DT schema.

This improves binding validation and removes DT schema warnings
for boards using these audio components.

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Julien Massot <julien.massot@collabora.com>
Link: https://patch.msgid.link/20250826-mtk-dtb-warnings-v3-5-20e89886a20e@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Julien Massot and committed by
Mark Brown
cf5be90e 52aefc1e

+49 -21
+49
Documentation/devicetree/bindings/sound/mediatek,mt8183_da7219.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/sound/mediatek,mt8183_da7219.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: MediaTek MT8183 sound card with external codecs 8 + 9 + maintainers: 10 + - Julien Massot <jmassot@collabora.com> 11 + 12 + description: 13 + MediaTek MT8183 SoC-based sound cards with DA7219 as headset codec, 14 + and MAX98357A, RT1015 or RT1015P as speaker amplifiers. Optionally includes HDMI codec. 15 + 16 + properties: 17 + compatible: 18 + enum: 19 + - mediatek,mt8183_da7219_max98357 20 + - mediatek,mt8183_da7219_rt1015 21 + - mediatek,mt8183_da7219_rt1015p 22 + 23 + mediatek,headset-codec: 24 + $ref: /schemas/types.yaml#/definitions/phandle 25 + description: Phandle to the DA7219 headset codec. 26 + 27 + mediatek,platform: 28 + $ref: /schemas/types.yaml#/definitions/phandle 29 + description: Phandle to the MT8183 ASoC platform (e.g., AFE node). 30 + 31 + mediatek,hdmi-codec: 32 + $ref: /schemas/types.yaml#/definitions/phandle 33 + description: Optional phandle to the HDMI codec (e.g., IT6505). 34 + 35 + required: 36 + - compatible 37 + - mediatek,headset-codec 38 + - mediatek,platform 39 + 40 + additionalProperties: false 41 + 42 + examples: 43 + - | 44 + sound { 45 + compatible = "mediatek,mt8183_da7219_max98357"; 46 + mediatek,headset-codec = <&da7219>; 47 + mediatek,hdmi-codec = <&it6505dptx>; 48 + mediatek,platform = <&afe>; 49 + };
-21
Documentation/devicetree/bindings/sound/mt8183-da7219-max98357.txt
··· 1 - MT8183 with MT6358, DA7219, MAX98357, and RT1015 CODECS 2 - 3 - Required properties: 4 - - compatible : "mediatek,mt8183_da7219_max98357" for MAX98357A codec 5 - "mediatek,mt8183_da7219_rt1015" for RT1015 codec 6 - "mediatek,mt8183_da7219_rt1015p" for RT1015P codec 7 - - mediatek,headset-codec: the phandles of da7219 codecs 8 - - mediatek,platform: the phandle of MT8183 ASoC platform 9 - 10 - Optional properties: 11 - - mediatek,hdmi-codec: the phandles of HDMI codec 12 - 13 - Example: 14 - 15 - sound { 16 - compatible = "mediatek,mt8183_da7219_max98357"; 17 - mediatek,headset-codec = <&da7219>; 18 - mediatek,hdmi-codec = <&it6505dptx>; 19 - mediatek,platform = <&afe>; 20 - }; 21 -