1. A method comprising: detecting insertion of a connector into an accessory port of a computing device based on detection pin signals conveyed via a plurality of detection pins in the connector; ascertaining an orientation of the connector inserted in the accessory port based on the detection pin signals; determining, based on logic states of the detection pin signals, whether an accessory device connected via the connector is a one-wire type device or a two-wire type device; and configuring a switching mechanism of the computing device to route signals to pins of the accessory port according to the ascertained orientation and the determined type of the accessory device connected.
1. A method comprising: detecting insertion of a connector into an accessory port of a computing device based on detection pin signals conveyed via a plurality of detection pins in the connector; ascertaining an orientation of the connector inserted in the accessory port based on the detection pin signals; determining, based on logic states of the detection pin signals, whether an accessory device connected via the connector is a one-wire type device or a two-wire type device; and configuring a switching mechanism of the computing device to route signals to pins of the accessory port according to the ascertained orientation and the determined type of the accessory device connected. 4. The method of claim 1 , wherein the detection pins provide an interface that supports hot plug detection and communications for device authentication, power exchange, or signal routing control.