Re: issues communicating with SPI on Raspberry Pi 3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 05, 2018 at 03:22:40PM +0000, Kai Che wrote:
> Hi all,
> 
> I'm trying to communicate with a TPM 2.0 (infineon,slb9670) over SPI on a Raspberry Pi 3 in barebox.
> 
> CONFIG_SPI=y
> CONFIG_DRIVER_SPI_GPIO=y
> CONFIG_CMD_SPI=y
> 
> are set in the barebox configuration and
> 
> dtparam=spi=on
> 
> is set in the /boot/config.txt on the raspberry pi.
> 
> But when checking /dev/ on barebox, there is nothing related to spi except cs0.
> 
> I would have expected something similiar to /dev/spidev0.0 showing up.

I you want to communicate with a SPI device directly without the driver,
there's the 'spi' command. It directly uses internal functions without
the need of any file in /dev/.

We don't have any bcm283x SPI driver in barebox. You probably already
noticed that and enable the spi-gpio driver for this reason. However,
you'll need the appropriate device nodes (Compatible to "spi-gpio")
and the pinctrl setup to make this work.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux