File: ast2600-gpiod.cfg

package info (click to toggle)
openocd 0.12.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 39,864 kB
  • sloc: ansic: 425,554; sh: 10,320; tcl: 9,539; asm: 3,895; makefile: 2,023; cpp: 1,671; perl: 1,197; python: 1,078; xml: 77; haskell: 32
file content (25 lines) | stat: -rw-r--r-- 758 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# SPDX-License-Identifier: GPL-2.0-or-later

# Use AST2600 GPIO through linuxgpiod
#
# +-----------+-------------+-------------+
# | signal    | GPIO name   | gpio offset |
# +-----------+-------------+-------------+
# | TCK/SWCLK | GPIOI2      | 66          |
# | TMS/SWDIO | GPIOI3      | 67          |
# | TDI       | GPIOI1      | 65          |
# | TDO       | GPIOI4      | 68          |
# | nTRST     | GPIOI0      | 64          |
# +-----------+-------------+-------------+

adapter driver linuxgpiod

adapter gpio trst 64 -chip 0
adapter gpio tdi 65 -chip 0
adapter gpio tck 66 -chip 0
adapter gpio swclk 66 -chip 0
adapter gpio tms 67 -chip 0
adapter gpio swdio 67 -chip 0
adapter gpio tdo 68 -chip 0

reset_config trst_only separate trst_push_pull