post: rewrite gpio part 2, complete

Signed-off-by: Liu Jianping <heljoy@meizu.com>