cd6061fd98d9e42d72b881da18d42e30296cb12d
[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 # | LED       | J3.7  (PA6) | 6           |
15 # | GND       | J3.12 (GND) |             |
16 # +-----------+-------------+-------------+
17
18 adapter driver linuxgpiod
19
20 linuxgpiod gpiochip 0
21 linuxgpiod jtag_nums 2 3 4 1
22 linuxgpiod trst_num 5
23 linuxgpiod swd_nums 2 3
24 linuxgpiod srst_num 0
25 linuxgpiod led_num 6
26
27 reset_config trst_and_srst separate srst_push_pull