Hello,
I am a Raspi User, and i buyed a UDOO Quad Board.
I am running Udoo on Ubuntu.
I will use a RFM70 Module for communicate with other Devices in the Network.
But i have a Problem, i stuck on the SPI Devices.
I have no SPI devices on /dev/....
i recompiled the kernel with SPI Support, but i have no luck....
Can you help me?
Thank you!
Hello,
I am very lucky, when i get Support, or Help.
I have a Udoo Quad Board. I edited the Kernel Source an Compiled it.
Now i get these Errors in kern.log:
Jan 1 00:00:02 udoo kernel: [ | 0.916505] spi_imx imx6q-ecspi.1: can't get cs gpios |
Jan 1 00:00:02 udoo kernel: [ | 0.921582] spi_imx: probe of imx6q-ecspi.1 failed with error -22 |
i will use the SPI1 device from my i.MX.
My SPI Code:
/usr/src/kernel/arch/arm/mach-mx6/board-mx6_seco_UDOO.c:
/***********************************************************************
* SPI *
***********************************************************************/
static int mx6q_seco_udoo_spi_cs1[] = {
MX6Q_PAD_DISP0_DAT23__ECSPI1_SS0,
MX6Q_PAD_EIM_D24__ECSPI1_SS2
};
static const struct spi_imx_master mx6q_seco_UDOO_spi_data1 __initconst = {
.chipselect = mx6q_seco_udoo_spi_cs1,
.num_chipselect = ARRAY_SIZE(mx6q_seco_udoo_spi_cs1),
};
static struct spi_board_info imx6_seco_UDOO_spi_device[] __initdata = {
{
.modalias = "spidev",
.max_speed_hz = 20000000,
.bus_num = 0,
.chip_select = 0,
.mode = SPI_MODE_0,
},
};
static void spi_device_init(void) {
spi_register_board_info(imx6_seco_UDOO_spi_device, ARRAY_SIZE(imx6_seco_UDOO_spi_device));
}
Thank you for infos :smileyhappy: