[PATCH v13 5/7] selftests: gpio: provide a helper for reading chip info