issues communicating with SPI on Raspberry Pi 3
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=yCONFIG_DRIVER_SPI_GPIO=yCONFIG_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.
Did I miss any configurations?
Best Regrds,
Kai Che
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 10 lines · Kai Che
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=yCONFIG_DRIVER_SPI_GPIO=yCONFIG_CMD_SPI=yare set in the barebox configuration and
Quoted 7 lines
dtparam=spi=on
is set in the
/boot/config.txton 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.0showing 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
Signature · 9 lines
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 [email protected] http://lists.infradead.org/mailman/listinfo/barebox