ASoC: mchp-i2s-mcc: Add support to select TDM pins
authorCodrin Ciubotariu <codrin.ciubotariu@microchip.com>
Mon, 1 Mar 2021 17:09:03 +0000 (19:09 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 10 Mar 2021 13:08:38 +0000 (13:08 +0000)
commitbfdca489751ff765ee606c85bda1680040dedd8e
treec54144b7818fbc9e714ee7c3550c3ba979bfc2f5
parent13c1629d758aae97f329d25714e26edde4e5cf3e
ASoC: mchp-i2s-mcc: Add support to select TDM pins

SAMA7G5's I2S-MCC has 4 pairs of DIN/DOUT pins. Since TDM only uses a
single pair of pins for synchronous capture and playback, the controller
needs to be told which of the pair is connected. This can be mentioned
using the "microchip,tdm-data-pair" property from DT. The property is
optional, useful only if TDM is used. If it's missing, DIN/DOUT 0 pins
will be used by default.

Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
Link: https://lore.kernel.org/r/20210301170905.835091-6-codrin.ciubotariu@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/atmel/mchp-i2s-mcc.c