gpio: allow specifying the digital logical pin number as required