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,midas-audio.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Samsung Midas audio complex with WM1811 7 title: Samsung Midas audio complex with WM1811 codec 8 8 9 maintainers: 9 maintainers: 10 - Sylwester Nawrocki <s.nawrocki@samsung.com> 10 - Sylwester Nawrocki <s.nawrocki@samsung.com> 11 11 12 allOf: << 13 - $ref: sound-card-common.yaml# << 14 << 15 properties: 12 properties: 16 compatible: 13 compatible: 17 const: samsung,midas-audio 14 const: samsung,midas-audio 18 15 >> 16 model: >> 17 $ref: /schemas/types.yaml#/definitions/string >> 18 description: The user-visible name of this sound complex. >> 19 19 cpu: 20 cpu: 20 type: object 21 type: object 21 additionalProperties: false 22 additionalProperties: false 22 properties: 23 properties: 23 sound-dai: 24 sound-dai: 24 maxItems: 1 25 maxItems: 1 25 description: phandle to the I2S contro 26 description: phandle to the I2S controller 26 required: 27 required: 27 - sound-dai 28 - sound-dai 28 29 29 codec: 30 codec: 30 type: object 31 type: object 31 additionalProperties: false 32 additionalProperties: false 32 properties: 33 properties: 33 sound-dai: 34 sound-dai: 34 maxItems: 1 35 maxItems: 1 35 description: phandle to the WM1811 COD 36 description: phandle to the WM1811 CODEC 36 required: 37 required: 37 - sound-dai 38 - sound-dai 38 39 39 samsung,audio-routing: 40 samsung,audio-routing: 40 deprecated: true << 41 $ref: /schemas/types.yaml#/definitions/non 41 $ref: /schemas/types.yaml#/definitions/non-unique-string-array 42 description: | 42 description: | 43 List of the connections between audio co 43 List of the connections between audio components; each entry is 44 a pair of strings, the first being the c 44 a pair of strings, the first being the connection's sink, the second 45 being the connection's source; valid nam 45 being the connection's source; valid names for sources and sinks are 46 the WM1811's pins (as documented in its 46 the WM1811's pins (as documented in its binding), and the jacks 47 on the board: HP, SPK, Main Mic, Sub Mic 47 on the board: HP, SPK, Main Mic, Sub Mic, Headset Mic. 48 Deprecated, use audio-routing. << 49 48 50 mic-bias-supply: 49 mic-bias-supply: 51 description: Supply for the micbias on the 50 description: Supply for the micbias on the Main microphone 52 51 53 submic-bias-supply: 52 submic-bias-supply: 54 description: Supply for the micbias on the 53 description: Supply for the micbias on the Sub microphone 55 54 56 headset-mic-bias-supply: << 57 description: Supply for the micbias on the << 58 << 59 fm-sel-gpios: 55 fm-sel-gpios: 60 maxItems: 1 56 maxItems: 1 61 description: GPIO pin for FM selection 57 description: GPIO pin for FM selection 62 58 63 lineout-sel-gpios: 59 lineout-sel-gpios: 64 maxItems: 1 60 maxItems: 1 65 description: GPIO pin for line out selecti 61 description: GPIO pin for line out selection 66 62 67 headset-detect-gpios: << 68 maxItems: 1 << 69 description: GPIO for detection of headset << 70 << 71 headset-key-gpios: << 72 maxItems: 1 << 73 description: GPIO for detection of headset << 74 << 75 io-channels: << 76 maxItems: 1 << 77 description: IO channel to read micbias vo << 78 << 79 io-channel-names: << 80 const: headset-detect << 81 << 82 samsung,headset-4pole-threshold-microvolt: << 83 minItems: 2 << 84 maxItems: 2 << 85 description: << 86 Array containing minimum and maximum IO << 87 (with microphone/button) headsets. If th << 88 outside of this range, a 3-pole headset << 89 << 90 samsung,headset-button-threshold-microvolt: << 91 minItems: 3 << 92 maxItems: 3 << 93 description: | << 94 Array of minimum (inclusive) IO channel << 95 detection, in order: "Media", "Volume Up << 96 << 97 required: 63 required: 98 - compatible 64 - compatible >> 65 - model 99 - cpu 66 - cpu 100 - codec 67 - codec 101 - audio-routing !! 68 - samsung,audio-routing 102 - mic-bias-supply 69 - mic-bias-supply 103 - submic-bias-supply 70 - submic-bias-supply 104 71 105 unevaluatedProperties: false !! 72 additionalProperties: false 106 73 107 examples: 74 examples: 108 - | 75 - | 109 #include <dt-bindings/gpio/gpio.h> 76 #include <dt-bindings/gpio/gpio.h> 110 77 111 sound { 78 sound { 112 compatible = "samsung,midas-audio"; 79 compatible = "samsung,midas-audio"; 113 model = "Midas"; 80 model = "Midas"; 114 81 115 fm-sel-gpios = <&gpaa0 3 GPIO_ACTIVE_H 82 fm-sel-gpios = <&gpaa0 3 GPIO_ACTIVE_HIGH>; 116 83 117 mic-bias-supply = <&mic_bias_reg>; 84 mic-bias-supply = <&mic_bias_reg>; 118 submic-bias-supply = <&submic_bias_reg 85 submic-bias-supply = <&submic_bias_reg>; 119 86 120 audio-routing = !! 87 samsung,audio-routing = 121 "HP", "HPOUT1L", 88 "HP", "HPOUT1L", 122 "HP", "HPOUT1R", 89 "HP", "HPOUT1R", 123 90 124 "SPK", "SPKOUTLN", 91 "SPK", "SPKOUTLN", 125 "SPK", "SPKOUTLP", 92 "SPK", "SPKOUTLP", 126 "SPK", "SPKOUTRN", 93 "SPK", "SPKOUTRN", 127 "SPK", "SPKOUTRP", 94 "SPK", "SPKOUTRP", 128 95 129 "RCV", "HPOUT2N", 96 "RCV", "HPOUT2N", 130 "RCV", "HPOUT2P", 97 "RCV", "HPOUT2P", 131 98 132 "IN1LP", "Main Mic", 99 "IN1LP", "Main Mic", 133 "IN1LN", "Main Mic", 100 "IN1LN", "Main Mic", 134 "IN1RP", "Sub Mic", 101 "IN1RP", "Sub Mic", 135 "IN1LP", "Sub Mic"; 102 "IN1LP", "Sub Mic"; 136 103 137 cpu { 104 cpu { 138 sound-dai = <&i2s0>; 105 sound-dai = <&i2s0>; 139 }; 106 }; 140 107 141 codec { 108 codec { 142 sound-dai = <&wm1811>; 109 sound-dai = <&wm1811>; 143 }; 110 }; 144 111 145 }; 112 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.