Commit d5eb3285 authored by Daniel DeGrasse's avatar Daniel DeGrasse Committed by Fabio Baltieri
Browse files

boards: nxp: rd_rw612_bga: enable DMIC



Enable DMIC on RW612 BGA board. The DMIC is enabled for both onboard
MEMS microphones for this board, and the board is enabled with the DMIC
sample and test

Signed-off-by: default avatarDaniel DeGrasse <daniel.degrasse@nxp.com>
parent 5e241970
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -49,6 +49,8 @@ Supported Features
+-----------+------------+-----------------------------------+
| TRNG      | on-chip    | entropy                           |
+-----------+------------+-----------------------------------+
| DMIC      | on-chip    | dmic                              |
+-----------+------------+-----------------------------------+
| WWDT      | on-chip    | watchdog                          |
+-----------+------------+-----------------------------------+
| CTIMER    | on-chip    | counter                           |
+10 −0
Original line number Diff line number Diff line
@@ -32,6 +32,16 @@
		};
	};

	pinmux_dmic0: pinmux_dmic0 {
		group0 {
			pinmux = <IO_MUX_PDM_IO51
				IO_MUX_PDM_IO52
				IO_MUX_PDM_IO53
				IO_MUX_PDM_IO54>;
			slew-rate = "fast";
		};
	};

	pinmux_flexspi: pinmux_flexspi {
		group0 {
			pinmux = <IO_MUX_QUAD_SPI_FLASH_IO28
+42 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@
		sw0 = &sw_4;
		i2c-0 = &flexcomm2;
		watchdog0 = &wwdt;
		dmic-dev = &dmic0;
	};

	chosen {
@@ -125,6 +126,47 @@ arduino_i2c: &flexcomm2 {
	};
};

&dmic0 {
	pinctrl-0 = <&pinmux_dmic0>;
	pinctrl-names = "default";
	use2fs;
	status = "okay";
};

/* Configure pdm channels 0-3 with gain, and cutoff settings
 * appropriate for the attached MEMS microphones.
 * Note that PDMC0/PDMC1 and PDMC2/PDMC3 are each connected to the same
 * microphone. For best results, read from PDM HW channel 0 as left channel,
 * and PDM HW channel 1 as right channel.
 */
&pdmc0 {
	status = "okay";
	gainshift = <3>;
	dc-cutoff = "155hz";
	dc-gain = <1>;
};

&pdmc1 {
	status = "okay";
	gainshift = <3>;
	dc-cutoff = "155hz";
	dc-gain = <1>;
};

&pdmc2 {
	status = "okay";
	gainshift = <3>;
	dc-cutoff = "155hz";
	dc-gain = <1>;
};

&pdmc3 {
	status = "okay";
	gainshift = <3>;
	dc-cutoff = "155hz";
	dc-gain = <1>;
};

&dma0 {
	status = "okay";
};
+1 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@ ram: 960
flash: 65536
supported:
  - dma
  - dmic
  - gpio
  - spi
  - i2c
+3 −0
Original line number Diff line number Diff line
dmic_dev: &dmic0 {
        status = "okay";
};
Loading