Unverified Commit cf5be90e authored by Julien Massot's avatar Julien Massot Committed by Mark Brown
Browse files

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: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: default avatarRob Herring (Arm) <robh@kernel.org>
Signed-off-by: default avatarJulien Massot <julien.massot@collabora.com>
Link: https://patch.msgid.link/20250826-mtk-dtb-warnings-v3-5-20e89886a20e@collabora.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 52aefc1e
Loading
Loading
Loading
Loading
+49 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/mediatek,mt8183_da7219.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: MediaTek MT8183 sound card with external codecs

maintainers:
  - Julien Massot <jmassot@collabora.com>

description:
  MediaTek MT8183 SoC-based sound cards with DA7219 as headset codec,
  and MAX98357A, RT1015 or RT1015P as speaker amplifiers. Optionally includes HDMI codec.

properties:
  compatible:
    enum:
      - mediatek,mt8183_da7219_max98357
      - mediatek,mt8183_da7219_rt1015
      - mediatek,mt8183_da7219_rt1015p

  mediatek,headset-codec:
    $ref: /schemas/types.yaml#/definitions/phandle
    description: Phandle to the DA7219 headset codec.

  mediatek,platform:
    $ref: /schemas/types.yaml#/definitions/phandle
    description: Phandle to the MT8183 ASoC platform (e.g., AFE node).

  mediatek,hdmi-codec:
    $ref: /schemas/types.yaml#/definitions/phandle
    description: Optional phandle to the HDMI codec (e.g., IT6505).

required:
  - compatible
  - mediatek,headset-codec
  - mediatek,platform

additionalProperties: false

examples:
  - |
    sound {
        compatible = "mediatek,mt8183_da7219_max98357";
        mediatek,headset-codec = <&da7219>;
        mediatek,hdmi-codec = <&it6505dptx>;
        mediatek,platform = <&afe>;
    };
+0 −21
Original line number Diff line number Diff line
MT8183 with MT6358, DA7219, MAX98357, and RT1015 CODECS

Required properties:
- compatible : "mediatek,mt8183_da7219_max98357" for MAX98357A codec
               "mediatek,mt8183_da7219_rt1015" for RT1015 codec
               "mediatek,mt8183_da7219_rt1015p" for RT1015P codec
- mediatek,headset-codec: the phandles of da7219 codecs
- mediatek,platform: the phandle of MT8183 ASoC platform

Optional properties:
- mediatek,hdmi-codec: the phandles of HDMI codec

Example:

	sound {
		compatible = "mediatek,mt8183_da7219_max98357";
		mediatek,headset-codec = <&da7219>;
		mediatek,hdmi-codec = <&it6505dptx>;
		mediatek,platform = <&afe>;
	};