tests: drivers: gpio: gpio_basic_api: add support for gd32f403z_eval
Add DT overlay to run gpio_basic_api test on GD32F403Z-EVAL board. In order to make testing easy a couple of accessible pins have been selected: PD0 and PD1 pins exposed via P3 and P2 respectively. Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
parent
3bf7a7a326
commit
38d583bbf4
1 changed files with 18 additions and 0 deletions
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* Copyright (c) 2021 Teslabs Engineering S.L.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/ {
|
||||
resources {
|
||||
compatible = "test-gpio-basic-api";
|
||||
/* Unplug jumpers from P3 and P2 and bridge PD0/PD1 */
|
||||
out-gpios = <&gpiod 0 0>; /* P3 pin 2 (PD0) */
|
||||
in-gpios = <&gpiod 1 0>; /* P2 pin 2 (PD1) */
|
||||
};
|
||||
};
|
||||
|
||||
&gpiod {
|
||||
status = "okay";
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue