Doting comes from Middle English doting, from Old English -ing added to a verb, ultimately from Proto-Germanic -ungō, a suffix forming abstract nouns from verbs.
doting (English): present participle of dote; Characterized by...