In any case, based on Armes Prydein, we can see that Merlin appears as early as the 10th century as a type of prophet.
The first of these, written before 1135, was the first work about the mythical wildman and prophet written in a language other than Welsh. According to Geoffrey, Merlin was born in Carmarthen.