|
| 1 | +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | +%YAML 1.2 |
| 3 | +--- |
| 4 | +$id: http://devicetree.org/schemas/sound/samsung,midas-audio.yaml# |
| 5 | +$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | + |
| 7 | +title: Samsung Midas audio complex with WM1811 codec |
| 8 | + |
| 9 | +maintainers: |
| 10 | + - Sylwester Nawrocki <[email protected]> |
| 11 | + |
| 12 | +properties: |
| 13 | + compatible: |
| 14 | + const: samsung,midas-audio |
| 15 | + |
| 16 | + model: |
| 17 | + $ref: /schemas/types.yaml#/definitions/string |
| 18 | + description: The user-visible name of this sound complex. |
| 19 | + |
| 20 | + cpu: |
| 21 | + type: object |
| 22 | + properties: |
| 23 | + sound-dai: |
| 24 | + $ref: /schemas/types.yaml#/definitions/phandle |
| 25 | + description: phandle to the I2S controller |
| 26 | + required: |
| 27 | + - sound-dai |
| 28 | + |
| 29 | + codec: |
| 30 | + type: object |
| 31 | + properties: |
| 32 | + sound-dai: |
| 33 | + $ref: /schemas/types.yaml#/definitions/phandle |
| 34 | + description: phandle to the WM1811 CODEC |
| 35 | + required: |
| 36 | + - sound-dai |
| 37 | + |
| 38 | + samsung,audio-routing: |
| 39 | + $ref: /schemas/types.yaml#/definitions/non-unique-string-array |
| 40 | + description: | |
| 41 | + List of the connections between audio components; each entry is |
| 42 | + a pair of strings, the first being the connection's sink, the second |
| 43 | + being the connection's source; valid names for sources and sinks are |
| 44 | + the WM1811's pins (as documented in its binding), and the jacks |
| 45 | + on the board: HP, SPK, Main Mic, Sub Mic, Headset Mic. |
| 46 | +
|
| 47 | + mic-bias-supply: |
| 48 | + description: Supply for the micbias on the Main microphone |
| 49 | + |
| 50 | + submic-bias-supply: |
| 51 | + description: Supply for the micbias on the Sub microphone |
| 52 | + |
| 53 | + fm-sel-gpios: |
| 54 | + description: GPIO pin for FM selection |
| 55 | + |
| 56 | + lineout-sel-gpios: |
| 57 | + description: GPIO pin for line out selection |
| 58 | + |
| 59 | +required: |
| 60 | + - compatible |
| 61 | + - model |
| 62 | + - cpu |
| 63 | + - codec |
| 64 | + - samsung,audio-routing |
| 65 | + - mic-bias-supply |
| 66 | + - submic-bias-supply |
| 67 | + |
| 68 | +additionalProperties: false |
| 69 | + |
| 70 | +examples: |
| 71 | + - | |
| 72 | + #include <dt-bindings/gpio/gpio.h> |
| 73 | +
|
| 74 | + sound { |
| 75 | + compatible = "samsung,midas-audio"; |
| 76 | + model = "Midas"; |
| 77 | +
|
| 78 | + fm-sel-gpios = <&gpaa0 3 GPIO_ACTIVE_HIGH>; |
| 79 | +
|
| 80 | + mic-bias-supply = <&mic_bias_reg>; |
| 81 | + submic-bias-supply = <&submic_bias_reg>; |
| 82 | +
|
| 83 | + samsung,audio-routing = |
| 84 | + "HP", "HPOUT1L", |
| 85 | + "HP", "HPOUT1R", |
| 86 | +
|
| 87 | + "SPK", "SPKOUTLN", |
| 88 | + "SPK", "SPKOUTLP", |
| 89 | + "SPK", "SPKOUTRN", |
| 90 | + "SPK", "SPKOUTRP", |
| 91 | +
|
| 92 | + "RCV", "HPOUT2N", |
| 93 | + "RCV", "HPOUT2P", |
| 94 | +
|
| 95 | + "IN1LP", "Main Mic", |
| 96 | + "IN1LN", "Main Mic", |
| 97 | + "IN1RP", "Sub Mic", |
| 98 | + "IN1LP", "Sub Mic"; |
| 99 | +
|
| 100 | + cpu { |
| 101 | + sound-dai = <&i2s0>; |
| 102 | + }; |
| 103 | +
|
| 104 | + codec { |
| 105 | + sound-dai = <&wm1811>; |
| 106 | + }; |
| 107 | +
|
| 108 | + }; |
0 commit comments