This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Dump SPI Slave device register values



Hi,

I have SPI slave device connected to board,  how do I dump the registers of the slave device from Linux ?

Thanks & Regards,

Mike

  • What is the SPI slave device ?
    You have to read SPI slave data sheet to read the particular register of them.
  • Depending on your filesystem, you may have the i2cdetect utility. Try: i2cdetect -r <bus#>.
    This returns a list of detected devices on that bus. Once you verified that your device is detected, look at the device model and then at the drivers in your kernel source. If the driver is in your kernel source, configure your kernel to add support for that driver. You may use the driver to read/write your device, but this requires you to write a small app to do so. If the driver is not in your kernel source, you will have to write a driver that obeys the spi transactions required by your device.