cancel
Showing results for 
Search instead for 
Did you mean: 

STLinux / MP157F-DK, iio channel naming conventions for ADC driver

Ozone
Lead II

Being relatively new to Yocto, I struggle a bit with some issues.

I intend to use ADC channels in my (user space) applications, but the channel names seem confusing.
Listing /sys/bus/iio on a live system, I can see two ADC devices, device_0 and device_1 - which I presume to correspond to ADC1 and ADC2.
The device 0 contains channels voltage_18_raw and voltage_19_raw, and device 1 contains channels voltage_13_input, voltage_14_rawvoltage_18_raw and voltage_19_raw.

In general, do those numbers <nn> refer to  ADC1_INP<nn> / ADC2_INP<nn> in the datasheet ?

The problem here is, ADC1_INP18 and ADC2_INP18 refer to pin PA4, and ADC1_INP19 and ADC2_INP19 refer to PA5. Which would not be a problem as such , but according to the board schematics, both pins are connected to USB_PWR_CC1 and USB_PWR_CC2, respectively.

OTOH, there are 6 pins of the Arduino connector CN17 marked as analog inputs in the schematics of the DK, but the channel numbers listed there do not match:

Ozone_0-1731313986807.png

Can someone shed a light on this issue ?
Thank you !

 

0 REPLIES 0