Skip to content

Commit 2c43a00

Browse files
silabs-bozontkartben
authored andcommitted
boards: fix Bluetooth LE support on the SparkFun ThingPlus Matter MGM240
Create and select the proper module device tree file which loads the correct radio config for the MGM240P module. Signed-off-by: Tamas Jozsi <tamas.jozsi@silabs.com>
1 parent 31e48a8 commit 2c43a00

File tree

8 files changed

+39
-9
lines changed

8 files changed

+39
-9
lines changed

boards/sparkfun/thing_plus_matter_mgm240p/Kconfig.sparkfun_thing_plus_matter_mgm240p

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# SPDX-License-Identifier: Apache-2.0
55

66
config BOARD_SPARKFUN_THING_PLUS_MATTER_MGM240P
7-
select SOC_PART_NUMBER_EFR32MG24B020F1536IM40
7+
select SOC_PART_NUMBER_MGM240PB32VNA

boards/sparkfun/thing_plus_matter_mgm240p/board.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# SPDX-License-Identifier: Apache-2.0
44
#
55

6-
board_runner_args(jlink "--device=EFR32MG24BxxxF1536")
6+
board_runner_args(jlink "--device=MGM240PB32VNA")
77
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)

boards/sparkfun/thing_plus_matter_mgm240p/board.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ board:
33
full_name: Thing Plus Matter
44
vendor: sparkfun
55
socs:
6-
- name: efr32mg24b020f1536im40
6+
- name: mgm240pb32vna

boards/sparkfun/thing_plus_matter_mgm240p/sparkfun_thing_plus_matter_mgm240p.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
/dts-v1/;
9-
#include <silabs/xg24/efr32mg24b020f1536im40.dtsi>
9+
#include <silabs/xg24/mgm240pb32vna.dtsi>
1010
#include "sparkfun_thing_plus_matter_mgm240p-pinctrl.dtsi"
1111
#include <zephyr/dt-bindings/input/input-event-codes.h>
1212
#include <zephyr/dt-bindings/regulator/silabs_dcdc.h>

boards/sparkfun/thing_plus_matter_mgm240p/sparkfun_thing_plus_matter_mgm240p_defconfig

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,3 @@ CONFIG_CONSOLE=y
77
CONFIG_UART_CONSOLE=y
88
CONFIG_SERIAL=y
99
CONFIG_GPIO=y
10-
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=76800000
11-
CONFIG_SOC_GECKO_EMU_DCDC=y
12-
CONFIG_SOC_GECKO_EMU_DCDC_MODE_ON=y
13-
CONFIG_HW_STACK_PROTECTION=y
14-
CONFIG_REGULATOR=y
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright (c) 2023 Fr. Sauter AG
3+
* Copyright (c) 2025 Silicon Laboratories Inc.
4+
*
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
8+
#include <mem.h>
9+
#include <silabs/xg24/efr32mg24.dtsi>
10+
11+
/ {
12+
sram0: memory@20000000 {
13+
reg = <0x20000000 DT_SIZE_K(256)>;
14+
};
15+
16+
soc {
17+
compatible = "silabs,mgm240pb32vna", "silabs,efr32mg24", "silabs,xg24",
18+
"silabs,efr32", "simple-bus";
19+
};
20+
};
21+
22+
&flash0 {
23+
reg = <0x08000000 DT_SIZE_K(1536)>;
24+
};
25+
26+
&radio {
27+
pa-voltage-mv = <3300>;
28+
};

soc/silabs/silabs_s2/xg24/Kconfig.soc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ config SOC_PART_NUMBER_MGM240SD22VNA
4141
bool
4242
select SOC_SERIES_MGM24
4343

44+
config SOC_PART_NUMBER_MGM240PB32VNA
45+
bool
46+
select SOC_SERIES_MGM24
47+
4448
config SOC_SERIES
4549
default "efr32mg24" if SOC_SERIES_EFR32MG24
4650
default "mgm24" if SOC_SERIES_MGM24
@@ -51,10 +55,12 @@ config SOC
5155
default "efr32mg24b210f1536im48" if SOC_PART_NUMBER_EFR32MG24B210F1536IM48
5256
default "efr32mg24b020f1536im40" if SOC_PART_NUMBER_EFR32MG24B020F1536IM40
5357
default "mgm240sd22vna" if SOC_PART_NUMBER_MGM240SD22VNA
58+
default "mgm240pb32vna" if SOC_PART_NUMBER_MGM240PB32VNA
5459

5560
config SOC_PART_NUMBER
5661
default "EFR32MG24B220F1536IM48" if SOC_PART_NUMBER_EFR32MG24B220F1536IM48
5762
default "EFR32MG24B310F1536IM48" if SOC_PART_NUMBER_EFR32MG24B310F1536IM48
5863
default "EFR32MG24B210F1536IM48" if SOC_PART_NUMBER_EFR32MG24B210F1536IM48
5964
default "EFR32MG24B020F1536IM40" if SOC_PART_NUMBER_EFR32MG24B020F1536IM40
6065
default "MGM240SD22VNA" if SOC_PART_NUMBER_MGM240SD22VNA
66+
default "MGM240PB32VNA" if SOC_PART_NUMBER_MGM240PB32VNA

soc/silabs/soc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ family:
5656
- name: mgm24
5757
socs:
5858
- name: mgm240sd22vna
59+
- name: mgm240pb32vna
5960
- name: efr32bg27
6061
socs:
6162
- name: efr32bg27c140f768im40

0 commit comments

Comments
 (0)