boards: Update Xiao_BLE Sense DTS for pdm microphone
Create regulator on GPIO for microphone supply Set pdm data and clk pins in pinctrl Add xiao_ble_sense overlay for dmic sample support Signed-off-by: Zak Portnoy <zakportnoy@gmail.com>
This commit is contained in:
parent
6f01329e9d
commit
5cbc16ac2c
|
@ -52,6 +52,21 @@
|
|||
};
|
||||
};
|
||||
|
||||
pdm0_default: pdm0_default {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(PDM_CLK, 1, 00)>,
|
||||
<NRF_PSEL(PDM_DIN, 0, 16)>;
|
||||
};
|
||||
};
|
||||
|
||||
pdm0_sleep: pdm0_sleep {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(PDM_CLK, 1, 00)>,
|
||||
<NRF_PSEL(PDM_DIN, 0, 16)>;
|
||||
low-power-enable;
|
||||
};
|
||||
};
|
||||
|
||||
pwm0_default: pwm0_default {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(PWM_OUT0, 0, 17)>;
|
||||
|
|
|
@ -13,6 +13,12 @@
|
|||
model = "Seeed XIAO BLE Sense";
|
||||
compatible = "seeed,xiao-ble", "seeed,xiao-ble-sense";
|
||||
|
||||
msm261d3526hicpm-c-en {
|
||||
compatible = "regulator-fixed";
|
||||
enable-gpios = <&gpio1 10 (NRF_GPIO_DRIVE_S0H1 | GPIO_ACTIVE_HIGH)>;
|
||||
regulator-name = "MSM261D3526HICPM-C-EN";
|
||||
};
|
||||
|
||||
lsm6ds3tr-c-en {
|
||||
compatible = "regulator-fixed-sync", "regulator-fixed";
|
||||
enable-gpios = <&gpio1 8 (NRF_GPIO_DRIVE_S0H1 | GPIO_ACTIVE_HIGH)>;
|
||||
|
@ -38,3 +44,10 @@
|
|||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
&pdm0 {
|
||||
pinctrl-0 = <&pdm0_default>;
|
||||
pinctrl-1 = <&pdm0_sleep>;
|
||||
pinctrl-names = "default", "sleep";
|
||||
clock-source = "PCLK32M";
|
||||
};
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
/*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
/ {
|
||||
msm261d3526hicpm-c-en {
|
||||
regulator-boot-on;
|
||||
};
|
||||
};
|
||||
|
||||
dmic_dev: &pdm0 {
|
||||
status = "okay";
|
||||
};
|
Loading…
Reference in a new issue