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