Hi Andrea,
The PICO-PI-IMX7 is the third party design board, I have searched and find few materials about it. Here I recommend you to refer to our NXP linux BSP FlexCAN driver, drivers/net/can/flexcan.c. You can try to add it to your kernel. Hope this can do help for you.
Have a nice day
Rita