drivers: audio: dmic: Add support for nRF PDM peripherals

Add a shim that allows using the nrfx PDM driver via the Zephyr API.
Add also missing devicetree nodes representing the PDM peripherals
in the nRF52 Series SoCs.
Extend the "nordic,nrf-pdm" binding with a new property that allows
specifying the clock source to be used by the PDM peripheral (so that
it is possible to use HFXO for better accuracy of the peripheral clock
or, in the nRF53 Series SoCs, to use the dedicated audio oscillator).

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
Andrzej Głąbek 2021-08-19 17:11:46 +02:00 committed by Anas Nashif
commit 1bf7c391b8
11 changed files with 658 additions and 0 deletions

View file

@ -226,6 +226,14 @@
#pwm-cells = <1>;
};
pdm0: pdm@4001d000 {
compatible = "nordic,nrf-pdm";
reg = <0x4001d000 0x1000>;
interrupts = <29 NRF_DEFAULT_IRQ_PRIORITY>;
status = "disabled";
label = "PDM_0";
};
flash_controller: flash-controller@4001e000 {
compatible = "nordic,nrf52-flash-controller";
reg = <0x4001e000 0x1000>;