blob: 33717b728f636af3f2549ecccaec042bbffb648d [file] [log] [blame]
Tom Rini6bb92fc2024-05-20 09:54:58 -06001# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/atmel,sam9x5-wm8731-audio.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Atmel at91sam9x5ek wm8731 audio complex
8
9maintainers:
10 - Dharma Balasubiramani <dharma.b@microchip.com>
11
12description:
13 The audio complex configuration for Atmel at91sam9x5ek with WM8731 audio codec.
14
15properties:
16 compatible:
17 const: atmel,sam9x5-wm8731-audio
18
19 atmel,model:
20 $ref: /schemas/types.yaml#/definitions/string
21 description: The user-visible name of this sound complex.
22
23 atmel,ssc-controller:
24 $ref: /schemas/types.yaml#/definitions/phandle
25 description: The phandle of the SSC controller.
26
27 atmel,audio-codec:
28 $ref: /schemas/types.yaml#/definitions/phandle
29 description: The phandle of the WM8731 audio codec.
30
31 atmel,audio-routing:
32 description:
33 A list of the connections between audio components. Each entry is a pair
34 of strings, the first being the connection's sink, the second being the
35 connection's source.
36 $ref: /schemas/types.yaml#/definitions/non-unique-string-array
37 items:
38 enum:
39 # Board Connectors
40 - Headphone Jack
41 - Line In Jack
42
43 # CODEC Pins
44 - LOUT
45 - ROUT
46 - LHPOUT
47 - RHPOUT
48 - LLINEIN
49 - RLINEIN
50 - MICIN
51
52required:
53 - compatible
54 - atmel,model
55 - atmel,ssc-controller
56 - atmel,audio-codec
57 - atmel,audio-routing
58
59additionalProperties: false
60
61examples:
62 - |
63 sound {
64 compatible = "atmel,sam9x5-wm8731-audio";
65
66 atmel,model = "wm8731 @ AT91SAM9X5EK";
67
68 atmel,audio-routing =
69 "Headphone Jack", "RHPOUT",
70 "Headphone Jack", "LHPOUT",
71 "LLINEIN", "Line In Jack",
72 "RLINEIN", "Line In Jack";
73
74 atmel,ssc-controller = <&ssc0>;
75 atmel,audio-codec = <&wm8731>;
76 };