xref: /linux/Documentation/devicetree/bindings/sound/qcom,wcd939x-sdw.yaml (revision 79790b6818e96c58fe2bffee1b418c16e64e7b80)
1*edf647d1SNeil Armstrong# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*edf647d1SNeil Armstrong%YAML 1.2
3*edf647d1SNeil Armstrong---
4*edf647d1SNeil Armstrong$id: http://devicetree.org/schemas/sound/qcom,wcd939x-sdw.yaml#
5*edf647d1SNeil Armstrong$schema: http://devicetree.org/meta-schemas/core.yaml#
6*edf647d1SNeil Armstrong
7*edf647d1SNeil Armstrongtitle: Qualcomm SoundWire devices on WCD9390/WCD9395
8*edf647d1SNeil Armstrong
9*edf647d1SNeil Armstrongmaintainers:
10*edf647d1SNeil Armstrong  - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
11*edf647d1SNeil Armstrong
12*edf647d1SNeil Armstrongdescription: |
13*edf647d1SNeil Armstrong  Qualcomm WCD9390/WCD9395 Codec is a standalone Hi-Fi audio codec IC.
14*edf647d1SNeil Armstrong  It has RX and TX Soundwire devices. This bindings is for the devices.
15*edf647d1SNeil Armstrong
16*edf647d1SNeil Armstrongproperties:
17*edf647d1SNeil Armstrong  compatible:
18*edf647d1SNeil Armstrong    const: sdw20217010e00
19*edf647d1SNeil Armstrong
20*edf647d1SNeil Armstrong  reg:
21*edf647d1SNeil Armstrong    maxItems: 1
22*edf647d1SNeil Armstrong
23*edf647d1SNeil Armstrong  qcom,tx-port-mapping:
24*edf647d1SNeil Armstrong    description: |
25*edf647d1SNeil Armstrong      Specifies static port mapping between device and host tx ports.
26*edf647d1SNeil Armstrong      In the order of the device port index.
27*edf647d1SNeil Armstrong    $ref: /schemas/types.yaml#/definitions/uint32-array
28*edf647d1SNeil Armstrong    minItems: 4
29*edf647d1SNeil Armstrong    maxItems: 4
30*edf647d1SNeil Armstrong
31*edf647d1SNeil Armstrong  qcom,rx-port-mapping:
32*edf647d1SNeil Armstrong    description: |
33*edf647d1SNeil Armstrong      Specifies static port mapping between device and host rx ports.
34*edf647d1SNeil Armstrong      In the order of device port index.
35*edf647d1SNeil Armstrong    $ref: /schemas/types.yaml#/definitions/uint32-array
36*edf647d1SNeil Armstrong    minItems: 6
37*edf647d1SNeil Armstrong    maxItems: 6
38*edf647d1SNeil Armstrong
39*edf647d1SNeil Armstrongrequired:
40*edf647d1SNeil Armstrong  - compatible
41*edf647d1SNeil Armstrong  - reg
42*edf647d1SNeil Armstrong
43*edf647d1SNeil ArmstrongadditionalProperties: false
44*edf647d1SNeil Armstrong
45*edf647d1SNeil Armstrongexamples:
46*edf647d1SNeil Armstrong  - |
47*edf647d1SNeil Armstrong    soundwire@3210000 {
48*edf647d1SNeil Armstrong        #address-cells = <2>;
49*edf647d1SNeil Armstrong        #size-cells = <0>;
50*edf647d1SNeil Armstrong        reg = <0x03210000 0x2000>;
51*edf647d1SNeil Armstrong        wcd938x_rx: codec@0,4 {
52*edf647d1SNeil Armstrong            compatible = "sdw20217010e00";
53*edf647d1SNeil Armstrong            reg = <0 4>;
54*edf647d1SNeil Armstrong            qcom,rx-port-mapping = <1 2 3 4 5 6>;
55*edf647d1SNeil Armstrong        };
56*edf647d1SNeil Armstrong    };
57*edf647d1SNeil Armstrong
58*edf647d1SNeil Armstrong    soundwire@3230000 {
59*edf647d1SNeil Armstrong        #address-cells = <2>;
60*edf647d1SNeil Armstrong        #size-cells = <0>;
61*edf647d1SNeil Armstrong        reg = <0x03230000 0x2000>;
62*edf647d1SNeil Armstrong        wcd938x_tx: codec@0,3 {
63*edf647d1SNeil Armstrong            compatible = "sdw20217010e00";
64*edf647d1SNeil Armstrong            reg = <0 3>;
65*edf647d1SNeil Armstrong            qcom,tx-port-mapping = <2 3 4 5>;
66*edf647d1SNeil Armstrong        };
67*edf647d1SNeil Armstrong    };
68*edf647d1SNeil Armstrong
69*edf647d1SNeil Armstrong...
70