i2c: refactor
gpio: add short analog (bbb) example