Here is a list of resources that can be used as references when trying to use an audio codec with ALSA and the OSD32MP1.
Look at how DK2 board configures its audio codec in linux/stm32mp15xx-dkx.dtsi at v5.4-stm32mp · STMicroelectronics/linux at line 229 and line 69.
The schematic is provided here: https://www.st.com/content/ccc/resource/technical/layouts_and_diagrams/schematic_pack/group0/36/8e/ea/7a/ca/ca/4b/e4/mb1272-dk2-c01_schematic/files/MB1272-DK2-C01_Schematic.pdf/jcr:content/translations/en.MB1272-DK2-C01_Schematic.pdf
Additional resources for sound configuration from ST: - Soundcard configuration: Soundcard configuration - stm32mpu
- ALSA overview: ALSA overview - stm32mpu