tcl/interface: add example of linuxgpiod through dln-2
[fw/openocd] / tcl / interface / dln-2-gpiod.cfg
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 # Use DLN-2 GPIO through linuxgpiod
4 #
5 # +-----------+-------------+-------------+
6 # | signal    | DLN-2       | gpio offset |
7 # +-----------+-------------+-------------+
8 # | nSRST     | J3.1  (PA0) | 0           |
9 # | TDO       | J3.2  (PA1) | 1           |
10 # | TCK/SWCLK | J3.3  (PA2) | 2           |
11 # | TMS/SWDIO | J3.4  (PA3) | 3           |
12 # | TDI       | J3.5  (PA4) | 4           |
13 # | nTRST     | J3.6  (PA5) | 5           |
14 # | GND       | J3.12 (GND) |             |
15 # +-----------+-------------+-------------+
16
17 adapter driver linuxgpiod
18
19 linuxgpiod_gpiochip 0
20 linuxgpiod_jtag_nums 2 3 4 1
21 linuxgpiod_trst_num 5
22 linuxgpiod_swd_nums 2 3
23 linuxgpiod_srst_num 0
24
25 reset_config trst_and_srst separate srst_push_pull