ramips: setup GPIO chip functions on the fly