Skip to content

Commit 6ed91f5

Browse files
committed
Add PDM/DSD/dataline configuration support
Merge series from Shengjiu Wang <[email protected]>: Support PDM format and DSD format. Add new dts property to configure dataline. The SAI has multiple successive FIFO registers, but in some use case the required dataline/FIFOs are not successive.
2 parents 1e0ec03 + e3f4e5b commit 6ed91f5

File tree

3 files changed

+272
-22
lines changed

3 files changed

+272
-22
lines changed

Documentation/devicetree/bindings/sound/fsl-sai.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ Required properties:
4949
receive data by following their own bit clocks and
5050
frame sync clocks separately.
5151

52+
- fsl,dataline : configure the dataline. it has 3 value for each configuration
53+
first one means the type: I2S(1) or PDM(2)
54+
second one is dataline mask for 'rx'
55+
third one is dataline mask for 'tx'.
56+
for example: fsl,dataline = <1 0xff 0xff 2 0xff 0x11>;
57+
it means I2S type rx mask is 0xff, tx mask is 0xff, PDM type
58+
rx mask is 0xff, tx mask is 0x11 (dataline 1 and 4 enabled).
59+
5260
Optional properties:
5361

5462
- big-endian : Boolean property, required if all the SAI

0 commit comments

Comments
 (0)