185a375feSSvyatoslav Ryhel# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 285a375feSSvyatoslav Ryhel%YAML 1.2 385a375feSSvyatoslav Ryhel--- 485a375feSSvyatoslav Ryhel$id: http://devicetree.org/schemas/sound/nvidia,tegra-audio-max9808x.yaml# 585a375feSSvyatoslav Ryhel$schema: http://devicetree.org/meta-schemas/core.yaml# 685a375feSSvyatoslav Ryhel 785a375feSSvyatoslav Ryheltitle: NVIDIA Tegra audio complex with MAX9808x CODEC 885a375feSSvyatoslav Ryhel 985a375feSSvyatoslav Ryhelmaintainers: 1085a375feSSvyatoslav Ryhel - Jon Hunter <jonathanh@nvidia.com> 1185a375feSSvyatoslav Ryhel - Thierry Reding <thierry.reding@gmail.com> 1285a375feSSvyatoslav Ryhel 1385a375feSSvyatoslav RyhelallOf: 1485a375feSSvyatoslav Ryhel - $ref: nvidia,tegra-audio-common.yaml# 1585a375feSSvyatoslav Ryhel 1685a375feSSvyatoslav Ryhelproperties: 1785a375feSSvyatoslav Ryhel compatible: 1885a375feSSvyatoslav Ryhel oneOf: 1985a375feSSvyatoslav Ryhel - items: 2085a375feSSvyatoslav Ryhel - pattern: '^[a-z0-9]+,tegra-audio-max98088(-[a-z0-9]+)+$' 2185a375feSSvyatoslav Ryhel - const: nvidia,tegra-audio-max98088 2285a375feSSvyatoslav Ryhel - items: 2385a375feSSvyatoslav Ryhel - pattern: '^[a-z0-9]+,tegra-audio-max98089(-[a-z0-9]+)+$' 2485a375feSSvyatoslav Ryhel - const: nvidia,tegra-audio-max98089 2585a375feSSvyatoslav Ryhel 2685a375feSSvyatoslav Ryhel nvidia,audio-routing: 2785a375feSSvyatoslav Ryhel $ref: /schemas/types.yaml#/definitions/non-unique-string-array 2885a375feSSvyatoslav Ryhel description: | 2985a375feSSvyatoslav Ryhel A list of the connections between audio components. 3085a375feSSvyatoslav Ryhel Each entry is a pair of strings, the first being the connection's sink, 3185a375feSSvyatoslav Ryhel the second being the connection's source. Valid names for sources and 3285a375feSSvyatoslav Ryhel sinks are the pins (documented in the binding document), 3385a375feSSvyatoslav Ryhel and the jacks on the board. 3485a375feSSvyatoslav Ryhel minItems: 2 3585a375feSSvyatoslav Ryhel items: 3685a375feSSvyatoslav Ryhel enum: 3785a375feSSvyatoslav Ryhel # Board Connectors 3845698208SRob Herring - Int Spk 3945698208SRob Herring - Headphone Jack 4045698208SRob Herring - Earpiece 4145698208SRob Herring - Headset Mic 4245698208SRob Herring - Internal Mic 1 4345698208SRob Herring - Internal Mic 2 4485a375feSSvyatoslav Ryhel 4585a375feSSvyatoslav Ryhel # CODEC Pins 4685a375feSSvyatoslav Ryhel - HPL 4785a375feSSvyatoslav Ryhel - HPR 4885a375feSSvyatoslav Ryhel - SPKL 4985a375feSSvyatoslav Ryhel - SPKR 5085a375feSSvyatoslav Ryhel - RECL 5185a375feSSvyatoslav Ryhel - RECR 5285a375feSSvyatoslav Ryhel - INA1 5385a375feSSvyatoslav Ryhel - INA2 5485a375feSSvyatoslav Ryhel - INB1 5585a375feSSvyatoslav Ryhel - INB2 5685a375feSSvyatoslav Ryhel - MIC1 5785a375feSSvyatoslav Ryhel - MIC2 5885a375feSSvyatoslav Ryhel - MICBIAS 5985a375feSSvyatoslav Ryhel 6085a375feSSvyatoslav RyhelunevaluatedProperties: false 6185a375feSSvyatoslav Ryhel 6285a375feSSvyatoslav Ryhelexamples: 6385a375feSSvyatoslav Ryhel - | 6485a375feSSvyatoslav Ryhel #include <dt-bindings/clock/tegra30-car.h> 6585a375feSSvyatoslav Ryhel #include <dt-bindings/soc/tegra-pmc.h> 6685a375feSSvyatoslav Ryhel sound { 67*482c9f3dSRob Herring compatible = "lg,tegra-audio-max98089-p895", 6885a375feSSvyatoslav Ryhel "nvidia,tegra-audio-max98089"; 6985a375feSSvyatoslav Ryhel nvidia,model = "LG Optimus Vu MAX98089"; 7085a375feSSvyatoslav Ryhel 7185a375feSSvyatoslav Ryhel nvidia,audio-routing = 7285a375feSSvyatoslav Ryhel "Headphone Jack", "HPL", 7385a375feSSvyatoslav Ryhel "Headphone Jack", "HPR", 7485a375feSSvyatoslav Ryhel "Int Spk", "SPKL", 7585a375feSSvyatoslav Ryhel "Int Spk", "SPKR", 7685a375feSSvyatoslav Ryhel "Earpiece", "RECL", 7785a375feSSvyatoslav Ryhel "Earpiece", "RECR", 7885a375feSSvyatoslav Ryhel "INA1", "Headset Mic", 7985a375feSSvyatoslav Ryhel "MIC1", "MICBIAS", 8085a375feSSvyatoslav Ryhel "MICBIAS", "Internal Mic 1", 8185a375feSSvyatoslav Ryhel "MIC2", "Internal Mic 2"; 8285a375feSSvyatoslav Ryhel 8385a375feSSvyatoslav Ryhel nvidia,i2s-controller = <&tegra_i2s0>; 8485a375feSSvyatoslav Ryhel nvidia,audio-codec = <&codec>; 8585a375feSSvyatoslav Ryhel 8685a375feSSvyatoslav Ryhel clocks = <&tegra_car TEGRA30_CLK_PLL_A>, 8785a375feSSvyatoslav Ryhel <&tegra_car TEGRA30_CLK_PLL_A_OUT0>, 8885a375feSSvyatoslav Ryhel <&tegra_pmc TEGRA_PMC_CLK_OUT_1>; 8985a375feSSvyatoslav Ryhel clock-names = "pll_a", "pll_a_out0", "mclk"; 9085a375feSSvyatoslav Ryhel }; 91