Walker, Yankees agree to $4M, 1-year deal