Other Parts Discussed in Thread: ADC108S102,
I need a driver for linux kernel 4.9.
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.
I need a driver for linux kernel 4.9.
Hello,
I'm not sure we're going to have exactly what you're looking for and won't claim to be Linux experts, but we'll provide what we have. You'll find some drivers for our TI ADCs in the IIO/ADC git repository which I've linked below.
We don't have the ADC108S022, but do have the ADC108S102.C file which is a higher speed variant of the ADC108S022 and should work for your project. Specific commands not included in the driver can be accomplished using dedicated SPI transactions.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/iio/adc/
-rw-r--r-- | ti-adc081c.c | 5676 | logstatsplain |
-rw-r--r-- | ti-adc0832.c | 8448 | logstatsplain |
-rw-r--r-- | ti-adc084s021.c | 7320 | logstatsplain |
-rw-r--r-- | ti-adc108s102.c | 8542 | logstatsplain |
-rw-r--r-- | ti-adc12138.c | 12855 | logstatsplain |
-rw-r--r-- | ti-adc128s052.c | 5411 | logstatsplain |
-rw-r--r-- | ti-adc161s626.c | 5832 | logstatsplain |
-rw-r--r-- | ti-ads1015.c | 29057 | logstatsplain |
-rw-r--r-- | ti-ads124s08.c | 9270 | logstatsplain |
-rw-r--r-- | ti-ads7950.c | 19466 | logstatsplain |
-rw-r--r-- | ti-ads8344.c | 4889 | logstatsplain |
-rw-r--r-- | ti-ads8688.c | 12802 | logstatsplain |
-rw-r--r-- | ti-tlc4541.c | 6716 | logstatsplain |
Occasionally we'll have tool folders on TI.com to promote the drivers, but not always.
https://www.ti.com/tool/ADC128S052SW-LINUX
Customer have managed to integrate the driver for TI ADC108S102 given in below git repo:
But while trying to set up for trigger buffer it fails:
root@fusion:~# echo 100 > /sys/bus/iio/devices/iio:device0/buffer/length
root@fusion:~# echo 1 > /sys/bus/iio/devices/iio:device0/buffer/enable
sh: write error: Invalid argument
root@fusion:~# echo 0 > /sys/bus/iio/devices/iio:device0/buffer/enable
root@fusion:~#
The linux kernel version : Linux 4.9.88-ga-fusion+g6507266728a7 armv7l
Which linux version this driver was tested? Also, customer need the start/stop capture functionality of ADC driver. How to add trigger functionality in the driver?
Hi Prahlad,
Our primary expertise in the team is on precision ADCs and we won't claim to be Linux experts. So, while we know where to find available drivers and can answer basic questions, I am not sure what's causing the results of the driver integration the customer is sharing. Is it possible to take a screen grab of the resulting SPI communications to see if we can determine what's going on with the communication at the hardware level?
Regarding testing and development, you'll notice that this driver was not created by TI so it's not possible to determine when or exactly how it was tested.
the ADC108S102 driver does not deassert the CS after the transaction ends rather the CS line remains low.
this is another issue