diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2020-12-06 18:19:01 +0100 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2020-12-09 14:31:00 +0000 |
commit | 9d3f33757030c30c138405dd8a63cef8fd68184c (patch) | |
tree | 48851255116e3b45c92e172966d8446d3da6c6e8 | |
parent | 2bbd85a828f0ea43307a0ca92810570c376002d0 (diff) | |
download | riscv-openocd-9d3f33757030c30c138405dd8a63cef8fd68184c.zip riscv-openocd-9d3f33757030c30c138405dd8a63cef8fd68184c.tar.gz riscv-openocd-9d3f33757030c30c138405dd8a63cef8fd68184c.tar.bz2 |
doc: document adapter drivers linuxgpiod and sysfsgpio
Change-Id: If894092a7ae04bb95fa1913d2e3c8465c2d0f75c
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5961
Tested-by: jenkins
Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
-rw-r--r-- | doc/openocd.texi | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/openocd.texi b/doc/openocd.texi index cc7b6b2..670d970 100644 --- a/doc/openocd.texi +++ b/doc/openocd.texi @@ -623,6 +623,13 @@ emulation model of target hardware. @item @b{xlnx_pcie_xvc} @* A JTAG driver exposing Xilinx Virtual Cable over PCI Express to OpenOCD as JTAG/SWD interface. +@item @b{linuxgpiod} +@* A bitbang JTAG driver using Linux GPIO through library libgpiod. + +@item @b{sysfsgpio} +@* A bitbang JTAG driver using Linux legacy sysfs GPIO. +This is deprecated from Linux v5.3; prefer using @b{linuxgpiod}. + @end itemize @node About Jim-Tcl @@ -3240,6 +3247,22 @@ pinout. @end deffn +@deffn {Interface Driver} {linuxgpiod} +Linux provides userspace access to GPIO through libgpiod since Linux kernel version v4.6. +The driver emulates either JTAG and SWD transport through bitbanging. + +See @file{interface/dln-2-gpiod.cfg} for a sample config. +@end deffn + + +@deffn {Interface Driver} {sysfsgpio} +Linux legacy userspace access to GPIO through sysfs is deprecated from Linux kernel version v5.3. +Prefer using @b{linuxgpiod}, instead. + +See @file{interface/sysfsgpio-raspberrypi.cfg} for a sample config. +@end deffn + + @deffn {Interface Driver} {openjtag} OpenJTAG compatible USB adapter. This defines some driver-specific commands: |