we try to connect a pdm digital microphone the the apalis imx8 connected to the Pins 200 (Clock) and 202 (DAP1_D_IN).
Is that possible?
How can we adjust a device tree overlay to connect that correctly?
Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Yes, it is possible to connect a PDM digital microphone to the Apalis iMX8 and configure it using a device tree overlay. Below are the steps to create a device tree overlay to connect the PDM microphone to the specified pins (200 for Clock and 202 for DAP1_D_IN).
Steps to Create a Device Tree Overlay
Create the Device Tree Overlay Source File:
Create a new file, for example, pdm-mic-overlay.dts.
Define the Overlay Header:
The header should include the /plugin/; directive and the target compatible device.
Sync and Reboot:
Ensure the changes are written to the file system and reboot the board.
sync
reboot
Summary
By following these steps, you should be able to connect and configure a PDM digital microphone to the Apalis iMX8 using a device tree overlay. This configuration assumes that the PDM microphone is compatible and that the necessary drivers are available in the kernel. If additional configuration or driver support is needed, you may need to adjust the overlay or kernel configuration accordingly.
Please, also check if these links can help you solve your problem:
Before answering your question, I would like to recommend that you use a newer version of the Toradex BSP as a base.
BSP 6.1.0 is the first version of BSP 6 with support for the Apalis iMX8, therefore it still contains a few problems that were fixed in subsequent releases.
You can view more details about what was fixed in the issue tracker: Toradex System/Computer on Modules - Linux BSP Release
Edit:
Unfortunately, the Apalis iMX8 does not support PDM microphones.
To use such a microphone with it, an external codec with support for PDM microphones would be needed.
Some other modules, such as the Verdin iMX8M Plus do support PDM microphones, but none that are pin-compatible with the Apalis iMX8.
We intend to use the Infineon IM72D128 as PDM microphone.
I will try use your recommendations and will set up the device tree overlay for that microphone.