gpio: make analog pin support more versatile on the bbb