tests: gpio_basic_api: add WKPU interrupts test for mr_canhubk3

Use the same pins as when testing with SIUL2 EIRQ interrupt
controller, but instead test routing the external interrupts
to WKPU controller.

Signed-off-by: Manuel Argüelles <manuel.arguelles@nxp.com>
This commit is contained in:
Manuel Argüelles 2023-09-13 17:30:58 +07:00 committed by Fabio Baltieri
commit 402e1da58d
2 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,20 @@
/*
* Copyright 2023 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/dt-bindings/gpio/nxp-s32-gpio.h>
/ {
resources {
compatible = "test-gpio-basic-api";
/* Use LPSPI1 MISO/MOSI pins which are also used for spi_loopback test */
out-gpios = <&gpioa_h 13 0>;
in-gpios = <&gpioa_h 14 NXP_S32_GPIO_INT_WKPU>;
};
};
&wkpu {
status = "okay";
};

View file

@ -16,3 +16,7 @@ tests:
platform_allow: nrf52840dk_nrf52840 nrf52_bsim
extra_args: "DTC_OVERLAY_FILE=boards/nrf52840dk_nrf52840.overlay;\
boards/nrf52840dk_nrf52840_sense_edge.overlay"
drivers.gpio.mr_canhubk3_wkpu:
platform_allow: mr_canhubk3
extra_args: "DTC_OVERLAY_FILE=boards/mr_canhubk3_wkpu.overlay"