How to implement the circuitry for a reversible connector
I don't think there's an ic solution to such an easy problem: put and/supply on two &quot;mirrored&quot; contacts, have a simple diode bridge provide the right polarity regardless of orientation.
With that power, use microcontroller or the SoC that your device has anyway to detect the polarity.
Most microcontrollers have rather flexible pin assignments, so maybe software suffices.
If it doesn't, a pair of analog switches or bus switch ICs controlled by your software will do.