aboutsummaryrefslogtreecommitdiff
path: root/tcl/interface
diff options
context:
space:
mode:
authorSteve Marple <stevemarple@googlemail.com>2022-06-21 23:06:25 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2022-08-15 13:24:54 +0000
commit290eac04b93cd2f98e0a921e9dbf73b0822ae33b (patch)
treea5a9c0c06c3faaf7d954da0aec634450b41e15e1 /tcl/interface
parent903f2e92a143acf66fcaa82e628c1672fdd0da9f (diff)
downloadriscv-openocd-290eac04b93cd2f98e0a921e9dbf73b0822ae33b.zip
riscv-openocd-290eac04b93cd2f98e0a921e9dbf73b0822ae33b.tar.gz
riscv-openocd-290eac04b93cd2f98e0a921e9dbf73b0822ae33b.tar.bz2
drivers/linuxgpiod: Migrate to adapter gpio commands
Use the new "adapter gpio" commands to configure the GPIOs used by the linuxgpiod driver. Adds support for drive mode and resistor pull options on all signals. Change-Id: Ic90cb4f06db82435294228b6793330107a9f3606 Signed-off-by: Steve Marple <stevemarple@googlemail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7048 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'tcl/interface')
-rw-r--r--tcl/interface/dln-2-gpiod.cfg15
1 files changed, 9 insertions, 6 deletions
diff --git a/tcl/interface/dln-2-gpiod.cfg b/tcl/interface/dln-2-gpiod.cfg
index cd6061f..c9e3388 100644
--- a/tcl/interface/dln-2-gpiod.cfg
+++ b/tcl/interface/dln-2-gpiod.cfg
@@ -17,11 +17,14 @@
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
-linuxgpiod led_num 6
+adapter gpio srst 0 -chip 0
+adapter gpio tdo 1 -chip 0
+adapter gpio tck 2 -chip 0
+adapter gpio swclk 2 -chip 0
+adapter gpio tms 3 -chip 0
+adapter gpio swdio 3 -chip 0
+adapter gpio tdi 4 -chip 0
+adapter gpio trst 5 -chip 0
+adapter gpio led 6 -chip 0
reset_config trst_and_srst separate srst_push_pull