2010-06-22 08:39:59     Override a pin to use it via GPIO

Document created by Aaronwu Employee on Aug 22, 2013
Version 1Show Document
  • View in full screen mode

2010-06-22 08:39:59     Override a pin to use it via GPIO

Miquel Soler i Mir (SPAIN)

Message: 90532   

 

Hello.

 

I'm working with TCM-BF537 with 2009R1 kernel + toolchain... All is working fine

 

I configured the kernel to have a "spi-dev" device in CS-2.

 

I'm working with a SPI device called KX1400 that doesn't send any information by blackfin_SPI_MISO.

 

Though the device has a line called BUSY connected to SPI_MISO from blackfin.

 

In this case the SPIO_MISO is not used by SPI comunication, the KX1400 doesn't send any information by SPI bus.

 

I'm trying to use this line GPIO12-SPI_MISO to work with GPIO sysfs interface.

 

The problem is that this line is "used" by SPI driver.

 

Is there any way to use this line as GPIO?

 

Thanks

 

Miquel Soler i Mir

TranslateQuoteReplyEditDelete

 

 

2010-06-22 13:38:35     Re: Override a pin to use it via GPIO

Mike Frysinger (UNITED STATES)

Message: 90538   

 

dont enable the SPI driver

QuoteReplyEditDelete

 

 

2010-06-22 14:48:20     Re: Override a pin to use it via GPIO

Miquel Soler i Mir (SPAIN)

Message: 90539   

 

I need the driver to send the SPI comands to KX1400 device.

 

Miquel

TranslateQuoteReplyEditDelete

 

 

2010-06-22 15:04:12     Re: Override a pin to use it via GPIO

Mike Frysinger (UNITED STATES)

Message: 90541   

 

so dont specify P_SPI0_MISO in your board resources.  but then you wont be able to use the SPI bus with any other device.

Attachments

    Outcomes