merge code from 939d lk6: gpio usb fm modem