tests: drivers: gpio: gpio_basic_api: add support for gd32vf103v_eval
Add DT overlay to run gpio_basic_api test on GD32VF103V-EVAL board. In order to make testing easy a couple of accessible pins have been selected: PD0 and PD1 pins exposed via JP13 and JP4 respectively. Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
parent
a4790bcfab
commit
97cc216957
|
@ -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 JP13 and JP4 and bridge PD0/PD1 */
|
||||
out-gpios = <&gpiod 0 0>; /* JP13 pin 2 (PD0) */
|
||||
in-gpios = <&gpiod 1 0>; /* JP4 pin 2 (PD1) */
|
||||
};
|
||||
};
|
||||
|
||||
&gpiod {
|
||||
status = "okay";
|
||||
};
|
Loading…
Reference in New Issue