I've implemented a PDM microphone driver using the nrfx_pdm.c module directly, NOT the zephyr dmic module. We are in the early stages of development, so we are still supporting the nrf7002-dk development kit in addition to the first custom prototype. The PDM pins on the dev kit are different from the prototype, and I'd like to be able to use the device tree for the PDM configuration of pins to have a different build for each of the boards. We have the build already setup, so it's a matter of properly setting up and using the overlay contents to configure and initialize PDM.
&pinctrl { pdm0_default_alt: pdm0_default_alt { group1 { psels = <NRF_PSEL(PDM_CLK, 0, 25)>, <NRF_PSEL(PDM_DIN, 0, 26)>; }; }; }; // Additional settings for the PDM device mic_dev: &pdm0 { status = "okay"; pinctrl-0 = <&pdm0_default_alt>; pinctrl-names = "default"; clock-source = "ACLK"; };
Thanks,
KE