Documentation / devicetree / bindings / sound / mediatek,mt2701-wm8960.yaml


Based on kernel version 6.11. Page generated on 2024-09-24 08:21 EST.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/mediatek,mt2701-wm8960.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: MediaTek MT2701 with WM8960 CODEC

maintainers:
  - Kartik Agarwala <agarwala.kartik@gmail.com>

properties:
  compatible:
    const: mediatek,mt2701-wm8960-machine

  mediatek,platform:
    $ref: /schemas/types.yaml#/definitions/phandle
    description: The phandle of MT2701 ASoC platform.

  audio-routing:
    $ref: /schemas/types.yaml#/definitions/non-unique-string-array
    description:
      A list of the connections between audio components. Each entry is a
      pair of strings, the first being the connection's sink, the second
      being the connection's source.

  mediatek,audio-codec:
    $ref: /schemas/types.yaml#/definitions/phandle
    description: The phandle of the WM8960 audio codec.

unevaluatedProperties: false

required:
  - compatible
  - mediatek,platform
  - audio-routing
  - mediatek,audio-codec
  - pinctrl-names
  - pinctrl-0

examples:
  - |
    sound {
        compatible = "mediatek,mt2701-wm8960-machine";
        mediatek,platform = <&afe>;
        audio-routing =
            "Headphone", "HP_L",
            "Headphone", "HP_R",
            "LINPUT1", "AMIC",
            "RINPUT1", "AMIC";
        mediatek,audio-codec = <&wm8960>;
        pinctrl-names = "default";
        pinctrl-0 = <&aud_pins_default>;
    };