|
| 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 | + |
| 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