Debian Codegraph @

Documentation/devicetree/bindings/sound/qcom,wsa883x.yaml

raw
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,wsa883x.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Qualcomm WSA8830/WSA8832/WSA8835
8 smart speaker amplifier
9
10 maintainers:
11 - Srinivas Kandagatla <[email protected]>
12
13 description: |
14 WSA883X is the Qualcomm Aqstic smart speaker amplifier
15 Their primary operating mode uses a SoundWire digital audio
16 interface. This binding is for SoundWire interface.
17
18 allOf:
19 - $ref: dai-common.yaml#
20
21 properties:
22 compatible:
23 const: sdw10217020200
24
25 reg:
26 maxItems: 1
27
28 powerdown-gpios:
29 description: GPIO spec for Powerdown/Shutdown line to use (pin SD_N)
30 maxItems: 1
31
32 reset-gpios:
33 description: Powerdown/Shutdown line to use (pin SD_N)
34 maxItems: 1
35
36 vdd-supply:
37 description: VDD Supply for the Codec
38
39 qcom,port-mapping:
40 description: |
41 Specifies static port mapping between slave and master ports.
42 In the order of slave port index.
43 $ref: /schemas/types.yaml#/definitions/uint32-array
44 minItems: 4
45 maxItems: 4
46
47 '#thermal-sensor-cells':
48 const: 0
49
50 '#sound-dai-cells':
51 const: 0
52
53 required:
54 - compatible
55 - reg
56 - vdd-supply
57 - "#thermal-sensor-cells"
58 - "#sound-dai-cells"
59
60 oneOf:
61 - required:
62 - powerdown-gpios
63 - required:
64 - reset-gpios
65
66 unevaluatedProperties: false
67
68 examples:
69 - |
70 #include <dt-bindings/gpio/gpio.h>
71
72 soundwire@3250000 {
73 #address-cells = <2>;
74 #size-cells = <0>;
75 reg = <0x3250000 0x2000>;
76
77 speaker@0,1 {
78 compatible = "sdw10217020200";
79 reg = <0 1>;
80 powerdown-gpios = <&tlmm 1 GPIO_ACTIVE_LOW>;
81 vdd-supply = <&vreg_s10b_1p8>;
82 #thermal-sensor-cells = <0>;
83 #sound-dai-cells = <0>;
84 sound-name-prefix = "SpkrLeft";
85 };
86
87 speaker@0,2 {
88 compatible = "sdw10217020200";
89 reg = <0 2>;
90 powerdown-gpios = <&tlmm 89 GPIO_ACTIVE_LOW>;
91 vdd-supply = <&vreg_s10b_1p8>;
92 #thermal-sensor-cells = <0>;
93 #sound-dai-cells = <0>;
94 sound-name-prefix = "SpkrRight";
95 };
96 };
97
98 ...