1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/sound/samsung,aries-wm8994.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Samsung Aries audio complex with WM8994 codec
10 - Jonathan Bakker <xc-racer2@live.ca>
15 # With FM radio and modem master
16 - samsung,aries-wm8994
17 # Without FM radio and modem slave
18 - samsung,fascinate4g-wm8994
21 $ref: /schemas/types.yaml#/definitions/string
22 description: The user-visible name of this sound complex.
30 $ref: /schemas/types.yaml#/definitions/phandle-array
32 phandles to the I2S controller and bluetooth codec,
39 $ref: /schemas/types.yaml#/definitions/phandle-array
40 description: phandle to the WM8994 CODEC
42 samsung,audio-routing:
43 $ref: /schemas/types.yaml#/definitions/non-unique-string-array
45 List of the connections between audio
46 components; each entry is a pair of strings, the first being the
47 connection's sink, the second being the connection's source;
48 valid names for sources and sinks are the WM8994's pins (as
49 documented in its binding), and the jacks on the board -
50 For samsung,aries-wm8994: HP, SPK, RCV, LINE, Main Mic, Headset Mic,
52 For samsung,fascinate4g-wm8994: HP, SPK, RCV, LINE, Main Mic,
56 description: Extcon phandle for dock detection
59 description: Supply for the micbias on the main mic
61 headset-micbias-supply:
62 description: Supply for the micbias on the headset mic
66 description: GPIO for switching between tv-out and mic paths
70 description: GPIO for detection of headset insertion
74 description: GPIO for detection of headset key press
78 description: IO channel to read micbias voltage for headset detection
88 - samsung,audio-routing
91 - headset-micbias-supply
93 - headset-detect-gpios
96 additionalProperties: false
100 #include <dt-bindings/gpio/gpio.h>
103 compatible = "samsung,fascinate4g-wm8994";
105 model = "Fascinate4G";
109 main-micbias-supply = <&main_micbias_reg>;
110 headset-micbias-supply = <&headset_micbias_reg>;
112 earpath-sel-gpios = <&gpj2 6 GPIO_ACTIVE_HIGH>;
114 io-channels = <&adc 3>;
115 io-channel-names = "headset-detect";
116 headset-detect-gpios = <&gph0 6 GPIO_ACTIVE_HIGH>;
117 headset-key-gpios = <&gph3 6 GPIO_ACTIVE_HIGH>;
119 samsung,audio-routing =
135 "IN1RP", "Headset Mic",
136 "IN1RN", "Headset Mic";
138 pinctrl-names = "default";
139 pinctrl-0 = <&headset_det &earpath_sel>;
142 sound-dai = <&i2s0>, <&bt_codec>;
146 sound-dai = <&wm8994>;