]> asedeno.scripts.mit.edu Git - linux.git/commit
ARM: dts: stm32: add audio codec support on stm32mp157a-dk1 board
authorOlivier Moysan <olivier.moysan@st.com>
Fri, 5 Jul 2019 11:53:00 +0000 (13:53 +0200)
committerAlexandre Torgue <alexandre.torgue@st.com>
Fri, 2 Aug 2019 14:17:43 +0000 (16:17 +0200)
commit08b9092ff3b6ef4c53fba46f5844c054f25c2c15
treee19bab23a180a76c4d693458b08164a444deb11a
parent92edf0a2851d44d0f456a4f177736bd45f059c26
ARM: dts: stm32: add audio codec support on stm32mp157a-dk1 board

Add support of Cirrus cs42l51 audio codec on stm32mp157a-dk1 board.
Configuration overview:
- SAI2A is the CPU interface used for the codec audio playback
- SAI2B is the CPU interface used for the codec audio record
- SAI2A is configured as a clock provider for the audio codec
- SAI2A&B are configured as slave of the audio codec
- SAI2A&B share the same interface of the audio codec

Note:
In master mode, cs42l51 audio codec provides a bitclock
at 64 x FS, regardless of data width. This means that
slot width is always 32 bits.
Set slot width to 32 bits and slot number to 2
in SAI2A&B endpoint nodes, to match this constraint.
dai-tdm-slot-num and dai-tdm-slot-width properties are used here,
assuming that i2s is a special case of tdm, where slot number is 2.

Signed-off-by: Olivier Moysan <olivier.moysan@st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
arch/arm/boot/dts/stm32mp157a-dk1.dts