Since 28 December 2024 every new phone sold in the EU must have USB-C. The same CC pins carry the fast-charge handshake: nothing above 5 volts flows until the phone asks for it.
USB-C reads which way up the plug is from one pin dropping to 0.4 volts. The port has 24 pins in two mirrored rows, but a normal cable carries only one CC wire. Your phone ties both CC pins to ground through 5.1 kilohm resistors. The charger pushes a small current into CC1 and CC2, and only the pin that meets a resistor drops, so that pin tells it which way up you plugged in. It switches on 5 volts only after that.
Values: USB Type-C spec (Rd 5.1 kilohm, default Rp 56 kilohm or 80 microamps), Microchip and Infineon application notes.
#usbc#electronics#engineering#howitworks#pcb