## 1. Motivation I asked a problem in the [PI forum](https://forums.raspberrypi.com/viewtopic.php?t=357661&e=1&view=unread#unread) ## 2. If install driver and device tree successfully * ![](https://i.imgur.com/2swKc08.png) * ![](https://i.imgur.com/4FxZ1dA.png) * Refer to [here](https://hackmd.io/2XgaRQTdSCKKL-SIppsFmw) ## 3. DT & Drive code for ADS7950 in Linux kernel ### 3.1 Example for ADS7950 Device Tree(DT) * Refer to [here](https://android.googlesource.com/kernel/common/+/07e6124a1a46/Documentation/devicetree/bindings/iio/adc/ti-ads7950.txt) * Refer to [here](https://www.kernel.org/doc/Documentation/devicetree/bindings/iio/adc/ti%2Cads7950.yaml) * [Device Tree Overlay Notes](https://www.kernel.org/doc/Documentation/devicetree/overlay-notes.txt) ### 3.2 ADS7950.c [code](https://github.com/torvalds/linux/blob/master/drivers/iio/adc/ti-ads7950.c) ### 3.3 *Config* for kernel [here](https://www.kernelconfig.io/config_ti_ads7950) ## 4. Introducing Industral IO(IIO) * [Industrial I/O and You: Nonsense Hacks!](https://elinux.org/images/1/14/Nonsense_Hacks.pdf) ## 5. Trigger of IIO ## 6. How to compile kernel and ads7950 driver Refer to [here](https://gist.github.com/curly-wei/00902b8d493f3cca377afbe38d403099) ## 7. Load dynamic Linux modules when boot * Refer to [here](https://www.freedesktop.org/software/systemd/man/latest/modules-load.d.html) * Check ![](https://i.imgur.com/F3ijDZQ.png)