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