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