Skip to content

Commit

Permalink
WIP: dt-bindings: sound: nvidia,tegra-audio: add WM8994 CODEC
Browse files Browse the repository at this point in the history
  • Loading branch information
okias authored and digetx committed Dec 12, 2021
1 parent eec8a45 commit dcdf85c
Showing 1 changed file with 63 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/nvidia,tegra-audio-wm8994.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: NVIDIA Tegra audio complex with WM8994 CODEC

maintainers:
- Jon Hunter <[email protected]>
- Thierry Reding <[email protected]>

allOf:
- $ref: nvidia,tegra-audio-common.yaml#

properties:
compatible:
oneOf:
- items:
- pattern: '^[a-z0-9]+,tegra-audio-wm8994(-[a-z0-9]+)+$'
- const: nvidia,tegra-audio-wm8994

nvidia,audio-routing:
$ref: /schemas/types.yaml#/definitions/non-unique-string-array
description: |
A list of the connections between audio components.
Each entry is a pair of strings, the first being the connection's sink,
the second being the connection's source. Valid names for sources and
sinks are the pins (documented in the binding document),
and the jacks on the board.
minItems: 2
items:
enum:
# Board Connectors
- "Headphone Jack"
- "Int Spk"
- "Mic Jack"
- "Int Mic"

# CODEC Pins TODO
- FIXME

nvidia,ear-sel-gpios:
maxItems: 1
description: The GPIO that switch between the microphones

required:
- nvidia,i2s-controller

unevaluatedProperties: false

examples:
- |
sound {
compatible = "samsung,tegra-audio-wm8994-p4wifi", "nvidia,tegra-audio-wm8994";
nvidia,model = "Samsung Galaxy Tab 10.1 WM8994";
nvidia,i2s-controller = <&tegra_i2s1>;
nvidia,audio-codec = <&wm8994>;
clocks = <&clk 211>, <&clk 153>, <&clk 200>;
clock-names = "pll_a", "pll_a_out0", "mclk";
};

0 comments on commit dcdf85c

Please sign in to comment.