vf610_adc modified to support adc2 and ch list

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

vf610_adc modified to support adc2 and ch list

415 Views
juhapanula-ontt
Contributor I

Here is my mods for vf610_adc.c. It sure needed some fixing.

Now it can use both adc1 and adc2 if available w iio/trigger/buffer stuff.

Maybe NXP will publish later better docs about adc2 or a new fixed RM doc....

Also w dts can be set ch list of used adc channels. Idea got from digi.

ch number 16 and 17 are special, temp and timestamp.

No need to touch source code.

isr can be better code, maybe usage of wait_for_completion_interruptible_timeout or something else 

but it just waits there to have all ch values.

Do not use internal tsc if adc2 is used for iio!

Labels (1)
0 Kudos
0 Replies