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