1c9ccf3a3SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2c9ccf3a3SEmmanuel Vadot%YAML 1.2 3c9ccf3a3SEmmanuel Vadot--- 4c9ccf3a3SEmmanuel Vadot$id: http://devicetree.org/schemas/sound/samsung,tm2.yaml# 5c9ccf3a3SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c9ccf3a3SEmmanuel Vadot 7c9ccf3a3SEmmanuel Vadottitle: Samsung Exynos5433 TM2(E) audio complex with WM5110 codec 8c9ccf3a3SEmmanuel Vadot 9c9ccf3a3SEmmanuel Vadotmaintainers: 10c9ccf3a3SEmmanuel Vadot - Krzysztof Kozlowski <krzk@kernel.org> 11c9ccf3a3SEmmanuel Vadot - Sylwester Nawrocki <s.nawrocki@samsung.com> 12c9ccf3a3SEmmanuel Vadot 13*aa1a8ff2SEmmanuel VadotallOf: 14*aa1a8ff2SEmmanuel Vadot - $ref: sound-card-common.yaml# 15*aa1a8ff2SEmmanuel Vadot 16c9ccf3a3SEmmanuel Vadotproperties: 17c9ccf3a3SEmmanuel Vadot compatible: 18c9ccf3a3SEmmanuel Vadot const: samsung,tm2-audio 19c9ccf3a3SEmmanuel Vadot 20c9ccf3a3SEmmanuel Vadot audio-amplifier: 21c9ccf3a3SEmmanuel Vadot description: Phandle to the MAX98504 amplifier. 22c9ccf3a3SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/phandle 23c9ccf3a3SEmmanuel Vadot 24c9ccf3a3SEmmanuel Vadot audio-codec: 25c9ccf3a3SEmmanuel Vadot description: Phandles to the codecs. 26c9ccf3a3SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/phandle-array 27c9ccf3a3SEmmanuel Vadot items: 28c9ccf3a3SEmmanuel Vadot - description: Phandle to the WM5110 audio codec. 29c9ccf3a3SEmmanuel Vadot - description: Phandle to the HDMI transmitter node. 30c9ccf3a3SEmmanuel Vadot 31c9ccf3a3SEmmanuel Vadot samsung,audio-routing: 32c9ccf3a3SEmmanuel Vadot description: | 33c9ccf3a3SEmmanuel Vadot List of the connections between audio components; each entry is 34c9ccf3a3SEmmanuel Vadot a pair of strings, the first being the connection's sink, the second 35c9ccf3a3SEmmanuel Vadot being the connection's source; valid names for sources and sinks are the 36c9ccf3a3SEmmanuel Vadot WM5110's and MAX98504's pins and the jacks on the board: HP, SPK, Main 37c9ccf3a3SEmmanuel Vadot Mic, Sub Mic, Third Mic, Headset Mic. 38*aa1a8ff2SEmmanuel Vadot Deprecated, use audio-routing. 39*aa1a8ff2SEmmanuel Vadot deprecated: true 40c9ccf3a3SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/non-unique-string-array 41c9ccf3a3SEmmanuel Vadot 42c9ccf3a3SEmmanuel Vadot i2s-controller: 43c9ccf3a3SEmmanuel Vadot description: Phandles to the I2S controllers. 44c9ccf3a3SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/phandle-array 45c9ccf3a3SEmmanuel Vadot items: 46c9ccf3a3SEmmanuel Vadot - description: Phandle to I2S0. 47c9ccf3a3SEmmanuel Vadot - description: Phandle to I2S1. 48c9ccf3a3SEmmanuel Vadot 49c9ccf3a3SEmmanuel Vadot mic-bias-gpios: 50c9ccf3a3SEmmanuel Vadot description: GPIO pin that enables the Main Mic bias regulator. 51c9ccf3a3SEmmanuel Vadot 52c9ccf3a3SEmmanuel Vadotrequired: 53c9ccf3a3SEmmanuel Vadot - compatible 54c9ccf3a3SEmmanuel Vadot - audio-amplifier 55c9ccf3a3SEmmanuel Vadot - audio-codec 56*aa1a8ff2SEmmanuel Vadot - audio-routing 57c9ccf3a3SEmmanuel Vadot - i2s-controller 58c9ccf3a3SEmmanuel Vadot - mic-bias-gpios 59c9ccf3a3SEmmanuel Vadot 60*aa1a8ff2SEmmanuel VadotunevaluatedProperties: false 61c9ccf3a3SEmmanuel Vadot 62c9ccf3a3SEmmanuel Vadotexamples: 63c9ccf3a3SEmmanuel Vadot - | 64c9ccf3a3SEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 65c9ccf3a3SEmmanuel Vadot 66c9ccf3a3SEmmanuel Vadot sound { 67c9ccf3a3SEmmanuel Vadot compatible = "samsung,tm2-audio"; 68c9ccf3a3SEmmanuel Vadot audio-codec = <&wm5110>, <&hdmi>; 69c9ccf3a3SEmmanuel Vadot i2s-controller = <&i2s0 0>, <&i2s1 0>; 70c9ccf3a3SEmmanuel Vadot audio-amplifier = <&max98504>; 71c9ccf3a3SEmmanuel Vadot mic-bias-gpios = <&gpr3 2 GPIO_ACTIVE_HIGH>; 72c9ccf3a3SEmmanuel Vadot model = "wm5110"; 73*aa1a8ff2SEmmanuel Vadot audio-routing = "HP", "HPOUT1L", 74c9ccf3a3SEmmanuel Vadot "HP", "HPOUT1R", 75c9ccf3a3SEmmanuel Vadot "SPK", "SPKOUT", 76c9ccf3a3SEmmanuel Vadot "SPKOUT", "HPOUT2L", 77c9ccf3a3SEmmanuel Vadot "SPKOUT", "HPOUT2R", 78c9ccf3a3SEmmanuel Vadot "RCV", "HPOUT3L", 79c9ccf3a3SEmmanuel Vadot "RCV", "HPOUT3R"; 80c9ccf3a3SEmmanuel Vadot }; 81