cancel
Showing results for 
Search instead for 
Did you mean: 

[STM32MP1] Device tree configuration for I2S peripheral.

JTánt.1
Associate II

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

0693W000007ZnW9QAK.png0693W000007ZnWEQA0.pngThe pinout configuration,

0693W000007ZnWTQA0.png 

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.

2 REPLIES 2
PatrickF
ST Employee

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.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
JTánt.1
Associate II

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

0693W000008xOT2QAM.pngI2C

0693W000008xOTCQA2.pngSAI

0693W000008xOTMQA2.pngDo you see something wrong?

Regards,