2
0

860-v6.6-05-ASoC-dt-bindings-mediatek-mt7986-wm8960-add-mt7986-w.patch 2.2 KB

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