The past tense of do to a T is did to a T.
The third-person singular simple present indicative form of do to a T is does to a T.
The present participle of do to a T is doing to a T.
The past participle of do to a T is done to a T.