Hi tomas aaltio,
You can find the TPM clock source from the reference manual:

So, You can choose PEE mode, then use MCGPLLCLK, then your TPM clock will be 48Mhz.
Just like this :

Wish it helps you!
If you still have question, please let me know!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------