tcl/board: add SPDX tag
[fw/openocd] / tcl / board / sayma_amc.cfg
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 # Sayma AMC is an FPGA board for the µTCA AMC format
4 # The board is open hardware (CERN OHL) and the gateware and software
5 # running on it are open source (ARTIQ, LGPLv3+).
6 #
7 # https://github.com/m-labs/sinara/wiki/Sayma
8 #
9 # It contains a Xilinx Kintex Ultrascale 040 FPGA (xcku040).
10 # There is a SCANSTA112SM JTAG router on the board which is configured to
11 # automatically add devices to the JTAG svcan chain when they are added.
12 # Sayma AMC is usually combined with Sayma RTM (rear transition module)
13 # which features an Artix 7 FPGA.
14
15 adapter driver ftdi
16 ftdi device_desc "Quad RS232-HS"
17 ftdi vid_pid 0x0403 0x6011
18 ftdi channel 0
19 # Use this to distinguish multiple boards by topology
20 #adapter usb location 5:1
21 # sampling on falling edge generally seems to work and accelerates things but
22 # is not fully tested
23 #ftdi tdo_sample_edge falling
24 # EN_USB_JTAG on ADBUS7: out, high
25 # USB_nTRST on ADBUS4: out, high, but R46 is DNP
26 ftdi layout_init 0x0098 0x008b
27 #ftdi layout_signal EN_USB -data 0x0080
28 #ftdi layout_signal nTRST -data 0x0010
29 reset_config none
30
31 adapter speed 5000
32
33 transport select jtag
34
35 # Add the RTM Artix to the chain. Note that this changes the PLD numbering.
36 # Unfortunately openocd TAPs can't be disabled after they have been added and
37 # before `init`.
38 #source [find cpld/xilinx-xc7.cfg]
39
40 set CHIP XCKU040
41 source [find cpld/xilinx-xcu.cfg]
42
43 set XILINX_USER1 0x02
44 set XILINX_USER2 0x03
45 set JTAGSPI_IR $XILINX_USER1
46 source [find cpld/jtagspi.cfg]
47 flash bank xcu.spi1 jtagspi 0 0 0 0 xcu.proxy $XILINX_USER2