xref: /freebsd-src/sys/contrib/device-tree/Bindings/sound/qcom,wsa8840.yaml (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1f126890aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2f126890aSEmmanuel Vadot%YAML 1.2
3f126890aSEmmanuel Vadot---
4f126890aSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/qcom,wsa8840.yaml#
5f126890aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6f126890aSEmmanuel Vadot
7f126890aSEmmanuel Vadottitle: Qualcomm WSA8840/WSA8845/WSA8845H smart speaker amplifier
8f126890aSEmmanuel Vadot
9f126890aSEmmanuel Vadotmaintainers:
10f126890aSEmmanuel Vadot  - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
11f126890aSEmmanuel Vadot  - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
12f126890aSEmmanuel Vadot
13f126890aSEmmanuel Vadotdescription:
14f126890aSEmmanuel Vadot  WSA884X is a family of Qualcomm Aqstic smart speaker amplifiers using
15f126890aSEmmanuel Vadot  SoundWire digital audio interface.
16f126890aSEmmanuel Vadot
17f126890aSEmmanuel VadotallOf:
18f126890aSEmmanuel Vadot  - $ref: dai-common.yaml#
19f126890aSEmmanuel Vadot
20f126890aSEmmanuel Vadotproperties:
21f126890aSEmmanuel Vadot  compatible:
22f126890aSEmmanuel Vadot    const: sdw20217020400
23f126890aSEmmanuel Vadot
24f126890aSEmmanuel Vadot  reg:
25f126890aSEmmanuel Vadot    maxItems: 1
26f126890aSEmmanuel Vadot
27f126890aSEmmanuel Vadot  powerdown-gpios:
28f126890aSEmmanuel Vadot    description: Powerdown/Shutdown line to use (pin SD_N)
29f126890aSEmmanuel Vadot    maxItems: 1
30f126890aSEmmanuel Vadot
3101950c46SEmmanuel Vadot  reset-gpios:
3201950c46SEmmanuel Vadot    description: Powerdown/Shutdown line to use (pin SD_N)
3301950c46SEmmanuel Vadot    maxItems: 1
3401950c46SEmmanuel Vadot
35*0e8011faSEmmanuel Vadot  qcom,port-mapping:
36*0e8011faSEmmanuel Vadot    description: |
37*0e8011faSEmmanuel Vadot      Specifies static port mapping between slave and master ports.
38*0e8011faSEmmanuel Vadot      In the order of slave port index.
39*0e8011faSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32-array
40*0e8011faSEmmanuel Vadot    minItems: 6
41*0e8011faSEmmanuel Vadot    maxItems: 6
42*0e8011faSEmmanuel Vadot
43f126890aSEmmanuel Vadot  '#sound-dai-cells':
44f126890aSEmmanuel Vadot    const: 0
45f126890aSEmmanuel Vadot
46f126890aSEmmanuel Vadot  vdd-1p8-supply: true
47f126890aSEmmanuel Vadot  vdd-io-supply: true
48f126890aSEmmanuel Vadot
49f126890aSEmmanuel Vadotrequired:
50f126890aSEmmanuel Vadot  - compatible
51f126890aSEmmanuel Vadot  - reg
52f126890aSEmmanuel Vadot  - '#sound-dai-cells'
53f126890aSEmmanuel Vadot  - vdd-1p8-supply
54f126890aSEmmanuel Vadot  - vdd-io-supply
55f126890aSEmmanuel Vadot
5601950c46SEmmanuel VadotoneOf:
5701950c46SEmmanuel Vadot  - required:
5801950c46SEmmanuel Vadot      - powerdown-gpios
5901950c46SEmmanuel Vadot  - required:
6001950c46SEmmanuel Vadot      - reset-gpios
6101950c46SEmmanuel Vadot
62f126890aSEmmanuel VadotunevaluatedProperties: false
63f126890aSEmmanuel Vadot
64f126890aSEmmanuel Vadotexamples:
65f126890aSEmmanuel Vadot  - |
66f126890aSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
67f126890aSEmmanuel Vadot
688d13bc63SEmmanuel Vadot    soundwire {
69f126890aSEmmanuel Vadot        #address-cells = <2>;
70f126890aSEmmanuel Vadot        #size-cells = <0>;
71f126890aSEmmanuel Vadot
72f126890aSEmmanuel Vadot        speaker@0,1 {
73f126890aSEmmanuel Vadot            compatible = "sdw20217020400";
74f126890aSEmmanuel Vadot            reg = <0 1>;
75f126890aSEmmanuel Vadot            pinctrl-names = "default";
76f126890aSEmmanuel Vadot            pinctrl-0 = <&spkr_2_sd_n_active>;
77f126890aSEmmanuel Vadot            powerdown-gpios = <&lpass_tlmm 18 GPIO_ACTIVE_LOW>;
78f126890aSEmmanuel Vadot            #sound-dai-cells = <0>;
79f126890aSEmmanuel Vadot            sound-name-prefix = "SpkrRight";
80f126890aSEmmanuel Vadot            vdd-1p8-supply = <&vreg_l15b_1p8>;
81f126890aSEmmanuel Vadot            vdd-io-supply = <&vreg_l3g_1p2>;
82f126890aSEmmanuel Vadot        };
83f126890aSEmmanuel Vadot    };
84