Re: Requesting different interrupt triggers for the same device type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/02/2014 06:45 PM, Alexander Stein wrote:
Hi,

I have a board which has two PCA9555 attached. Due to hardware wirings each has a different interrupt trigger. One is active low and one is active high and each has a different interrupt parent.
How can I specify this in the device tree? Do I need to set IRQ_TYPE_LEVEL_LOW and IRQ_TYPE_LEVEL_HIGH approriately? How can this work, when the driver requests the interrupt like this?
ret = devm_request_threaded_irq(&client->dev,
			client->irq,
			NULL,
			pca953x_irq_handler,
			IRQF_TRIGGER_LOW | IRQF_ONESHOT |
			IRQF_SHARED,
			dev_name(&client->dev), chip);

The interrupt flags seem rather fixed. Any comments/hints?

See, http://www.spinics.net/lists/linux-gpio/msg02731.html
It may help.

regards,
-grygorii
--
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




[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux