drivers/linuxgpiod: Migrate to adapter gpio commands
[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 adapter gpio srst 0 -chip 0
21 adapter gpio tdo 1 -chip 0
22 adapter gpio tck 2 -chip 0
23 adapter gpio swclk 2 -chip 0
24 adapter gpio tms 3 -chip 0
25 adapter gpio swdio 3 -chip 0
26 adapter gpio tdi 4 -chip 0
27 adapter gpio trst 5 -chip 0
28 adapter gpio led 6 -chip 0
29
30 reset_config trst_and_srst separate srst_push_pull