Hello,
I am also working on the Portenta H7 and facing similar issue of Pin Map. I found this library on Github Arduino_PortentaBreakout/Arduino_PortentaBreakout.h at main · arduino-libraries/Arduino_PortentaBreakout · GitHub.
Hope it help you as well
Tien Loi