DanielJeongADI / LKD

Linux Kernel Driver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing correct gpio interrupt implementation for MAX11410

Livius90 opened this issue · comments

Many thanks that new MAX11410. But i do not understand the interrupt pin configuration in its device-tree source.

max11410-gpio1 = <6>;

Normaly, it should contains an interrupt parent config also, for a gpio controller node pointer, like this example drivers. ad7192, sc16is7xx

interrupt-parent = <&gpio3>;
interrupts = <7 IRQ_TYPE_EDGE_FALLING>;

It seems to me, probably this configuration is only working for Raspberry Pi 4, is it right? Can you improve it to be able to use in any kind of SoC as it is implemented in the example links?

As i see, MAX11410 is available in the latest Linux kernel finally, thanks the implementation
https://github.com/torvalds/linux/blob/master/drivers/iio/adc/max11410.c