Question about GPIO interrupt configuration on device tree

I developed one ethernet cape that uses the SPI. The configuration node bellows is working because I did a change in the device drive to
handle the interrupt number as GPIO number (gpio1_15) and included code to map one interrupt ( for 47 I am getting IRQ 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 to use the drive as is.

&spi1 {
pinctrl-names = “default”;
pinctrl-0 = <&spi1_pins>;
status = “okay”;

spidev2: spi@0 {
compatible = “microchip,enc28j60”;
reg = <0>;
spi-max-frequency = <24000000>;
interrupts = <47>;
};
};

Sincerely,
Ventura

I found out that the configuration for gpio1_15 as the interrupt line for SPI1 has to be:

&spi1 {
pinctrl-names = “default”;
pinctrl-0 = <&spi1_pins>;
status = “okay”;

spidev2: spi@0 {
compatible = “microchip,enc28j60”;
reg = <0>;
spi-max-frequency = <24000000>;
interrupts = <15 2>;
interrupt-parent = <&gpio1>;
};
};

Using this configuration the enc28j60 1.0.1 works as is without do any change.