Apparently that is the JTAG.
Found this very important post which explains that I need RD5 on the PBI connection, but not just RD5, RD5 via a diode!:
Edit: Actually he says later in the thread this was fixed in the CPLD, so only RD5 to PBI pin 39 is needed. No diode.