Skip to content

Commit

Permalink
tests: gpio_basic_api: add testcase for mr_canhubk3 WKPU
Browse files Browse the repository at this point in the history
Use the same pins as when testing with SIUL2 EIRQ but instead test with
WKPU interrupts.

Signed-off-by: Manuel Argüelles <manuel.arguelles@nxp.com>
  • Loading branch information
manuargue committed Sep 14, 2023
1 parent 3c04dde commit 22f1075
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/drivers/gpio/gpio_basic_api/boards/mr_canhubk3_wkpu.overlay
Original file line number Diff line number Diff line change
@@ -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";
};
4 changes: 4 additions & 0 deletions tests/drivers/gpio/gpio_basic_api/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 22f1075

Please sign in to comment.