8cf0b5464a964b4c9f369b0f4b09d73617684bff
[openwrt/staging/neocturne.git] /
1 From 72469f950b629e57e60fbcbefed45e083619b986 Mon Sep 17 00:00:00 2001
2 From: Maso Huang <maso.huang@mediatek.com>
3 Date: Thu, 17 Aug 2023 18:13:37 +0800
4 Subject: [PATCH 5/9] ASoC: dt-bindings: mediatek,mt7986-wm8960: add
5 mt7986-wm8960 document
6
7 Add document for mt7986 board with wm8960.
8
9 Signed-off-by: Maso Huang <maso.huang@mediatek.com>
10 Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
11 Link: https://lore.kernel.org/r/20230817101338.18782-6-maso.huang@mediatek.com
12 Signed-off-by: Mark Brown <broonie@kernel.org>
13 ---
14 .../sound/mediatek,mt7986-wm8960.yaml | 67 +++++++++++++++++++
15 1 file changed, 67 insertions(+)
16 create mode 100644 Documentation/devicetree/bindings/sound/mediatek,mt7986-wm8960.yaml
17
18 --- /dev/null
19 +++ b/Documentation/devicetree/bindings/sound/mediatek,mt7986-wm8960.yaml
20 @@ -0,0 +1,67 @@
21 +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
22 +%YAML 1.2
23 +---
24 +$id: http://devicetree.org/schemas/sound/mediatek,mt7986-wm8960.yaml#
25 +$schema: http://devicetree.org/meta-schemas/core.yaml#
26 +
27 +title: MediaTek MT7986 sound card with WM8960 codec
28 +
29 +maintainers:
30 + - Maso Huang <maso.huang@mediatek.com>
31 +
32 +allOf:
33 + - $ref: sound-card-common.yaml#
34 +
35 +properties:
36 + compatible:
37 + const: mediatek,mt7986-wm8960-sound
38 +
39 + platform:
40 + type: object
41 + additionalProperties: false
42 + properties:
43 + sound-dai:
44 + description: The phandle of MT7986 platform.
45 + maxItems: 1
46 + required:
47 + - sound-dai
48 +
49 + codec:
50 + type: object
51 + additionalProperties: false
52 + properties:
53 + sound-dai:
54 + description: The phandle of wm8960 codec.
55 + maxItems: 1
56 + required:
57 + - sound-dai
58 +
59 +unevaluatedProperties: false
60 +
61 +required:
62 + - compatible
63 + - audio-routing
64 + - platform
65 + - codec
66 +
67 +examples:
68 + - |
69 + sound {
70 + compatible = "mediatek,mt7986-wm8960-sound";
71 + model = "mt7986-wm8960";
72 + audio-routing =
73 + "Headphone", "HP_L",
74 + "Headphone", "HP_R",
75 + "LINPUT1", "AMIC",
76 + "RINPUT1", "AMIC";
77 +
78 + platform {
79 + sound-dai = <&afe>;
80 + };
81 +
82 + codec {
83 + sound-dai = <&wm8960>;
84 + };
85 + };
86 +
87 +...