> Hi, > > Yes, you need to specify irq. > > On my code: > > { > .modalias = "mrf24j40", //jpb > //.platform_data // not need > .irq = OMAP_GPIO_IRQ(AM335XEVM_MRF24J40_IRQ_GPIO), > .max_speed_hz = 12000000, > .bus_num = 2, > .chip_select = 0, > },
Thanks, the modalias was the main missing point. For future reference the necessary modifications for the MRF24J40MA attached to the Raspberry Pi (using my own adapter board) are: arch/arm/mach-bcm2708/bcm2708.c: #ifdef CONFIG_SPI #define MRF24J40MA_INT_GPIO_PIN 22 static struct spi_board_info bcm2708_spi_devices[] = { { .modalias = "mrf24j40", .irq = BCM2708_GPIO_IRQ(MRF24J40MA_INT_GPIO_PIN), .max_speed_hz = 12000000, .bus_num = 0, .chip_select = 0, .mode = SPI_MODE_0, }, { .modalias = "spidev", .max_speed_hz = 500000, .bus_num = 0, .chip_select = 1, .mode = SPI_MODE_0, } }; #endif arch/arm/mach-bcm2708/include/mach/gpio.h: #define BCM2708_GPIO_IRQ(gpio) GPIO_IRQ_START+gpio Thanks João! Thanks Alan! -- Markus > Otherwise, in the request_irq() function on mrf24j40.c, is gonna be > requested probably the irq 0 or trash > > []'s > > > > 2012/12/5 Markus Becker <m...@comnets.uni-bremen.de> > > > Hi, > > > > I am trying to get an MRF24J40MA up and running on a Raspberry Pi. > > > > So far, I have a 3.6 kernel and modules compiled with the latest > > linux-zigbee > > changes (including the mrf24jm40 driver) backported to 3.6. CONFIG_SPI is > > set > > and offers the devices /dev/spidev0.0 and /dev/spidev0.1. I have tested > > SPI to > > be working with spidev_test from the kernel documentation. Modprobing > > mrf24j40 > > succeeds, but does not show anything in /var/log/messages or dmesg. > > > > In some email back on the list when I wasn't subscribed Alan and Randy > > > > wrote: > > > > Also, do I just need to specify modalias, mode, irq, bus_num and > > > > chip_select in my board_info struct ? No platform_data ? > > > > > > platform_data is not necessary. > > > > Could the missing irq in the Pi's spi_board_info be a problem? > > > > static struct spi_board_info bcm2708_spi_devices[] = { > > > > { > > > > .modalias = "spidev", > > .max_speed_hz = 500000, > > .bus_num = 0, > > .chip_select = 0, > > .mode = SPI_MODE_0, > > > > }, { > > > > .modalias = "spidev", > > .max_speed_hz = 500000, > > .bus_num = 0, > > .chip_select = 1, > > .mode = SPI_MODE_0, > > > > } > > > > }; > > > > Any pointers are appreciated, > > Markus > > > > ------------------------------------------------ > > > > | Dipl.-Ing. Markus Becker > > | Communication Networks > > | TZI - Center for Computing Technologies > > | University Bremen > > | Germany > > > > ------------------------------------------------ > > > > > > ------------------------------------------------------------------------- > > ----- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > > Remotely access PCs and mobile devices and provide instant support > > Improve your efficiency, and focus on delivering more value-add services > > Discover what IT Professionals Know. Rescue delivers > > http://p.sf.net/sfu/logmein_12329d2d > > _______________________________________________ > > Linux-zigbee-devel mailing list > > Linux-zigbee-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel ------------------------------------------------ | Dipl.-Ing. Markus Becker | Communication Networks | TZI - Center for Computing Technologies | University Bremen | Germany ------------------------------------------------ | web: http://www.comnets.uni-bremen.de/~mab/ | mailto: m...@comnets.uni-bremen.de | telephone: +49 421 218 62379 | building: NW1 room: N2260 ------------------------------------------------ ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ Linux-zigbee-devel mailing list Linux-zigbee-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel