Skip to content

Commit cfa5162

Browse files
committed
boards: arm: efr32_radio: Convert to v2
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
1 parent 8fb1ede commit cfa5162

File tree

51 files changed

+102
-162
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+102
-162
lines changed

boards/boards_legacy/arm/efr32_radio/Kconfig

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

boards/boards_legacy/arm/efr32_radio/Kconfig.board

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

boards/boards_legacy/arm/efr32_radio/board.cmake

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

boards/boards_legacy/arm/efr32_radio/efr32_radio_brd4255a_defconfig

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

boards/boards_legacy/arm/efr32_radio/Kconfig.defconfig renamed to boards/silabs/efr32_radio/Kconfig.defconfig

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,16 @@
66

77
if BOARD_EFR32_RADIO
88

9-
config BOARD
10-
default "efr32_radio_brd4104a" if BOARD_EFR32_RADIO_BRD4104A
11-
default "efr32_radio_brd4170a" if BOARD_EFR32_RADIO_BRD4170A
12-
default "efr32_radio_brd4161a" if BOARD_EFR32_RADIO_BRD4161A
13-
default "efr32_radio_brd4250b" if BOARD_EFR32_RADIO_BRD4250B
14-
default "efr32_radio_brd4180a" if BOARD_EFR32_RADIO_BRD4180A
15-
default "efr32_radio_brd4187c" if BOARD_EFR32_RADIO_BRD4187C
16-
default "efr32_radio_brd4255a" if BOARD_EFR32_RADIO_BRD4255A
17-
189
config CMU_HFXO_FREQ
19-
default 39000000 if BOARD_EFR32_RADIO_BRD4187C
10+
default 39000000 if BOARD_EFR32_RADIO_EFR32MG24B220F1536IM48
2011
default 38400000
2112

2213
config CMU_LFXO_FREQ
2314
default 32768
2415

2516
config FLASH_BASE_ADDRESS
2617
hex
27-
default 0x08000000 if BOARD_EFR32_RADIO_BRD4187C
18+
default 0x08000000 if BOARD_EFR32_RADIO_EFR32MG24B220F1536IM48
2819
default 0x0
2920

3021
config LOG_BACKEND_SWO_FREQ_HZ
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# EFR32BG13 BRD4104A / EFR32MG21 BRD4180A /
2+
# EFR32FG1P BRD4250B / EFR32FG13P BRD4255A board
3+
4+
# Copyright (c) 2020 Piotr Mienkowski
5+
# Copyright (c) 2020 TriaGnoSys GmbH
6+
# SPDX-License-Identifier: Apache-2.0
7+
8+
config BOARD_EFR32_RADIO
9+
select SOC_PART_NUMBER_EFR32BG13P632F512GM48 if BOARD_EFR32_RADIO_EFR32BG13P632F512GM48
10+
select SOC_PART_NUMBER_EFR32MG12P433F1024GM68 if BOARD_EFR32_RADIO_EFR32MG12P433F1024GM68
11+
select SOC_PART_NUMBER_EFR32MG12P432F1024GL125 if BOARD_EFR32_RADIO_EFR32MG12P432F1024GL125
12+
select SOC_PART_NUMBER_EFR32FG1P133F256GM48 if BOARD_EFR32_RADIO_EFR32FG1P133F256GM48
13+
select SOC_PART_NUMBER_EFR32MG21A020F1024IM32 if BOARD_EFR32_RADIO_EFR32MG21A020F1024IM32
14+
select SOC_PART_NUMBER_EFR32MG24B220F1536IM48 if BOARD_EFR32_RADIO_EFR32MG24B220F1536IM48
15+
select SOC_PART_NUMBER_EFR32FG13P233F512GM48 if BOARD_EFR32_RADIO_EFR32FG13P233F512GM48
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
board_runner_args(openocd)
4+
5+
if(CONFIG_BOARD_EFR32_RADIO_EFR32BG13P632F512GM48)
6+
board_runner_args(jlink "--device=EFR32BG13PxxxF512")
7+
elseif(CONFIG_BOARD_EFR32_RADIO_EFR32FG1P133F256GM48)
8+
board_runner_args(jlink "--device=EFR32FG1PxxxF256")
9+
elseif(CONFIG_BOARD_EFR32_RADIO_EFR32MG12P433F1024GM68)
10+
board_runner_args(jlink "--device=EFR32MG12PxxxF1024")
11+
elseif(CONFIG_BOARD_EFR32_RADIO_EFR32MG12P432F1024GL125)
12+
board_runner_args(jlink "--device=EFR32MG12PxxxF1024")
13+
elseif(CONFIG_BOARD_EFR32_RADIO_EFR32MG21A020F1024IM32)
14+
board_runner_args(jlink "--device=EFR32MG21AxxxF1024")
15+
elseif(CONFIG_BOARD_EFR32_RADIO_EFR32MG24B220F1536IM48)
16+
board_runner_args(jlink "--device=EFR32MG24BxxxF1536")
17+
elseif(CONFIG_BOARD_EFR32_RADIO_EFR32FG13P233F512GM48)
18+
board_runner_args(jlink "--device=EFR32FG13PxxxF512")
19+
endif()
20+
21+
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
22+
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
boards:
2+
- name: efr32_radio
3+
socs:
4+
- name: efr32bg13p632f512gm48
5+
- name: efr32mg12p433f1024gm68
6+
- name: efr32mg12p432f1024gl125
7+
- name: efr32fg1p133f256gm48
8+
- name: efr32mg21a020f1024im32
9+
- name: efr32mg24b220f1536im48
10+
- name: efr32fg13p233f512gm48

boards/boards_legacy/arm/efr32_radio/doc/brd4104a.rst renamed to boards/silabs/efr32_radio/doc/brd4104a.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,10 @@ Supported Features
4949
Please refer to
5050
:ref:`EFR32 Radio Board Supported Features <efr32_radio_supported_features>`
5151
for details of the configuration and common features supported by the
52-
efr32_radio_brd4104a board.
52+
``efr32_radio/efr32bg13p632f512gm48`` board.
5353

54-
The default configuration can be found in the defconfig file:
55-
56-
``boards/arm/efr32_radio/efr32_radio_brd4104a_defconfig``
54+
The default configuration can be found in
55+
:zephyr_file:`boards/silabs/efr32_radio/efr32_radio_efr32bg13p632f512gm48_defconfig`
5756

5857
System Clock
5958
============
@@ -84,7 +83,7 @@ Here is an example for the :ref:`hello_world` application.
8483

8584
.. zephyr-app-commands::
8685
:zephyr-app: samples/hello_world
87-
:board: efr32_radio_brd4104a
86+
:board: efr32_radio/efr32bg13p632f512gm48
8887
:goals: flash
8988

9089
Open a serial terminal (minicom, putty, etc.) with the following settings:
@@ -98,7 +97,7 @@ Reset the board and you should see the following message in the terminal:
9897

9998
.. code-block:: console
10099
101-
Hello World! efr32_radio_brd4104a
100+
Hello World! efr32_radio
102101
103102
104103
.. _EFR32BG13 Website:

boards/boards_legacy/arm/efr32_radio/doc/brd4161a.rst renamed to boards/silabs/efr32_radio/doc/brd4161a.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,10 @@ Supported Features
4444
Please refer to
4545
:ref:`EFR32 Radio Board Supported Features <efr32_radio_supported_features>`
4646
for details of the configuration and common features supported by the
47-
efr32_radio_brd4161a board.
47+
``efr32_radio/efr32mg12p432f1024gl125`` board.
4848

49-
The default configuration can be found in the defconfig file:
50-
51-
``boards/arm/efr32_radio/efr32_radio_brd4161a_defconfig``
49+
The default configuration can be found in
50+
:zephyr_file:`boards/silabs/efr32_radio/efr32_radio_efr32mg12p432f1024gl125_defconfig`
5251

5352
System Clock
5453
============
@@ -79,7 +78,7 @@ Here is an example for the :ref:`hello_world` application.
7978

8079
.. zephyr-app-commands::
8180
:zephyr-app: samples/hello_world
82-
:board: efr32_radio_brd4161a
81+
:board: efr32_radio/efr32mg12p432f1024gl125
8382
:goals: flash
8483

8584
Open a serial terminal (minicom, putty, etc.) with the following settings:
@@ -93,7 +92,7 @@ Reset the board and you should see the following message in the terminal:
9392

9493
.. code-block:: console
9594
96-
Hello World! efr32_radio_brd4161a
95+
Hello World! efr32_radio
9796
9897
9998
.. _EFR32MG12 Website:

0 commit comments

Comments
 (0)