Newcastle edged their all-Premier League clash with Bournemouth to progress to the quarter-finals of the Carabao Cup, with England defender Kieran Trippier instrumental on his return to action after the World Cup.