k2g has two instances of gpio controller. The gpio controller is bit identical to the one used in da-vinci. The da-vinci gpio driver was written keeping in mind about only one instance of gpio controller. The patch series enhances the driver to support multiple instances. k2g has 2 instances of gpio controller with 144 pins each. Totally 9 banks with 16 pins each totalling to 144 pins per controller instance. GPIO1 instance has GPIO:68 to GPIO:143 marked as reserved hence we have a total of 144(bank0) and 68 (bank1) GPIOs. Grygorii Strashko (1): gpio: davinci: irq support for multiple gpio controllers Keerthy (3): gpio: davinci: Remove gpio2regs function to accommodate multi instances gpio: davinci: Store both irqs into the controller gpio: davinci: Add a separate compatible for k2g Lokesh Vutla (1): drivers: gpio: Add support for multiple IPs .../devicetree/bindings/gpio/gpio-davinci.txt | 2 +- drivers/gpio/gpio-davinci.c | 115 ++++++++++++++------- include/linux/platform_data/gpio-davinci.h | 3 + 3 files changed, 84 insertions(+), 36 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html