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. On Monday, March 31, 2014 11:12:49 PM UTC-5, Ventura wrote: > > > 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 > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.