If you are unsure about how to use the three stem forms, also called basic forms, of irregular verbs you should try to get a basic grammar of English where such things are explained. This topic is really one of the important things of grammar.
The three stem forms of to do are: do/did/done. And there are two special forms: does and don't (mostly not mentioned in lists of irregular verbs).
With the second stem form "did" you can only form the past tense: I did not know it.
You use the third stem form "done" for the so-called perfect tenses:
I have/had/will have/would have + done.
The third stem form is also used in all passive tenses: tense forms of to be + done:
Tenses I: The work is/was/will be/would be + done
Tenses II: The work has been/had been/will have been/would have been + done.
The third stem form is a participle meaning it has a double function. It can have verbal character and it can be used as an adjective.
PS I say "stem forms" because all verbal forms "stem" from these three forms. It is up to you which term you use. English grammars mostly use basic forms.