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>
This commit is contained in:
parent
31e48a8b3a
commit
2c43a00f65
8 changed files with 39 additions and 9 deletions
|
@ -4,4 +4,4 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_SPARKFUN_THING_PLUS_MATTER_MGM240P
|
||||
select SOC_PART_NUMBER_EFR32MG24B020F1536IM40
|
||||
select SOC_PART_NUMBER_MGM240PB32VNA
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
board_runner_args(jlink "--device=EFR32MG24BxxxF1536")
|
||||
board_runner_args(jlink "--device=MGM240PB32VNA")
|
||||
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
|
||||
|
|
|
@ -3,4 +3,4 @@ board:
|
|||
full_name: Thing Plus Matter
|
||||
vendor: sparkfun
|
||||
socs:
|
||||
- name: efr32mg24b020f1536im40
|
||||
- name: mgm240pb32vna
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
/dts-v1/;
|
||||
#include <silabs/xg24/efr32mg24b020f1536im40.dtsi>
|
||||
#include <silabs/xg24/mgm240pb32vna.dtsi>
|
||||
#include "sparkfun_thing_plus_matter_mgm240p-pinctrl.dtsi"
|
||||
#include <zephyr/dt-bindings/input/input-event-codes.h>
|
||||
#include <zephyr/dt-bindings/regulator/silabs_dcdc.h>
|
||||
|
|
|
@ -7,8 +7,3 @@ CONFIG_CONSOLE=y
|
|||
CONFIG_UART_CONSOLE=y
|
||||
CONFIG_SERIAL=y
|
||||
CONFIG_GPIO=y
|
||||
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=76800000
|
||||
CONFIG_SOC_GECKO_EMU_DCDC=y
|
||||
CONFIG_SOC_GECKO_EMU_DCDC_MODE_ON=y
|
||||
CONFIG_HW_STACK_PROTECTION=y
|
||||
CONFIG_REGULATOR=y
|
||||
|
|
28
dts/arm/silabs/xg24/mgm240pb32vna.dtsi
Normal file
28
dts/arm/silabs/xg24/mgm240pb32vna.dtsi
Normal file
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* Copyright (c) 2023 Fr. Sauter AG
|
||||
* Copyright (c) 2025 Silicon Laboratories Inc.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <mem.h>
|
||||
#include <silabs/xg24/efr32mg24.dtsi>
|
||||
|
||||
/ {
|
||||
sram0: memory@20000000 {
|
||||
reg = <0x20000000 DT_SIZE_K(256)>;
|
||||
};
|
||||
|
||||
soc {
|
||||
compatible = "silabs,mgm240pb32vna", "silabs,efr32mg24", "silabs,xg24",
|
||||
"silabs,efr32", "simple-bus";
|
||||
};
|
||||
};
|
||||
|
||||
&flash0 {
|
||||
reg = <0x08000000 DT_SIZE_K(1536)>;
|
||||
};
|
||||
|
||||
&radio {
|
||||
pa-voltage-mv = <3300>;
|
||||
};
|
|
@ -41,6 +41,10 @@ config SOC_PART_NUMBER_MGM240SD22VNA
|
|||
bool
|
||||
select SOC_SERIES_MGM24
|
||||
|
||||
config SOC_PART_NUMBER_MGM240PB32VNA
|
||||
bool
|
||||
select SOC_SERIES_MGM24
|
||||
|
||||
config SOC_SERIES
|
||||
default "efr32mg24" if SOC_SERIES_EFR32MG24
|
||||
default "mgm24" if SOC_SERIES_MGM24
|
||||
|
@ -51,6 +55,7 @@ config SOC
|
|||
default "efr32mg24b210f1536im48" if SOC_PART_NUMBER_EFR32MG24B210F1536IM48
|
||||
default "efr32mg24b020f1536im40" if SOC_PART_NUMBER_EFR32MG24B020F1536IM40
|
||||
default "mgm240sd22vna" if SOC_PART_NUMBER_MGM240SD22VNA
|
||||
default "mgm240pb32vna" if SOC_PART_NUMBER_MGM240PB32VNA
|
||||
|
||||
config SOC_PART_NUMBER
|
||||
default "EFR32MG24B220F1536IM48" if SOC_PART_NUMBER_EFR32MG24B220F1536IM48
|
||||
|
@ -58,3 +63,4 @@ config SOC_PART_NUMBER
|
|||
default "EFR32MG24B210F1536IM48" if SOC_PART_NUMBER_EFR32MG24B210F1536IM48
|
||||
default "EFR32MG24B020F1536IM40" if SOC_PART_NUMBER_EFR32MG24B020F1536IM40
|
||||
default "MGM240SD22VNA" if SOC_PART_NUMBER_MGM240SD22VNA
|
||||
default "MGM240PB32VNA" if SOC_PART_NUMBER_MGM240PB32VNA
|
||||
|
|
|
@ -56,6 +56,7 @@ family:
|
|||
- name: mgm24
|
||||
socs:
|
||||
- name: mgm240sd22vna
|
||||
- name: mgm240pb32vna
|
||||
- name: efr32bg27
|
||||
socs:
|
||||
- name: efr32bg27c140f768im40
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue