Skip to content

Commit a15f859

Browse files
Dharma-Bbroonie
authored andcommitted
ASoC: dt-bindings: atmel,sam9x5-wm8731: Convert to json-schema
Convert atmel sam9x5-wm8731-audio devicetree binding to json-schema. Signed-off-by: Dharma Balasubiramani <dharma.b@microchip.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20240206064418.237377-1-dharma.b@microchip.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 8f501d2 commit a15f859

File tree

2 files changed

+76
-35
lines changed

2 files changed

+76
-35
lines changed
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# 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+
7+
title: Atmel at91sam9x5ek wm8731 audio complex
8+
9+
maintainers:
10+
- Dharma Balasubiramani <dharma.b@microchip.com>
11+
12+
description:
13+
The audio complex configuration for Atmel at91sam9x5ek with WM8731 audio codec.
14+
15+
properties:
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+
52+
required:
53+
- compatible
54+
- atmel,model
55+
- atmel,ssc-controller
56+
- atmel,audio-codec
57+
- atmel,audio-routing
58+
59+
additionalProperties: false
60+
61+
examples:
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+
};

Documentation/devicetree/bindings/sound/atmel-sam9x5-wm8731-audio.txt

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)