hello
remove the chip_select option and used one of the gpio as chip select to
control the spi trasnmission
On Monday, November 16, 2015 at 9:42:38 PM UTC+5:30, Mian Tang wrote:
>
> Hi,
>
> I'm developing spi device driver. It's a module driver, and I don't need
> to compile the kernel. The spi_board_info is below:
> static struct spi_board_info ad1299_spi_board_info[] = {
> [0] = {
> .modalias = "ADS1299",
> .max_speed_hz = 48000000, // 48MHz
> .bus_num = 1,
> .chip_select = 0,
> .mode = SPI_MODE_1,
> //.irq = gpio_to_irq(ADS2_RDY_PIN),
> .platform_data = NULL,
> .controller_data = NULL,
> },
> };
>
>
> The chip_select is 0 above, and it's always failed when I call insmod to
> install the driver. It seems that Chip select 0 is occupied by other
> drivers.
> I guess that chip select 0 is occupied by /dev/spidev1.0, right?
>
> If /dev/spidev1.0 occupy SPI1 and CS0, is there any way that I unload
> "/dev/spidev1.0" in user space? I just want to install my driver without
> re-compiling the kernel.
>
> Any suggestions are appreciated.
>
>
>
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.