tcl/interface: add example of linuxgpiod through dln-2 61/5561/5
authorAntonio Borneo <borneo.antonio@gmail.com>
Wed, 1 Apr 2020 22:14:21 +0000 (00:14 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Mon, 13 Jul 2020 23:38:59 +0000 (00:38 +0100)
The USB adapter DLN-2 provides 32 GPIO (beside I2C, SPI, ...).
Use the first 6 GPIO for a SWD/JTAG bitbanging example through
linuxgpiod driver.

Change-Id: I229c2078142ec648fc6430b5d123539045dcfbda
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5561
Tested-by: jenkins
tcl/interface/dln-2-gpiod.cfg [new file with mode: 0644]

diff --git a/tcl/interface/dln-2-gpiod.cfg b/tcl/interface/dln-2-gpiod.cfg
new file mode 100644 (file)
index 0000000..1859688
--- /dev/null
@@ -0,0 +1,25 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+# Use DLN-2 GPIO through linuxgpiod
+#
+# +-----------+-------------+-------------+
+# | signal    | DLN-2       | gpio offset |
+# +-----------+-------------+-------------+
+# | nSRST     | J3.1  (PA0) | 0           |
+# | TDO       | J3.2  (PA1) | 1           |
+# | TCK/SWCLK | J3.3  (PA2) | 2           |
+# | TMS/SWDIO | J3.4  (PA3) | 3           |
+# | TDI       | J3.5  (PA4) | 4           |
+# | nTRST     | J3.6  (PA5) | 5           |
+# | GND       | J3.12 (GND) |             |
+# +-----------+-------------+-------------+
+
+adapter driver linuxgpiod
+
+linuxgpiod_gpiochip 0
+linuxgpiod_jtag_nums 2 3 4 1
+linuxgpiod_trst_num 5
+linuxgpiod_swd_nums 2 3
+linuxgpiod_srst_num 0
+
+reset_config trst_and_srst separate srst_push_pull

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)