diff --git a/MAINTAINERS.yml b/MAINTAINERS.yml index 2fd55126b5a..2d159b028f7 100644 --- a/MAINTAINERS.yml +++ b/MAINTAINERS.yml @@ -2760,8 +2760,11 @@ NEORV32 platform: - drivers/*/*neorv32* - dts/bindings/*/*neorv32* - soc/neorv32/ + - tests/boards/neorv32/ labels: - "platform: NEORV32" + tests: + - boards.neorv32 OSDP: status: maintained diff --git a/tests/boards/neorv32/build_all/CMakeLists.txt b/tests/boards/neorv32/build_all/CMakeLists.txt new file mode 100644 index 00000000000..583805f63fa --- /dev/null +++ b/tests/boards/neorv32/build_all/CMakeLists.txt @@ -0,0 +1,11 @@ +# SPDX-License-Identifier: Apache-2.0 +# +# Copyright (c) 2025 Henrik Brix Andersen + +cmake_minimum_required(VERSION 3.20.0) + +find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(build_all_neorv32) + +FILE(GLOB app_sources src/*.c) +target_sources(app PRIVATE ${app_sources}) diff --git a/tests/boards/neorv32/build_all/app.overlay b/tests/boards/neorv32/build_all/app.overlay new file mode 100644 index 00000000000..c55c48a3dd5 --- /dev/null +++ b/tests/boards/neorv32/build_all/app.overlay @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2025 Henrik Brix Andersen + * + * SPDX-License-Identifier: Apache-2.0 + */ + +&gpio { + status = "okay"; + ngpios = <32>; +}; + +&trng { + status = "okay"; +}; + +&uart0 { + status = "okay"; + current-speed = <19200>; +}; + +&uart1 { + status = "okay"; + current-speed = <115200>; +}; diff --git a/tests/boards/neorv32/build_all/prj.conf b/tests/boards/neorv32/build_all/prj.conf new file mode 100644 index 00000000000..4708f7d579d --- /dev/null +++ b/tests/boards/neorv32/build_all/prj.conf @@ -0,0 +1,9 @@ +CONFIG_TEST=y +CONFIG_TEST_USERSPACE=y + +CONFIG_GPIO=y +CONFIG_ENTROPY_GENERATOR=y + +CONFIG_SERIAL=y +CONFIG_UART_INTERRUPT_DRIVEN=y +CONFIG_UART_USE_RUNTIME_CONFIGURE=y diff --git a/tests/boards/neorv32/build_all/src/main.c b/tests/boards/neorv32/build_all/src/main.c new file mode 100644 index 00000000000..1c30472d36a --- /dev/null +++ b/tests/boards/neorv32/build_all/src/main.c @@ -0,0 +1,10 @@ +/* + * Copyright (c) 2025 Henrik Brix Andersen + * + * SPDX-License-Identifier: Apache-2.0 + */ + +int main(void) +{ + return 0; +} diff --git a/tests/boards/neorv32/build_all/testcase.yaml b/tests/boards/neorv32/build_all/testcase.yaml new file mode 100644 index 00000000000..b8b49fc51e3 --- /dev/null +++ b/tests/boards/neorv32/build_all/testcase.yaml @@ -0,0 +1,11 @@ +tests: + boards.neorv32.build_all: + build_only: true + tags: + - drivers + - entropy + - gpio + - uart + platform_allow: neorv32/neorv32/minimalboot + integration_platforms: + - neorv32/neorv32/minimalboot