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>
19 lines
350 B
Plaintext
19 lines
350 B
Plaintext
/*
|
|
* 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";
|
|
};
|