device: add support for configuring device link speed/duplex