Skip to content

Commit 82fd5dc

Browse files
Julien Massotbroonie
authored andcommitted
ASoC: dt-binding: Convert MediaTek mt8183-mt6358 to DT schema
Convert the existing text-based DT binding for MT8183 sound cards using MT6358 and various other codecs to a DT schema. 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-6-20e89886a20e@collabora.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent cf5be90 commit 82fd5dc

2 files changed

Lines changed: 59 additions & 25 deletions

File tree

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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_mt6358_ts3a227.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: MediaTek MT8183 sound card with MT6358, TS3A227, and MAX98357/RT1015 codecs
8+
9+
maintainers:
10+
- Julien Massot <julien.massot@collabora.com>
11+
12+
description:
13+
MediaTek MT8183 SoC-based sound cards using the MT6358 codec,
14+
with optional TS3A227 headset codec, EC codec (via Chrome EC), and HDMI audio.
15+
Speaker amplifier can be one of MAX98357A/B, RT1015, or RT1015P.
16+
17+
properties:
18+
compatible:
19+
enum:
20+
- mediatek,mt8183_mt6358_ts3a227_max98357
21+
- mediatek,mt8183_mt6358_ts3a227_max98357b
22+
- mediatek,mt8183_mt6358_ts3a227_rt1015
23+
- mediatek,mt8183_mt6358_ts3a227_rt1015p
24+
25+
mediatek,platform:
26+
$ref: /schemas/types.yaml#/definitions/phandle
27+
description: Phandle to the MT8183 ASoC platform node (e.g., AFE).
28+
29+
mediatek,headset-codec:
30+
$ref: /schemas/types.yaml#/definitions/phandle
31+
description: Phandle to the TS3A227 headset codec.
32+
33+
mediatek,ec-codec:
34+
$ref: /schemas/types.yaml#/definitions/phandle
35+
description: |
36+
Optional phandle to a ChromeOS EC codec node.
37+
See bindings in google,cros-ec-codec.yaml.
38+
39+
mediatek,hdmi-codec:
40+
$ref: /schemas/types.yaml#/definitions/phandle
41+
description: Optional phandle to an HDMI audio codec node.
42+
43+
required:
44+
- compatible
45+
- mediatek,platform
46+
47+
additionalProperties: false
48+
49+
examples:
50+
- |
51+
sound {
52+
compatible = "mediatek,mt8183_mt6358_ts3a227_max98357";
53+
mediatek,headset-codec = <&ts3a227>;
54+
mediatek,ec-codec = <&ec_codec>;
55+
mediatek,hdmi-codec = <&it6505dptx>;
56+
mediatek,platform = <&afe>;
57+
};
58+
59+
...

Documentation/devicetree/bindings/sound/mt8183-mt6358-ts3a227-max98357.txt

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)