2021-03-01 09:27 AM
Hello everyone,
I am currently working with phyCORE-STM32MP1 which has a STM32MP157C mounted.
It runs with OpenSTLinux, but it is a modified distribution by Phytec.
I have very little experience with handling Device Tree and drivers and my problem is that I am trying to connect an STEVAL-STWINMAV1 to the I2S pins of the STM32MP157C, including the I2C port to control it, but I am having serious problems with being able to make it work with the modifications that I do in the "Device Tree".
By default in this I2S port comes the configuration to connect a TLV320AIC3007 from Texas Instruments, I am commenting on the code that configures it and trying to get it to take the ADAU1978 drivers, which I think are compiled in the OpenSTLinux image.
I attach the portion of code that I am editing in the ".dtsi" file and just to corroborate the portion of code in which Phytec configures the pins in their respective ".dtsi" file
The pinout configuration,
I hope someone can guide me to the solution because it is really giving me big headaches.
Thank you for all your help and support.
Kind regards.
Juan Tántera.
2021-03-08 08:33 AM
Hi,
Optimized way might be to use digital MEMS microphones which directly connect to DFSDM (see example on STM32MP157F-EV1), this will save the external ADC.
Anyway, regarding you issue, for I2S and Audio, you may find some information in :
https://wiki.st.com/stm32mpu/wiki/I2S_device_tree_configuration
https://wiki.st.com/stm32mpu/wiki/Soundcard_configuration
https://wiki.st.com/stm32mpu/wiki/ALSA_overview
You could also request support to Phytec.
Regards.
2021-03-19 06:07 AM
Hi @PatrickF,
thank you for your help.
We are working with the STEVAL-STWINMAV1because our application envirorment is, electrically speaking, really noise, and the distance between the mic and the STM32MP1 isn't "short", so the DFSDM interface isn't an option.
About the wiki links I already readed and fixed a lot my code, but the ALSA framework still doesn't recognize the mic.
Here is the new code,
Sound
I2C
SAI
Do you see something wrong?
Regards,