BACKPORT: i2c / ACPI: Assign IRQ for devices that have GpioInt automatically

Following what DT already does. If the device does not have ACPI Interrupt
resource but instead it has one or more GpioInt resources listed below it,
we take the first GpioInt resource, convert it to suitable Linux IRQ number
and pass it to the driver instead.

This makes drivers simpler because the don't need to care about GPIOs at
all if only thing they need is interrupt.

Change-Id: I2c72cd5512c161ed44a27c92882c961fede6183f
Signed-off-by: Mika Westerberg <>
Acked-by: Wolfram Sang <>
Signed-off-by: Linus Walleij <>
Signed-off-by: Bogdan Davidoaia <>
Signed-off-by: Robert Dolca <>
1 file changed