google
ref
1960s: from dick1 + head.
wiktionary
ref
Compound of dick + head. Attested since the 1960s, with the jerk sense appearing earliest.
etymonline
ref
dickhead (n.)
"stupid, contemptible person," by 1969, from dick in the "penis" sense + head (n.).