The past tense of have to do with is had to do with.
The third-person singular simple present indicative form of have to do with is has to do with.
The present participle of have to do with is having to do with.
The past participle of have to do with is had to do with.