gpio: add gpio descriptor initialization helper