Skip to content

Commit d866ca9

Browse files
henrikbrixandersenkartben
authored andcommitted
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 <[email protected]>
1 parent c2b3a2e commit d866ca9

File tree

10 files changed

+21
-6
lines changed

10 files changed

+21
-6
lines changed

boards/deprecated.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,6 @@ set(mimxrt1060_evk_DEPRECATED
4646
set(mimxrt1060_evkb_DEPRECATED
4747
mimxrt1060_evk@B/mimxrt1062/qspi
4848
)
49+
set(neorv32_DEPRECATED
50+
neorv32/neorv32/up5kdemo
51+
)

boards/others/neorv32/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# Copyright (c) 2021,2025 Henrik Brix Andersen <[email protected]>
22
# SPDX-License-Identifier: Apache-2.0
33

4+
if BOARD_NEORV32_NEORV32_UP5KDEMO
5+
46
config BOARD_NEORV32
57
select RISCV_ISA_RV32I
68
select RISCV_ISA_EXT_M
79
select ATOMIC_OPERATIONS_C
10+
11+
endif # BOARD_NEORV32_NEORV32_UP5KDEMO

boards/others/neorv32/board.cmake

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
# Copyright (c) 2021 Henrik Brix Andersen <[email protected]>
1+
# Copyright (c) 2021,2025 Henrik Brix Andersen <[email protected]>
22
# SPDX-License-Identifier: Apache-2.0
33

44
board_runner_args(openocd "--use-elf" "--cmd-reset-halt" "halt")
55
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
6+
7+
if("${BOARD_QUALIFIERS}" STREQUAL "/neorv32")
8+
message(FATAL_ERROR "Please specify a variant for the neorv32 board "
9+
"(e.g. neorv32/neorv32/up5kdemo)")
10+
endif()

boards/others/neorv32/board.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ board:
44
vendor: others
55
socs:
66
- name: neorv32
7+
variants:
8+
- name: "up5kdemo"

boards/others/neorv32/neorv32.dts renamed to boards/others/neorv32/neorv32_neorv32_up5kdemo.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <mem.h>
1111

1212
/ {
13-
model = "NEORV32";
13+
model = "NEORV32 UP5KDemo";
1414
compatible = "neorv32";
1515

1616
aliases {
@@ -86,4 +86,5 @@
8686

8787
&gpio {
8888
status = "okay";
89+
ngpios = <32>;
8990
};

boards/others/neorv32/neorv32.yaml renamed to boards/others/neorv32/neorv32_neorv32_up5kdemo.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
identifier: neorv32
2-
name: NEORV32 Processor (SoC)
1+
identifier: neorv32/neorv32/up5kdemo
2+
name: NEORV32 UP5KDemo
33
type: mcu
44
arch: riscv
55
toolchain:
File renamed without changes.

tests/drivers/gpio/gpio_api_1pin/testcase.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ tests:
1616
- mps2/an383
1717
- mps2/an386
1818
- mps2/an500
19-
- neorv32
19+
- neorv32/neorv32/up5kdemo
2020
drivers.gpio.1pin.aw9523b:
2121
tags:
2222
- drivers
File renamed without changes.

tests/drivers/gpio/gpio_get_direction/testcase.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ tests:
88
# Fix exclude when we can exclude just sim run
99
platform_exclude:
1010
- mps2/an385
11-
- neorv32
11+
- neorv32/neorv32/up5kdemo
1212
filter: dt_enabled_alias_with_parent_compat("led0", "gpio-leds")

0 commit comments

Comments
 (0)