I solved it I hope this help to others.
- check the configuration (I recommend it should be y not m)
SPI support – CONFIG_SPI=y
Freescale MXS SPI controller – CONFIG_SPI_MXS=y
User mode SPI device driver support – CONFIG_SPI_SPIDEV=y
- check also the configuration in /rpm/BUILD/linux/arch/arm/config/
- change the spi_board_info in mx28evk.c
static struct spi_board_info spi_devboard_info[] __initdata = {
#if defined(CONFIG_SPI_MXS) || defined(CONFIG_SPI_MXS_MODULE)
{
/* the modalias must be the same as spi device driver name */
.modalias = "spidev", /* Name of spi_driver for this device */
.max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */
.bus_num = 1, /* Framework bus number */
.chip_select = 0, /* Framework chip select. */
.mode = SPI_MODE_0,
},
#endif
};
static void spi_device_init(void)
{
#if 0
spi_register_board_info(spi_board_info, ARRAY_SIZE(spi_board_info));
#else
spi_register_board_info(spi_devboard_info, ARRAY_SIZE(spi_devboard_info));
printk(KERN_INFO "register (spi_devboard_info) \n");
#endif
- after update uImage rebuilt check if spidev_init log you add it.
after update of uImage I can see the /dev/spidev1.0
Thanks.