The main feature is that introduce the group field for easy calculation of register offset and interrupt number. Also fix the correct meanings of GPIOs and support the gpio_to_irq for external interrupt.