TCK pin should connected to 1kOhm pull-down resistor
and, I recommend to leave TDO pin unconnected if not used.
Please refer to MAX 10 pin connection guideline for more details:
Thank you very but,
is everything else is ok ?
And for TDI pin, you need to pull-up to 10kOhm. (you are pull-down the TDI pin)
TDI & TMS = pull-up
TCK = Pull-down
TDO = leave unconnected or pull-up
For more complete information about compiler optimizations, see our Optimization Notice.