Hello!
Theoretically the IMX7ULP and the IMX8QXP have the same TPM module, the only difference is the counter, in the IMX7ULP the counter is of 16-bit. And in IMX8QXP the counter is of 32-bit.
Also, I checked and the combability with the IMX8ULP is until 5.17.y Kernel.
So, the driver should works well in the IMX8QXP.
Best regards!