Hi blinari,
I am not sure if I follow you (pun intended) but here goes:
PTA4 shares with BKGD on a QG8 so you have to be careful about using both uses of this pin.
On a DEMOQG8 board this pin is hard-wired into the BDM converter section, so using it for anything else is nigh on impossible with board modifications.
PTB0 shares with RXD. This pin on the DEMOQG8 board is hardwired to the MAX3218 so the same sort of things apply here.
PTA0, PTA1, PTA2, PTA3, PTB2, PTB3, PTB4, PTB5, PTB6 and PTB7 are really the only ones freely available for other uses on this demo board. (If you remove the USER EN jumpers.
PTB0, PTB1 are used for comms and PTA4, PTA5 are used for BDM.
Hope this helps.