| 1 |
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/sound/qcom,wcd938x.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Qualcomm WCD9380/WCD9385 Audio Codec |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Srinivas Kandagatla <[email protected]> |
| 11 |
|
| 12 |
description: | |
| 13 |
Qualcomm WCD9380/WCD9385 Codec is a standalone Hi-Fi audio codec IC. |
| 14 |
It has RX and TX Soundwire slave devices. |
| 15 |
|
| 16 |
allOf: |
| 17 |
- $ref: dai-common.yaml# |
| 18 |
- $ref: qcom,wcd93xx-common.yaml# |
| 19 |
|
| 20 |
properties: |
| 21 |
compatible: |
| 22 |
enum: |
| 23 |
- qcom,wcd9380-codec |
| 24 |
- qcom,wcd9385-codec |
| 25 |
|
| 26 |
mux-controls: |
| 27 |
description: A reference to the audio mux switch for |
| 28 |
switching CTIA/OMTP Headset types |
| 29 |
maxItems: 1 |
| 30 |
|
| 31 |
us-euro-gpios: |
| 32 |
description: GPIO spec for swapping gnd and mic segments |
| 33 |
maxItems: 1 |
| 34 |
deprecated: true |
| 35 |
|
| 36 |
required: |
| 37 |
- compatible |
| 38 |
|
| 39 |
unevaluatedProperties: false |
| 40 |
|
| 41 |
examples: |
| 42 |
- | |
| 43 |
#include <dt-bindings/gpio/gpio.h> |
| 44 |
codec { |
| 45 |
compatible = "qcom,wcd9380-codec"; |
| 46 |
reset-gpios = <&tlmm 32 GPIO_ACTIVE_LOW>; |
| 47 |
#sound-dai-cells = <1>; |
| 48 |
qcom,tx-device = <&wcd938x_tx>; |
| 49 |
qcom,rx-device = <&wcd938x_rx>; |
| 50 |
qcom,micbias1-microvolt = <1800000>; |
| 51 |
qcom,micbias2-microvolt = <1800000>; |
| 52 |
qcom,micbias3-microvolt = <1800000>; |
| 53 |
qcom,micbias4-microvolt = <1800000>; |
| 54 |
qcom,hphl-jack-type-normally-closed; |
| 55 |
qcom,ground-jack-type-normally-closed; |
| 56 |
qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; |
| 57 |
qcom,mbhc-headphone-vthreshold-microvolt = <50000>; |
| 58 |
}; |
| 59 |
|
| 60 |
/* ... */ |
| 61 |
|
| 62 |
soundwire@3210000 { |
| 63 |
#address-cells = <2>; |
| 64 |
#size-cells = <0>; |
| 65 |
reg = <0x03210000 0x2000>; |
| 66 |
wcd938x_rx: codec@0,4 { |
| 67 |
compatible = "sdw20217010d00"; |
| 68 |
reg = <0 4>; |
| 69 |
qcom,rx-port-mapping = <1 2 3 4 5>; |
| 70 |
}; |
| 71 |
}; |
| 72 |
|
| 73 |
soundwire@3230000 { |
| 74 |
#address-cells = <2>; |
| 75 |
#size-cells = <0>; |
| 76 |
reg = <0x03230000 0x2000>; |
| 77 |
wcd938x_tx: codec@0,3 { |
| 78 |
compatible = "sdw20217010d00"; |
| 79 |
reg = <0 3>; |
| 80 |
qcom,tx-port-mapping = <2 3 4 5>; |
| 81 |
}; |
| 82 |
}; |
| 83 |
|
| 84 |
... |