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.
26 additionalProperties: false
32 phandles to the I2S controller and bluetooth codec,
38 additionalProperties: false
43 description: phandle to the WM8994 CODEC
47 samsung,audio-routing:
48 $ref: /schemas/types.yaml#/definitions/non-unique-string-array
50 List of the connections between audio
51 components; each entry is a pair of strings, the first being the
52 connection's sink, the second being the connection's source;
53 valid names for sources and sinks are the WM8994's pins (as
54 documented in its binding), and the jacks on the board -
55 For samsung,aries-wm8994: HP, SPK, RCV, LINE, Main Mic, Headset Mic,
57 For samsung,fascinate4g-wm8994: HP, SPK, RCV, LINE, Main Mic,
61 description: Extcon phandle for dock detection
64 description: Supply for the micbias on the main mic
66 headset-micbias-supply:
67 description: Supply for the micbias on the headset mic
71 description: GPIO for switching between tv-out and mic paths
75 description: GPIO for detection of headset insertion
79 description: GPIO for detection of headset key press
83 description: IO channel to read micbias voltage for headset detection
93 - samsung,audio-routing
96 - headset-micbias-supply
98 - headset-detect-gpios
101 additionalProperties: false
105 #include <dt-bindings/gpio/gpio.h>
108 compatible = "samsung,fascinate4g-wm8994";
110 model = "Fascinate4G";
114 main-micbias-supply = <&main_micbias_reg>;
115 headset-micbias-supply = <&headset_micbias_reg>;
117 earpath-sel-gpios = <&gpj2 6 GPIO_ACTIVE_HIGH>;
119 io-channels = <&adc 3>;
120 io-channel-names = "headset-detect";
121 headset-detect-gpios = <&gph0 6 GPIO_ACTIVE_HIGH>;
122 headset-key-gpios = <&gph3 6 GPIO_ACTIVE_HIGH>;
124 samsung,audio-routing =
140 "IN1RP", "Headset Mic",
141 "IN1RN", "Headset Mic";
143 pinctrl-names = "default";
144 pinctrl-0 = <&headset_det &earpath_sel>;
147 sound-dai = <&i2s0>, <&bt_codec>;
151 sound-dai = <&wm8994>;