Skip to content

Commit 22cac4f

Browse files
pdgendtkartben
authored andcommitted
boards: nxp: mimxrt1040_evk: Convert to Bluetooth M.2 shield
Use the shield nxp_m2_wifi_bt instead of defining on board nodes. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent f1c9799 commit 22cac4f

File tree

5 files changed

+29
-30
lines changed

5 files changed

+29
-30
lines changed

boards/nxp/mimxrt1040_evk/doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ steps:
293293
Bluetooth Module
294294
----------------
295295

296-
For Murate 2EL M.2 Mdoule, the following hardware rework needs to be applied,
296+
For the :ref:`nxp_m2_wifi_bt` shield, the following hardware rework needs to be applied,
297297
Solder 0 ohm resistors for R96, and R93.
298298
Remove resistors from R497, R498, R456 and R457.
299299

boards/nxp/mimxrt1040_evk/mimxrt1040_evk.dts

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
zephyr,flash-controller = &w25q64jvssiq;
3333
zephyr,code-partition = &slot0_partition;
3434
zephyr,uart-mcumgr = &lpuart1;
35-
zephyr,bt-hci = &bt_hci_uart;
3635
};
3736

3837
sdram0: memory@80000000 {
@@ -233,28 +232,6 @@ lpi2c3: &lpi2c3 {
233232
status = "okay";
234233
};
235234

236-
m2_hci_uart: &lpuart3 {
237-
pinctrl-0 = <&pinmux_lpuart3_flowcontrol>;
238-
pinctrl-1 = <&pinmux_lpuart3_sleep>;
239-
pinctrl-names = "default", "sleep";
240-
241-
bt_hci_uart: bt_hci_uart {
242-
compatible = "zephyr,bt-hci-uart";
235+
m2_hci_bt_uart: &lpuart3 {};
243236

244-
m2_bt_module {
245-
compatible = "nxp,bt-hci-uart";
246-
sdio-reset-gpios = <&gpio3 4 GPIO_ACTIVE_HIGH>;
247-
w-disable-gpios = <&gpio3 2 GPIO_ACTIVE_HIGH>;
248-
hci-operation-speed = <115200>;
249-
hw-flow-control;
250-
fw-download-primary-speed = <115200>;
251-
fw-download-secondary-speed = <3000000>;
252-
fw-download-secondary-flowcontrol;
253-
};
254-
};
255-
};
256-
257-
&m2_hci_uart {
258-
status = "okay";
259-
current-speed = <115200>;
260-
};
237+
m2_wifi_sdio: &usdhc1 {};
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright 2025 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&m2_hci_bt_uart {
8+
/delete-property/ pinctrl-0;
9+
/delete-property/ pinctrl-1;
10+
/delete-property/ pinctrl-2;
11+
/delete-property/ pinctrl-names;
12+
pinctrl-0 = <&pinmux_lpuart3_flowcontrol>;
13+
pinctrl-1 = <&pinmux_lpuart3_sleep>;
14+
pinctrl-names = "default", "sleep";
15+
16+
bt_hci_uart: bt_hci_uart {
17+
m2_bt_module: m2_bt_module {
18+
sdio-reset-gpios = <&gpio3 4 GPIO_ACTIVE_HIGH>;
19+
w-disable-gpios = <&gpio3 2 GPIO_ACTIVE_HIGH>;
20+
};
21+
};
22+
};
23+
24+
&m2_wifi_sdio {
25+
/* TODO: Unsupported; Fix pinctrl */
26+
};

samples/bluetooth/handsfree/boards/mimxrt1040_evk_mimxrt1042.conf

Lines changed: 0 additions & 2 deletions
This file was deleted.

samples/bluetooth/handsfree_ag/boards/mimxrt1040_evk_mimxrt1042.conf

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)