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.