Hi,
I have integrated an external ADC as a SPI platform device. It's interfaced with SPI 1, so I have removed "spidev" which was interfering during spi registration of ADC.
Currently SPI registration is successful, but while I am performing SPI read operation it returns as -1 value.
I have followed steps provided in this link for driver integration.
AD7606 IIO Multi-Channel Simultaneous Sampling ADC Linux Driver [Analog Devices Wiki]
I hooked up ~CS[ IIO pin 10 ] to oscilloscope, it seems that it's low always.
If I run the same with Arduino sketch [with default binary] instead of as linux driver, it works fine so hardware wiring between ADC & Galileo should be fine.
BSP: v1.0.0
SD Boot:
File: Intel_qrk_plat_galileo.c
Changes
1.
Commented "spidev" module from structure
static struct spi_board_info spi_onboard_devs[]
2
Registered ADC by calling spi_register_board_info(spi_ad7606_dev, ARRAY_SIZE(spi_ad7606_dev));
in function intel_qrk_gpio_restrict_probe() towards the end.
Is anything else required for interfacing ADC with SPI 1.
How should I go about debugging this issue?
Regards
Simba