Hi Jakub,
After had a brief look through the K22P64M120SF5RM, I found that only the PORTD module support the digitial filter.
In the 5.7.4 PORT digital filter clocking section, you can find the digital filter in the PORTD module can be clocked as Fig 1 shows.

Have a great day,
Ping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------