arm64: dts: ti: j721e-common-proc-board: Analog audio support
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 3 Jul 2020 07:44:43 +0000 (10:44 +0300)
committerTero Kristo <t-kristo@ti.com>
Fri, 17 Jul 2020 07:20:47 +0000 (10:20 +0300)
commited3aad5b8268ca335d3cf0998c37523ba05bc670
treefc4b65f5356d93a374c62bf000ca8b0a9c270086
parentebf5eccc3c0ad389ba4c4b7c86e900caab2338db
arm64: dts: ti: j721e-common-proc-board: Analog audio support

The codec is wired in multi DIN/DOUT setup (DIN1/2/3/4/DOUT1/2/3 is
connected to McASP serializer).

To support wide range of audio features a generic sound card can not be
used since we need to use different reference clock source for 44.1 and
48 KHz family of sampling rates.
Depending on the sample size we also need to use different slot width to
be able to support 16 and 24 bits.

There are couple of notable difference compared to DIN1/DOUT1 mode:
the channel mapping is 'random' for first look compared to the single
serializer setup:
        _      _      _
       |o|c1  |o|p1  |o|p3
 _     | |    | |    | |
|o|c3  |o|c2  |o|p4  |o|p2
------------------------

c1/2/3 - capture jacks (3rd is line)
p1/2/3/4 - playback jacks (4th is line)

2 channel audio (stereo):
0 (left):  p1/c1 left
1 (right): p1/c1 right

4 channel audio:
0: p1/c1 left
1: p2/c2 left
2: p1/c1 right
3: p2/c2 right

6 channel audio
0: p1/c1 left
1: p2/c2 left
2: p3/c3 left
3: p1/c1 right
4: p2/c2 right
5: p3/c3 right

8 channel audio
0: p1/c1 left
1: p2/c2 left
2: p3/c3 left
3: p4 left
4: p1/c1 right
5: p2/c2 right
6: p3/c3 right
7: p4 right

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts