I developed one ethernet cape that uses the SPI. The configuration node bellow is working if I make some changes in the drive to handle GPIO interrupts and included code to map gpio pin 47 to an internal interrupt number, I am getting 191.
If I understand correctly I shouldn't have to apply any patch, the interrupt should be described in the device tree so that the SPI drive could
understand what interrupt has to be assigned. When I don't apply the patch, the SPI assign the IRQ 63 (47 to 63 ???) that doesn't work.
I would like to know how should be GPIO interrupt configuration in the device tree to use the drive as is without any patch.
&spi1 {
pinctrl-names = "default";
pinctrl-0 = <&spi1_pins>;
status = "okay";
spidev2: spi@0 {
compatible = "microchip,enc28j60";
reg = <0>;
spi-max-frequency = <24000000>;
interrupts = <47>;
};
};