Skip to content

Commit dcdf85c

Browse files
okiasdigetx
authored andcommitted
WIP: dt-bindings: sound: nvidia,tegra-audio: add WM8994 CODEC
1 parent eec8a45 commit dcdf85c

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/sound/nvidia,tegra-audio-wm8994.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: NVIDIA Tegra audio complex with WM8994 CODEC
8+
9+
maintainers:
10+
- Jon Hunter <[email protected]>
11+
- Thierry Reding <[email protected]>
12+
13+
allOf:
14+
- $ref: nvidia,tegra-audio-common.yaml#
15+
16+
properties:
17+
compatible:
18+
oneOf:
19+
- items:
20+
- pattern: '^[a-z0-9]+,tegra-audio-wm8994(-[a-z0-9]+)+$'
21+
- const: nvidia,tegra-audio-wm8994
22+
23+
nvidia,audio-routing:
24+
$ref: /schemas/types.yaml#/definitions/non-unique-string-array
25+
description: |
26+
A list of the connections between audio components.
27+
Each entry is a pair of strings, the first being the connection's sink,
28+
the second being the connection's source. Valid names for sources and
29+
sinks are the pins (documented in the binding document),
30+
and the jacks on the board.
31+
minItems: 2
32+
items:
33+
enum:
34+
# Board Connectors
35+
- "Headphone Jack"
36+
- "Int Spk"
37+
- "Mic Jack"
38+
- "Int Mic"
39+
40+
# CODEC Pins TODO
41+
- FIXME
42+
43+
nvidia,ear-sel-gpios:
44+
maxItems: 1
45+
description: The GPIO that switch between the microphones
46+
47+
required:
48+
- nvidia,i2s-controller
49+
50+
unevaluatedProperties: false
51+
52+
examples:
53+
- |
54+
sound {
55+
compatible = "samsung,tegra-audio-wm8994-p4wifi", "nvidia,tegra-audio-wm8994";
56+
nvidia,model = "Samsung Galaxy Tab 10.1 WM8994";
57+
58+
nvidia,i2s-controller = <&tegra_i2s1>;
59+
nvidia,audio-codec = <&wm8994>;
60+
61+
clocks = <&clk 211>, <&clk 153>, <&clk 200>;
62+
clock-names = "pll_a", "pll_a_out0", "mclk";
63+
};

0 commit comments

Comments
 (0)