Skip to content

Commit 857e946

Browse files
committed
Merge branch 'sound/upstream-20210623-2' into merge/sound-upstream-20210623
2 parents 695d444 + 6efe5e3 commit 857e946

580 files changed

Lines changed: 14587 additions & 5530 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.clang-format

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ ForEachMacros:
109109
- 'css_for_each_child'
110110
- 'css_for_each_descendant_post'
111111
- 'css_for_each_descendant_pre'
112-
- 'cxl_for_each_cmd'
113112
- 'device_for_each_child_node'
113+
- 'displayid_iter_for_each'
114114
- 'dma_fence_chain_for_each'
115115
- 'do_for_each_ftrace_op'
116116
- 'drm_atomic_crtc_for_each_plane'
@@ -136,6 +136,7 @@ ForEachMacros:
136136
- 'drm_mm_for_each_node_in_range'
137137
- 'drm_mm_for_each_node_safe'
138138
- 'flow_action_for_each'
139+
- 'for_each_acpi_dev_match'
139140
- 'for_each_active_dev_scope'
140141
- 'for_each_active_drhd_unit'
141142
- 'for_each_active_iommu'
@@ -171,14 +172,14 @@ ForEachMacros:
171172
- 'for_each_dapm_widgets'
172173
- 'for_each_dev_addr'
173174
- 'for_each_dev_scope'
174-
- 'for_each_displayid_db'
175175
- 'for_each_dma_cap_mask'
176176
- 'for_each_dpcm_be'
177177
- 'for_each_dpcm_be_rollback'
178178
- 'for_each_dpcm_be_safe'
179179
- 'for_each_dpcm_fe'
180180
- 'for_each_drhd_unit'
181181
- 'for_each_dss_dev'
182+
- 'for_each_dtpm_table'
182183
- 'for_each_efi_memory_desc'
183184
- 'for_each_efi_memory_desc_in_map'
184185
- 'for_each_element'
@@ -215,6 +216,7 @@ ForEachMacros:
215216
- 'for_each_migratetype_order'
216217
- 'for_each_msi_entry'
217218
- 'for_each_msi_entry_safe'
219+
- 'for_each_msi_vector'
218220
- 'for_each_net'
219221
- 'for_each_net_continue_reverse'
220222
- 'for_each_netdev'
@@ -270,6 +272,12 @@ ForEachMacros:
270272
- 'for_each_prime_number_from'
271273
- 'for_each_process'
272274
- 'for_each_process_thread'
275+
- 'for_each_prop_codec_conf'
276+
- 'for_each_prop_dai_codec'
277+
- 'for_each_prop_dai_cpu'
278+
- 'for_each_prop_dlc_codecs'
279+
- 'for_each_prop_dlc_cpus'
280+
- 'for_each_prop_dlc_platforms'
273281
- 'for_each_property_of_node'
274282
- 'for_each_registered_fb'
275283
- 'for_each_requested_gpio'
@@ -430,6 +438,7 @@ ForEachMacros:
430438
- 'queue_for_each_hw_ctx'
431439
- 'radix_tree_for_each_slot'
432440
- 'radix_tree_for_each_tagged'
441+
- 'rb_for_each'
433442
- 'rbtree_postorder_for_each_entry_safe'
434443
- 'rdma_for_each_block'
435444
- 'rdma_for_each_port'

Documentation/devicetree/bindings/connector/usb-connector.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,17 @@ properties:
149149
maxItems: 6
150150
$ref: /schemas/types.yaml#/definitions/uint32-array
151151

152+
sink-vdos-v1:
153+
description: An array of u32 with each entry, a Vendor Defined Message Object (VDO),
154+
providing additional information corresponding to the product, the detailed bit
155+
definitions and the order of each VDO can be found in
156+
"USB Power Delivery Specification Revision 2.0, Version 1.3" chapter 6.4.4.3.1 Discover
157+
Identity. User can specify the VDO array via VDO_IDH/_CERT/_PRODUCT/_CABLE/_AMA defined in
158+
dt-bindings/usb/pd.h.
159+
minItems: 3
160+
maxItems: 6
161+
$ref: /schemas/types.yaml#/definitions/uint32-array
162+
152163
op-sink-microwatt:
153164
description: Sink required operating power in microwatt, if source can't
154165
offer the power, Capability Mismatch is set. Required for power sink and
@@ -207,6 +218,10 @@ properties:
207218
SNK_READY for non-pd link.
208219
type: boolean
209220

221+
dependencies:
222+
sink-vdos-v1: [ 'sink-vdos' ]
223+
sink-vdos: [ 'sink-vdos-v1' ]
224+
210225
required:
211226
- compatible
212227

Documentation/devicetree/bindings/hwmon/ti,ads7828.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ examples:
4949
#size-cells = <0>;
5050
5151
adc@48 {
52-
comatible = "ti,ads7828";
52+
compatible = "ti,ads7828";
5353
reg = <0x48>;
5454
vref-supply = <&vref>;
5555
ti,differential-input;

Documentation/devicetree/bindings/media/renesas,drif.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ properties:
6767
maxItems: 1
6868

6969
clock-names:
70-
maxItems: 1
71-
items:
72-
- const: fck
70+
const: fck
7371

7472
resets:
7573
maxItems: 1

Documentation/devicetree/bindings/sound/fsl,spdif.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ properties:
2525
- fsl,imx8mq-spdif
2626
- fsl,imx8mm-spdif
2727
- fsl,imx8mn-spdif
28+
- fsl,imx8ulp-spdif
2829

2930
reg:
3031
maxItems: 1

Documentation/devicetree/bindings/sound/fsl-sai.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ Required properties:
99

1010
- compatible : Compatible list, contains "fsl,vf610-sai",
1111
"fsl,imx6sx-sai", "fsl,imx6ul-sai",
12-
"fsl,imx7ulp-sai", "fsl,imx8mq-sai" or
13-
"fsl,imx8qm-sai".
12+
"fsl,imx7ulp-sai", "fsl,imx8mq-sai",
13+
"fsl,imx8qm-sai", "fsl,imx8mm-sai",
14+
"fsl,imx8mn-sai", "fsl,imx8mp-sai", or
15+
"fsl,imx8ulp-sai".
1416

1517
- reg : Offset and length of the register set for the device.
1618

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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-sdw.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Bindings for Qualcomm SoundWire Slave devices on WCD9380/WCD9385
8+
9+
maintainers:
10+
- Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
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. This bindings is for the
15+
slave devices.
16+
17+
properties:
18+
compatible:
19+
const: sdw20217010d00
20+
21+
reg:
22+
maxItems: 1
23+
24+
qcom,tx-port-mapping:
25+
description: |
26+
Specifies static port mapping between slave and master tx ports.
27+
In the order of slave port index.
28+
$ref: /schemas/types.yaml#/definitions/uint32-array
29+
minItems: 4
30+
maxItems: 4
31+
32+
qcom,rx-port-mapping:
33+
description: |
34+
Specifies static port mapping between slave and master rx ports.
35+
In the order of slave port index.
36+
$ref: /schemas/types.yaml#/definitions/uint32-array
37+
minItems: 5
38+
maxItems: 5
39+
40+
required:
41+
- compatible
42+
- reg
43+
44+
additionalProperties: false
45+
46+
examples:
47+
- |
48+
soundwire@3210000 {
49+
#address-cells = <2>;
50+
#size-cells = <0>;
51+
reg = <0x03210000 0x2000>;
52+
wcd938x_rx: codec@0,4 {
53+
compatible = "sdw20217010d00";
54+
reg = <0 4>;
55+
qcom,rx-port-mapping = <1 2 3 4 5>;
56+
};
57+
};
58+
59+
soundwire@3230000 {
60+
#address-cells = <2>;
61+
#size-cells = <0>;
62+
reg = <0x03230000 0x2000>;
63+
wcd938x_tx: codec@0,3 {
64+
compatible = "sdw20217010d00";
65+
reg = <0 3>;
66+
qcom,tx-port-mapping = <2 3 4 5>;
67+
};
68+
};
69+
70+
...
Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
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: Bindings for Qualcomm WCD9380/WCD9385 Audio Codec
8+
9+
maintainers:
10+
- Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
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+
properties:
17+
compatible:
18+
enum:
19+
- qcom,wcd9380-codec
20+
- qcom,wcd9385-codec
21+
22+
reset-gpios:
23+
description: GPIO spec for reset line to use
24+
maxItems: 1
25+
26+
vdd-buck-supply:
27+
description: A reference to the 1.8V buck supply
28+
29+
vdd-rxtx-supply:
30+
description: A reference to the 1.8V rx supply
31+
32+
vdd-io-supply:
33+
description: A reference to the 1.8V I/O supply
34+
35+
qcom,tx-device:
36+
$ref: /schemas/types.yaml#/definitions/phandle-array
37+
description: A reference to Soundwire tx device phandle
38+
39+
qcom,rx-device:
40+
$ref: /schemas/types.yaml#/definitions/phandle-array
41+
description: A reference to Soundwire rx device phandle
42+
43+
qcom,micbias1-microvolt:
44+
description: micbias1 voltage
45+
minimum: 1800000
46+
maximum: 2850000
47+
48+
qcom,micbias2-microvolt:
49+
description: micbias2 voltage
50+
minimum: 1800000
51+
maximum: 2850000
52+
53+
qcom,micbias3-microvolt:
54+
description: micbias3 voltage
55+
minimum: 1800000
56+
maximum: 2850000
57+
58+
qcom,micbias4-microvolt:
59+
description: micbias4 voltage
60+
minimum: 1800000
61+
maximum: 2850000
62+
63+
qcom,hphl-jack-type-normally-closed:
64+
description: Indicates that HPHL jack switch type is normally closed
65+
type: boolean
66+
67+
qcom,ground-jack-type-normally-closed:
68+
description: Indicates that Headset Ground switch type is normally closed
69+
type: boolean
70+
71+
qcom,mbhc-headset-vthreshold-microvolt:
72+
description: Voltage threshold value for headset detection
73+
minimum: 0
74+
maximum: 2850000
75+
76+
qcom,mbhc-headphone-vthreshold-microvolt:
77+
description: Voltage threshold value for headphone detection
78+
minimum: 0
79+
maximum: 2850000
80+
81+
qcom,mbhc-buttons-vthreshold-microvolt:
82+
description:
83+
Array of 8 Voltage threshold values corresponding to headset
84+
button0 - button7
85+
minItems: 8
86+
maxItems: 8
87+
88+
'#sound-dai-cells':
89+
const: 1
90+
91+
required:
92+
- compatible
93+
- reset-gpios
94+
- qcom,tx-device
95+
- qcom,rx-device
96+
- qcom,micbias1-microvolt
97+
- qcom,micbias2-microvolt
98+
- qcom,micbias3-microvolt
99+
- qcom,micbias4-microvolt
100+
- "#sound-dai-cells"
101+
102+
additionalProperties: false
103+
104+
examples:
105+
- |
106+
codec {
107+
compatible = "qcom,wcd9380-codec";
108+
reset-gpios = <&tlmm 32 0>;
109+
#sound-dai-cells = <1>;
110+
qcom,tx-device = <&wcd938x_tx>;
111+
qcom,rx-device = <&wcd938x_rx>;
112+
qcom,micbias1-microvolt = <1800000>;
113+
qcom,micbias2-microvolt = <1800000>;
114+
qcom,micbias3-microvolt = <1800000>;
115+
qcom,micbias4-microvolt = <1800000>;
116+
qcom,hphl-jack-type-normally-closed;
117+
qcom,ground-jack-type-normally-closed;
118+
qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>;
119+
qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
120+
};
121+
122+
/* ... */
123+
124+
soundwire@3210000 {
125+
#address-cells = <2>;
126+
#size-cells = <0>;
127+
reg = <0x03210000 0x2000>;
128+
wcd938x_rx: codec@0,4 {
129+
compatible = "sdw20217010d00";
130+
reg = <0 4>;
131+
qcom,rx-port-mapping = <1 2 3 4 5>;
132+
};
133+
};
134+
135+
soundwire@3230000 {
136+
#address-cells = <2>;
137+
#size-cells = <0>;
138+
reg = <0x03230000 0x2000>;
139+
wcd938x_tx: codec@0,3 {
140+
compatible = "sdw20217010d00";
141+
reg = <0 3>;
142+
qcom,tx-port-mapping = <2 3 4 5>;
143+
};
144+
};
145+
146+
...

Documentation/devicetree/bindings/sound/sgtl5000.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ properties:
7575
$ref: "/schemas/types.yaml#/definitions/uint32"
7676
enum: [ 0, 1, 2, 3 ]
7777

78+
port:
79+
$ref: audio-graph-port.yaml#
80+
unevaluatedProperties: false
81+
7882
required:
7983
- compatible
8084
- reg

Documentation/devicetree/bindings/sound/tlv320aic32x4.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Required properties:
66
- compatible - "string" - One of:
77
"ti,tlv320aic32x4" TLV320AIC3204
88
"ti,tlv320aic32x6" TLV320AIC3206, TLV320AIC3256
9+
"ti,tas2505" TAS2505, TAS2521
910
- reg: I2C slave address
1011
- supply-*: Required supply regulators are:
1112
"iov" - digital IO power supply

0 commit comments

Comments
 (0)