how does pd charging work