What is the compatible string for the SPI driver

Applications, development tools, FPGA, C, WEB
Post Reply
thangtamfive
Posts: 1
Joined: Thu Jul 06, 2017 4:50 pm

What is the compatible string for the SPI driver

Post by thangtamfive » Thu Jul 06, 2017 4:52 pm

Hello what SPI Driver does the Red Pitaya use and what is the compatible string? In fact, how may I find the list of devices used by the Red Pitaya?

Regards!

uros.golob
Posts: 7
Joined: Thu Jan 07, 2016 10:39 am

Re: What is the compatible string for the SPI driver

Post by uros.golob » Mon Jul 10, 2017 7:52 am

Can you explain a bit what you are searching for?

Userspace access to SPI is provided using character driver https://github.com/RedPitaya/linux-xlnx ... i/spidev.c available at /dev/spidev1.0
One example to use it is at https://github.com/RedPitaya/RedPitaya/ ... /spi/spi.c
As a reference I generally prefer https://github.com/RedPitaya/linux-xlnx ... dev_test.c, for hardware testing you can actually use this application straight from bash.

List of all devices used by kernel is inside devicetree. Simplest way to search it is in /opt/redpitaya/dtraw.dts or just cating stuff from /proc/device-tree, since that represent current state of devicetree.

Cheers,
Uroš

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 38 guests