The story
Medieval variant of Gawain, the name of an Arthurian knight, first recorded as Old French Gauvain. The form Gavin survived in Scotland and spread to other English-speaking countries in the 1960s. Doublet of Gawain.
Etymology from Wiktionary, CC BY-SA 4.0.