mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* issues communicating with SPI on Raspberry Pi 3
@ 2018-12-05 15:22 Kai Che
  2018-12-06  8:03 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Kai Che @ 2018-12-05 15:22 UTC (permalink / raw)
  To: barebox

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.

Did I miss any configurations?

Best Regrds,

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: issues communicating with SPI on Raspberry Pi 3
  2018-12-05 15:22 issues communicating with SPI on Raspberry Pi 3 Kai Che
@ 2018-12-06  8:03 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2018-12-06  8:03 UTC (permalink / raw)
  To: Kai Che; +Cc: barebox

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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-12-06  8:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-05 15:22 issues communicating with SPI on Raspberry Pi 3 Kai Che
2018-12-06  8:03 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox