1e67e8565SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2e67e8565SEmmanuel Vadot%YAML 1.2 3e67e8565SEmmanuel Vadot--- 4e67e8565SEmmanuel Vadot$id: http://devicetree.org/schemas/sound/nvidia,tegra-audio-rt5677.yaml# 5e67e8565SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6e67e8565SEmmanuel Vadot 7e67e8565SEmmanuel Vadottitle: NVIDIA Tegra audio complex with RT5677 CODEC 8e67e8565SEmmanuel Vadot 9e67e8565SEmmanuel Vadotmaintainers: 10e67e8565SEmmanuel Vadot - Jon Hunter <jonathanh@nvidia.com> 11e67e8565SEmmanuel Vadot - Thierry Reding <thierry.reding@gmail.com> 12e67e8565SEmmanuel Vadot 13e67e8565SEmmanuel VadotallOf: 14e67e8565SEmmanuel Vadot - $ref: nvidia,tegra-audio-common.yaml# 15e67e8565SEmmanuel Vadot 16e67e8565SEmmanuel Vadotproperties: 17e67e8565SEmmanuel Vadot compatible: 18e67e8565SEmmanuel Vadot items: 19e67e8565SEmmanuel Vadot - pattern: '^[a-z0-9]+,tegra-audio-rt5677(-[a-z0-9]+)+$' 20e67e8565SEmmanuel Vadot - const: nvidia,tegra-audio-rt5677 21e67e8565SEmmanuel Vadot 22e67e8565SEmmanuel Vadot nvidia,audio-routing: 23e67e8565SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/non-unique-string-array 24e67e8565SEmmanuel Vadot description: | 25e67e8565SEmmanuel Vadot A list of the connections between audio components. 26e67e8565SEmmanuel Vadot Each entry is a pair of strings, the first being the connection's sink, 27e67e8565SEmmanuel Vadot the second being the connection's source. Valid names for sources and 28e67e8565SEmmanuel Vadot sinks are the pins (documented in the binding document), 29e67e8565SEmmanuel Vadot and the jacks on the board. 30e67e8565SEmmanuel Vadot minItems: 2 31e67e8565SEmmanuel Vadot items: 32e67e8565SEmmanuel Vadot enum: 33e67e8565SEmmanuel Vadot # Board Connectors 34*fac71e4eSEmmanuel Vadot - Headphone 35*fac71e4eSEmmanuel Vadot - Speaker 36*fac71e4eSEmmanuel Vadot - Headset Mic 37*fac71e4eSEmmanuel Vadot - Internal Mic 1 38*fac71e4eSEmmanuel Vadot - Internal Mic 2 39e67e8565SEmmanuel Vadot 40e67e8565SEmmanuel Vadot # CODEC Pins 41e67e8565SEmmanuel Vadot - IN1P 42e67e8565SEmmanuel Vadot - IN1N 43e67e8565SEmmanuel Vadot - IN2P 44e67e8565SEmmanuel Vadot - IN2N 45e67e8565SEmmanuel Vadot - MICBIAS1 46e67e8565SEmmanuel Vadot - DMIC1 47e67e8565SEmmanuel Vadot - DMIC2 48e67e8565SEmmanuel Vadot - DMIC3 49e67e8565SEmmanuel Vadot - DMIC4 50*fac71e4eSEmmanuel Vadot - DMIC L1 51*fac71e4eSEmmanuel Vadot - DMIC L2 52*fac71e4eSEmmanuel Vadot - DMIC L3 53*fac71e4eSEmmanuel Vadot - DMIC L4 54*fac71e4eSEmmanuel Vadot - DMIC R1 55*fac71e4eSEmmanuel Vadot - DMIC R2 56*fac71e4eSEmmanuel Vadot - DMIC R3 57*fac71e4eSEmmanuel Vadot - DMIC R4 58e67e8565SEmmanuel Vadot - LOUT1 59e67e8565SEmmanuel Vadot - LOUT2 60e67e8565SEmmanuel Vadot - LOUT3 61e67e8565SEmmanuel Vadot - PDM1L 62e67e8565SEmmanuel Vadot - PDM1R 63e67e8565SEmmanuel Vadot - PDM2L 64e67e8565SEmmanuel Vadot - PDM2R 65e67e8565SEmmanuel Vadot 66e67e8565SEmmanuel Vadotrequired: 67e67e8565SEmmanuel Vadot - nvidia,i2s-controller 68e67e8565SEmmanuel Vadot 69e67e8565SEmmanuel VadotunevaluatedProperties: false 70e67e8565SEmmanuel Vadot 71e67e8565SEmmanuel Vadotexamples: 72e67e8565SEmmanuel Vadot - | 73e67e8565SEmmanuel Vadot sound { 74e67e8565SEmmanuel Vadot compatible = "nvidia,tegra-audio-rt5677-ryu", 75e67e8565SEmmanuel Vadot "nvidia,tegra-audio-rt5677"; 76e67e8565SEmmanuel Vadot nvidia,model = "NVIDIA Tegra Ryu"; 77e67e8565SEmmanuel Vadot 78e67e8565SEmmanuel Vadot nvidia,audio-routing = 79e67e8565SEmmanuel Vadot "Headphone", "LOUT2", 80e67e8565SEmmanuel Vadot "Headphone", "LOUT1", 81e67e8565SEmmanuel Vadot "Headset Mic", "MICBIAS1", 82e67e8565SEmmanuel Vadot "IN1P", "Headset Mic", 83e67e8565SEmmanuel Vadot "IN1N", "Headset Mic", 84e67e8565SEmmanuel Vadot "DMIC L1", "Internal Mic 1", 85e67e8565SEmmanuel Vadot "DMIC R1", "Internal Mic 1", 86e67e8565SEmmanuel Vadot "DMIC L2", "Internal Mic 2", 87e67e8565SEmmanuel Vadot "DMIC R2", "Internal Mic 2", 88e67e8565SEmmanuel Vadot "Speaker", "PDM1L", 89e67e8565SEmmanuel Vadot "Speaker", "PDM1R"; 90e67e8565SEmmanuel Vadot 91e67e8565SEmmanuel Vadot nvidia,i2s-controller = <&tegra_i2s1>; 92e67e8565SEmmanuel Vadot nvidia,audio-codec = <&rt5677>; 93e67e8565SEmmanuel Vadot 94e67e8565SEmmanuel Vadot nvidia,hp-det-gpios = <&gpio 143 0>; 95e67e8565SEmmanuel Vadot 96e67e8565SEmmanuel Vadot clocks = <&clk 216>, 97e67e8565SEmmanuel Vadot <&clk 217>, 98e67e8565SEmmanuel Vadot <&clk 121>; 99e67e8565SEmmanuel Vadot clock-names = "pll_a", "pll_a_out0", "mclk"; 100e67e8565SEmmanuel Vadot }; 101