boards: others: neorv32: add up5kdemo board variant

Refactor the existing NEORV32 board to become a UP5KDemo board variant for
the NEORV32 board. The software configuration of this board matches the
NEORV32 "UP5KDemo" processor template.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
This commit is contained in:
Henrik Brix Andersen 2025-03-17 20:29:11 +00:00 committed by Benjamin Cabé
parent c2b3a2e393
commit d866ca9018
10 changed files with 21 additions and 6 deletions

View File

@ -46,3 +46,6 @@ set(mimxrt1060_evk_DEPRECATED
set(mimxrt1060_evkb_DEPRECATED
mimxrt1060_evk@B/mimxrt1062/qspi
)
set(neorv32_DEPRECATED
neorv32/neorv32/up5kdemo
)

View File

@ -1,7 +1,11 @@
# Copyright (c) 2021,2025 Henrik Brix Andersen <henrik@brixandersen.dk>
# SPDX-License-Identifier: Apache-2.0
if BOARD_NEORV32_NEORV32_UP5KDEMO
config BOARD_NEORV32
select RISCV_ISA_RV32I
select RISCV_ISA_EXT_M
select ATOMIC_OPERATIONS_C
endif # BOARD_NEORV32_NEORV32_UP5KDEMO

View File

@ -1,5 +1,10 @@
# Copyright (c) 2021 Henrik Brix Andersen <henrik@brixandersen.dk>
# Copyright (c) 2021,2025 Henrik Brix Andersen <henrik@brixandersen.dk>
# SPDX-License-Identifier: Apache-2.0
board_runner_args(openocd "--use-elf" "--cmd-reset-halt" "halt")
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
if("${BOARD_QUALIFIERS}" STREQUAL "/neorv32")
message(FATAL_ERROR "Please specify a variant for the neorv32 board "
"(e.g. neorv32/neorv32/up5kdemo)")
endif()

View File

@ -4,3 +4,5 @@ board:
vendor: others
socs:
- name: neorv32
variants:
- name: "up5kdemo"

View File

@ -10,7 +10,7 @@
#include <mem.h>
/ {
model = "NEORV32";
model = "NEORV32 UP5KDemo";
compatible = "neorv32";
aliases {
@ -86,4 +86,5 @@
&gpio {
status = "okay";
ngpios = <32>;
};

View File

@ -1,5 +1,5 @@
identifier: neorv32
name: NEORV32 Processor (SoC)
identifier: neorv32/neorv32/up5kdemo
name: NEORV32 UP5KDemo
type: mcu
arch: riscv
toolchain:

View File

@ -16,7 +16,7 @@ tests:
- mps2/an383
- mps2/an386
- mps2/an500
- neorv32
- neorv32/neorv32/up5kdemo
drivers.gpio.1pin.aw9523b:
tags:
- drivers

View File

@ -8,5 +8,5 @@ tests:
# Fix exclude when we can exclude just sim run
platform_exclude:
- mps2/an385
- neorv32
- neorv32/neorv32/up5kdemo
filter: dt_enabled_alias_with_parent_compat("led0", "gpio-leds")