1 Qualcomm SoundWire Controller Bindings
4 This binding describes the Qualcomm SoundWire Controller along with its
5 board specific bus parameters.
9 Value type: <stringlist>
10 Definition: must be "qcom,soundwire-v<MAJOR>.<MINOR>.<STEP>",
12 "qcom,soundwire-v1.3.0"
13 "qcom,soundwire-v1.5.0"
14 "qcom,soundwire-v1.5.1"
15 "qcom,soundwire-v1.6.0"
16 "qcom,soundwire-v1.7.0"
19 Value type: <prop-encoded-array>
20 Definition: the base address and size of SoundWire controller
25 Value type: <prop-encoded-array>
26 Definition: should specify the SoundWire Controller core and optional
32 Value type: <stringlist>
33 Definition: should be "core" for core and "wakeup" for wake interrupt.
38 Definition: should specify if SoundWire Controller is wake up capable.
42 Value type: <stringlist>
43 Definition: should be "iface" for SoundWire Controller interface clock
47 Value type: <prop-encoded-array>
48 Definition: should specify the SoundWire Controller interface clock
53 Definition: must be 1 for digital audio interfaces on the controller.
58 Definition: must be count of data out ports
63 Definition: must be count of data in ports
67 Value type: <prop-encoded-array>
68 Definition: should specify payload transport window offset1 of each
69 data port. Out ports followed by In ports.
70 Value of 0xFF indicates that this option is not implemented
71 or applicable for the respective data port.
72 More info in MIPI Alliance SoundWire 1.0 Specifications.
76 Value type: <prop-encoded-array>
77 Definition: should specify payload transport window offset2 of each
78 data port. Out ports followed by In ports.
79 Value of 0xFF indicates that this option is not implemented
80 or applicable for the respective data port.
81 More info in MIPI Alliance SoundWire 1.0 Specifications.
83 - qcom,ports-sinterval-low:
85 Value type: <prop-encoded-array>
86 Definition: should be sample interval low of each data port.
87 Out ports followed by In ports. Used for Sample Interval
89 Value of 0xFF indicates that this option is not implemented
90 or applicable for the respective data port.
91 More info in MIPI Alliance SoundWire 1.0 Specifications.
93 - qcom,ports-word-length:
95 Value type: <prop-encoded-array>
96 Definition: should be size of payload channel sample.
97 Value of 0xFF indicates that this option is not implemented
98 or applicable for the respective data port.
99 More info in MIPI Alliance SoundWire 1.0 Specifications.
101 - qcom,ports-block-pack-mode:
103 Value type: <prop-encoded-array>
104 Definition: should be 0 or 1 to indicate the block packing mode.
105 0 to indicate Blocks are per Channel
106 1 to indicate Blocks are per Port.
107 Out ports followed by In ports.
108 Value of 0xFF indicates that this option is not implemented
109 or applicable for the respective data port.
110 More info in MIPI Alliance SoundWire 1.0 Specifications.
112 - qcom,ports-block-group-count:
114 Value type: <prop-encoded-array>
115 Definition: should be in range 1 to 4 to indicate how many sample
116 intervals are combined into a payload.
117 Out ports followed by In ports.
118 Value of 0xFF indicates that this option is not implemented
119 or applicable for the respective data port.
120 More info in MIPI Alliance SoundWire 1.0 Specifications.
122 - qcom,ports-lane-control:
124 Value type: <prop-encoded-array>
125 Definition: should be in range 0 to 7 to identify which data lane
127 Out ports followed by In ports.
128 Value of 0xFF indicates that this option is not implemented
129 or applicable for the respective data port.
130 More info in MIPI Alliance SoundWire 1.0 Specifications.
134 Value type: <prop-encoded-array>
135 Definition: should be number identifying lowerst numbered coloum in
136 SoundWire Frame, i.e. left edge of the Transport sub-frame
137 for each port. Values between 0 and 15 are valid.
138 Out ports followed by In ports.
139 Value of 0xFF indicates that this option is not implemented
140 or applicable for the respective data port.
141 More info in MIPI Alliance SoundWire 1.0 Specifications.
145 Value type: <prop-encoded-array>
146 Definition: should be number identifying highest numbered coloum in
147 SoundWire Frame, i.e. the right edge of the Transport
148 sub-frame for each port. Values between 0 and 15 are valid.
149 Out ports followed by In ports.
150 Value of 0xFF indicates that this option is not implemented
151 or applicable for the respective data port.
152 More info in MIPI Alliance SoundWire 1.0 Specifications.
156 Value type: <prop-encoded-array>
157 Definition: should be one of the following types
161 Out ports followed by In ports.
162 Value of 0xFF indicates that this option is not implemented
163 or applicable for the respective data port.
164 More info in MIPI Alliance SoundWire 1.0 Specifications.
168 Value type: <prop-encoded-array>
169 Definition: Should specify the SoundWire audio CSR reset controller interface,
170 which is required for SoundWire version 1.6.0 and above.
174 Value type: <stringlist>
175 Definition: should be "swr_audio_cgcr" for SoundWire audio CSR reset
176 controller interface.
179 More Information on detail of encoding of these fields can be
180 found in MIPI Alliance SoundWire 1.0 Specifications.
183 Each subnode of the bus represents SoundWire device attached to it.
184 The properties of these nodes are defined by the individual bindings.
187 The following example represents a SoundWire controller on DB845c board
188 which has controller integrated inside WCD934x codec on SDM845 SoC.
190 soundwire: soundwire@c85 {
191 compatible = "qcom,soundwire-v1.3.0";
193 interrupts = <20 IRQ_TYPE_EDGE_RISING>;
195 clock-names = "iface";
196 resets = <&lpass_audiocc LPASS_AUDIO_SWR_TX_CGCR>;
197 reset-names = "swr_audio_cgcr";
198 #sound-dai-cells = <1>;
199 qcom,dports-type = <0>;
200 qcom,dout-ports = <6>;
201 qcom,din-ports = <2>;
202 qcom,ports-sinterval-low = /bits/ 8 <0x07 0x1F 0x3F 0x7 0x1F 0x3F 0x0F 0x0F>;
203 qcom,ports-offset1 = /bits/ 8 <0x01 0x02 0x0C 0x6 0x12 0x0D 0x07 0x0A >;
204 qcom,ports-offset2 = /bits/ 8 <0x00 0x00 0x1F 0x00 0x00 0x1F 0x00 0x00>;