Valency: The number of electrons gained, lost or shared so as to complete the octet of electrons in the outermost shell, gives us the combining capacity of the element, i.e. the valency.
while
Electronegativity: Ability of an atom to attract a shared pair of electrons in its combined state. Non-metals are more electronegative.
There is no relation between them, so don't confuse in them