boards: arm: efm32pg_stk3402a: Convert to v2

Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae
2024-02-20 11:48:32 +00:00
committed by Carles Cufi
parent 575ac5cafb
commit 86c8d4a0ca
16 changed files with 37 additions and 48 deletions

View File

@@ -1,15 +0,0 @@
# EFM32PG STK3402A board
# Copyright (c) 2018, Christian Taedcke
# Copyright (c) 2019 Lemonbeat GmbH
# SPDX-License-Identifier: Apache-2.0
config BOARD_EFM32PG_STK3402A
bool "SiLabs EFM32PG-STK3402A (Pearl Gecko)"
depends on SOC_SERIES_EFM32PG12B
select SOC_PART_NUMBER_EFM32PG12B500F1024GL125
config BOARD_EFM32PG_STK3402A_JG
bool "SiLabs EFM32PG-STK3402A (Jade Gecko)"
depends on SOC_SERIES_EFM32JG12B
select SOC_PART_NUMBER_EFM32JG12B500F1024GL125

View File

@@ -1,19 +0,0 @@
# EFM32PG STK3402A board
# Copyright (c) 2018, Christian Taedcke
# Copyright (c) 2019 Lemonbeat GmbH
# SPDX-License-Identifier: Apache-2.0
if BOARD_EFM32PG_STK3402A || BOARD_EFM32PG_STK3402A_JG
config BOARD
default "efm32pg_stk3402a" if BOARD_EFM32PG_STK3402A
default "efm32pg_stk3402a_jg" if BOARD_EFM32PG_STK3402A_JG
config CMU_HFXO_FREQ
default 40000000
config CMU_LFXO_FREQ
default 32768
endif # BOARD_EFM32PG_STK3402A || BOARD_EFM32PG_STK3402A_JG

View File

@@ -0,0 +1,15 @@
# EFM32PG STK3402A board
# Copyright (c) 2018, Christian Taedcke
# Copyright (c) 2019 Lemonbeat GmbH
# SPDX-License-Identifier: Apache-2.0
if BOARD_EFM32PG_STK3402A
config CMU_HFXO_FREQ
default 40000000
config CMU_LFXO_FREQ
default 32768
endif # BOARD_EFM32PG_STK3402A

View File

@@ -0,0 +1,9 @@
# EFM32PG STK3402A board
# Copyright (c) 2018, Christian Taedcke
# Copyright (c) 2019 Lemonbeat GmbH
# SPDX-License-Identifier: Apache-2.0
config BOARD_EFM32PG_STK3402A
select SOC_PART_NUMBER_EFM32PG12B500F1024GL125 if BOARD_EFM32PG_STK3402A_EFM32PG12B500F1024GL125
select SOC_PART_NUMBER_EFM32JG12B500F1024GL125 if BOARD_EFM32PG_STK3402A_EFM32JG12B500F1024GL125

View File

@@ -0,0 +1,6 @@
board:
name: efm32pg_stk3402a
vendor: silabs
socs:
- name: efm32pg12b500f1024gl125
- name: efm32jg12b500f1024gl125

View File

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

@@ -65,14 +65,11 @@ The efm32pg_stk3402a board configuration supports the following hardware feature
| TRNG | on-chip | true random number generator |
+-----------+------------+-------------------------------------+
The default configuration can be found in the defconfig file:
``boards/arm/efm32pg_stk3402a/efm32pg_stk3402a_defconfig``
The default configuration can be found in
:zephyr_file:`boards/silabs/efm32pg_stk3402a/efm32pg_stk3402a_efm32pg12b500f1024gl125_defconfig`
The default configuration when building for this EFM32JG12B SoC can be found in
another defconfig file:
``boards/arm/efm32pg_stk3402a/efm32pg_stk3402a_defconfig_jg``
:zephyr_file:`boards/arm/efm32pg_stk3402a/efm32pg_stk3402a_efm32jg12b500f1024gl125_defconfig`
Other hardware features are currently not supported by the port.
@@ -88,7 +85,7 @@ such as memory and peripherals are the same.
Code that is built for the Jade Gecko also runs on an equivalent Pearl Gecko.
To build firmware for the Jade Gecko and run it on the EFM32 Pearl Gecko Starter
Kit, use the board ``efm32pg_stk3402a_jg`` instead of ``efm32pg_stk3402a``.
Kit, use the board ``efm32pg_stk3402a/efm32pg12b500f1024gl125`` instead of ``efm32pg_stk3402a/efm32jg12b500f1024gl125``.
Connections and IOs
===================
@@ -165,7 +162,7 @@ Build the Zephyr kernel and application:
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: efm32pg_stk3402a
:board: efm32pg_stk3402a/efm32pg12b500f1024gl125
:goals: build
Connect the EFM32PG-STK3402A to your host computer using the USB port and you

View File

@@ -1,4 +1,4 @@
identifier: efm32pg_stk3402a_jg
identifier: efm32pg_stk3402a/efm32jg12b500f1024gl125
name: EFM32PG-STK3402A-JG
type: mcu
arch: arm

View File

@@ -1,7 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_EFM32PG12B=y
CONFIG_BOARD_EFM32PG_STK3402A=y
CONFIG_ARM_MPU=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

View File

@@ -1,4 +1,4 @@
identifier: efm32pg_stk3402a
identifier: efm32pg_stk3402a/efm32pg12b500f1024gl125
name: EFM32PG-STK3402A
type: mcu
arch: arm

View File

@@ -1,7 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_EFM32JG12B=y
CONFIG_BOARD_EFM32PG_STK3402A_JG=y
CONFIG_ARM_MPU=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y