TC8642 2H Micro-step Driver

I got a TC8642 stepper motor driver, Output current: 1A ~ 4.2A
Input voltage: 24V ~ 50V
Micro step and output current with DIP switch.
16 kinds of micro step.

May I know what should change in Marlin if I add this driver to Arduino?

How to calculate the maximum stepper rate and minimum stepper pulse?

That sounds like a question for a Forum that specializes in 3D printers - such as the RepRap Forum.