Skip to content

Commit

Permalink
Add PDM/DSD/dataline configuration support
Browse files Browse the repository at this point in the history
Merge series from Shengjiu Wang <shengjiu.wang@nxp.com>:

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.
  • Loading branch information
Mark Brown committed Jun 28, 2022
2 parents 1e0ec03 + e3f4e5b commit 6ed91f5
Show file tree
Hide file tree
Showing 3 changed files with 272 additions and 22 deletions.
8 changes: 8 additions & 0 deletions Documentation/devicetree/bindings/sound/fsl-sai.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ Required properties:
receive data by following their own bit clocks and
frame sync clocks separately.

- fsl,dataline : configure the dataline. it has 3 value for each configuration
first one means the type: I2S(1) or PDM(2)
second one is dataline mask for 'rx'
third one is dataline mask for 'tx'.
for example: fsl,dataline = <1 0xff 0xff 2 0xff 0x11>;
it means I2S type rx mask is 0xff, tx mask is 0xff, PDM type
rx mask is 0xff, tx mask is 0x11 (dataline 1 and 4 enabled).

Optional properties:

- big-endian : Boolean property, required if all the SAI
Expand Down
Loading

0 comments on commit 6ed91f5

Please sign in to comment.