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