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

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: dt-bindings: mt2701-wm8960: Convert to dtschema

Convert mt2701-wm890 bindings from text to dtschema. This is used by
MediaTek mt7623a/n SoC.

Signed-off-by: Kartik Agarwala <agarwala.kartik@gmail.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20240421033129.13076-1-agarwala.kartik@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Kartik Agarwala and committed by
Mark Brown
ab371a02 3249c68e

+54 -24
+54
Documentation/devicetree/bindings/sound/mediatek,mt2701-wm8960.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/sound/mediatek,mt2701-wm8960.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: MediaTek MT2701 with WM8960 CODEC 8 + 9 + maintainers: 10 + - Kartik Agarwala <agarwala.kartik@gmail.com> 11 + 12 + properties: 13 + compatible: 14 + const: mediatek,mt2701-wm8960-machine 15 + 16 + mediatek,platform: 17 + $ref: /schemas/types.yaml#/definitions/phandle 18 + description: The phandle of MT2701 ASoC platform. 19 + 20 + audio-routing: 21 + $ref: /schemas/types.yaml#/definitions/non-unique-string-array 22 + description: 23 + A list of the connections between audio components. Each entry is a 24 + pair of strings, the first being the connection's sink, the second 25 + being the connection's source. 26 + 27 + mediatek,audio-codec: 28 + $ref: /schemas/types.yaml#/definitions/phandle 29 + description: The phandle of the WM8960 audio codec. 30 + 31 + unevaluatedProperties: false 32 + 33 + required: 34 + - compatible 35 + - mediatek,platform 36 + - audio-routing 37 + - mediatek,audio-codec 38 + - pinctrl-names 39 + - pinctrl-0 40 + 41 + examples: 42 + - | 43 + sound { 44 + compatible = "mediatek,mt2701-wm8960-machine"; 45 + mediatek,platform = <&afe>; 46 + audio-routing = 47 + "Headphone", "HP_L", 48 + "Headphone", "HP_R", 49 + "LINPUT1", "AMIC", 50 + "RINPUT1", "AMIC"; 51 + mediatek,audio-codec = <&wm8960>; 52 + pinctrl-names = "default"; 53 + pinctrl-0 = <&aud_pins_default>; 54 + };
-24
Documentation/devicetree/bindings/sound/mt2701-wm8960.txt
··· 1 - MT2701 with WM8960 CODEC 2 - 3 - Required properties: 4 - - compatible: "mediatek,mt2701-wm8960-machine" 5 - - mediatek,platform: the phandle of MT2701 ASoC platform 6 - - audio-routing: a list of the connections between audio 7 - - mediatek,audio-codec: the phandles of wm8960 codec 8 - - pinctrl-names: Should contain only one value - "default" 9 - - pinctrl-0: Should specify pin control groups used for this controller. 10 - 11 - Example: 12 - 13 - sound:sound { 14 - compatible = "mediatek,mt2701-wm8960-machine"; 15 - mediatek,platform = <&afe>; 16 - audio-routing = 17 - "Headphone", "HP_L", 18 - "Headphone", "HP_R", 19 - "LINPUT1", "AMIC", 20 - "RINPUT1", "AMIC"; 21 - mediatek,audio-codec = <&wm8960>; 22 - pinctrl-names = "default"; 23 - pinctrl-0 = <&aud_pins_default>; 24 - };