xref: /freebsd/sys/contrib/device-tree/Bindings/sound/qcom,wcd938x-sdw.yaml (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
15956d97fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25956d97fSEmmanuel Vadot%YAML 1.2
35956d97fSEmmanuel Vadot---
45956d97fSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/qcom,wcd938x-sdw.yaml#
55956d97fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65956d97fSEmmanuel Vadot
7*8bab661aSEmmanuel Vadottitle: Qualcomm SoundWire Slave devices on WCD9380/WCD9385
85956d97fSEmmanuel Vadot
95956d97fSEmmanuel Vadotmaintainers:
105956d97fSEmmanuel Vadot  - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
115956d97fSEmmanuel Vadot
125956d97fSEmmanuel Vadotdescription: |
135956d97fSEmmanuel Vadot  Qualcomm WCD9380/WCD9385 Codec is a standalone Hi-Fi audio codec IC.
145956d97fSEmmanuel Vadot  It has RX and TX Soundwire slave devices. This bindings is for the
155956d97fSEmmanuel Vadot  slave devices.
165956d97fSEmmanuel Vadot
175956d97fSEmmanuel Vadotproperties:
185956d97fSEmmanuel Vadot  compatible:
195956d97fSEmmanuel Vadot    const: sdw20217010d00
205956d97fSEmmanuel Vadot
215956d97fSEmmanuel Vadot  reg:
225956d97fSEmmanuel Vadot    maxItems: 1
235956d97fSEmmanuel Vadot
245956d97fSEmmanuel Vadot  qcom,tx-port-mapping:
255956d97fSEmmanuel Vadot    description: |
265956d97fSEmmanuel Vadot      Specifies static port mapping between slave and master tx ports.
275956d97fSEmmanuel Vadot      In the order of slave port index.
285956d97fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32-array
295956d97fSEmmanuel Vadot    minItems: 4
305956d97fSEmmanuel Vadot    maxItems: 4
315956d97fSEmmanuel Vadot
325956d97fSEmmanuel Vadot  qcom,rx-port-mapping:
335956d97fSEmmanuel Vadot    description: |
345956d97fSEmmanuel Vadot      Specifies static port mapping between slave and master rx ports.
355956d97fSEmmanuel Vadot      In the order of slave port index.
365956d97fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32-array
375956d97fSEmmanuel Vadot    minItems: 5
385956d97fSEmmanuel Vadot    maxItems: 5
395956d97fSEmmanuel Vadot
405956d97fSEmmanuel Vadotrequired:
415956d97fSEmmanuel Vadot  - compatible
425956d97fSEmmanuel Vadot  - reg
435956d97fSEmmanuel Vadot
445956d97fSEmmanuel VadotadditionalProperties: false
455956d97fSEmmanuel Vadot
465956d97fSEmmanuel Vadotexamples:
475956d97fSEmmanuel Vadot  - |
485956d97fSEmmanuel Vadot    soundwire@3210000 {
495956d97fSEmmanuel Vadot        #address-cells = <2>;
505956d97fSEmmanuel Vadot        #size-cells = <0>;
515956d97fSEmmanuel Vadot        reg = <0x03210000 0x2000>;
525956d97fSEmmanuel Vadot        wcd938x_rx: codec@0,4 {
535956d97fSEmmanuel Vadot            compatible = "sdw20217010d00";
545956d97fSEmmanuel Vadot            reg = <0 4>;
555956d97fSEmmanuel Vadot            qcom,rx-port-mapping = <1 2 3 4 5>;
565956d97fSEmmanuel Vadot        };
575956d97fSEmmanuel Vadot    };
585956d97fSEmmanuel Vadot
595956d97fSEmmanuel Vadot    soundwire@3230000 {
605956d97fSEmmanuel Vadot        #address-cells = <2>;
615956d97fSEmmanuel Vadot        #size-cells = <0>;
625956d97fSEmmanuel Vadot        reg = <0x03230000 0x2000>;
635956d97fSEmmanuel Vadot        wcd938x_tx: codec@0,3 {
645956d97fSEmmanuel Vadot            compatible = "sdw20217010d00";
655956d97fSEmmanuel Vadot            reg = <0 3>;
665956d97fSEmmanuel Vadot            qcom,tx-port-mapping = <2 3 4 5>;
675956d97fSEmmanuel Vadot        };
685956d97fSEmmanuel Vadot    };
695956d97fSEmmanuel Vadot
705956d97fSEmmanuel Vadot...
71