Other Parts Discussed in Thread: WL1837
Tool/software: Linux
Hi All,
I am working on bringing up ADC1 on the AM4378 in linux kernel version 4.1.6. I've used bits and pieces of code provided in threads such as e2e.ti.com/support/arm/sitara_arm/f/791/p/407934/1486278 , and modified errors in these uploaded files accordingly.
On bootup I am seeing iio :device 0 and iio: device1 within /sys/bus/iio/devices/. Doing a cat of any voltages within device 0 returns expected values. Doing a cat of any voltage within device 1, however, is not resulting in expected values. For voltages in_voltage0-5, the value returned is always 2047, which I am assuming is the saturated value (despite the datasheet stating the saturated value for single-ended mode being 2^12-1). I've confirmed that single ended is selected (bit 25 of the idleconfig register is set low).
in_voltage6_raw and in_voltage7_raw float ~1536 and ~1792 respectively. The voltages on these pins are 0.021 and 0.091 respectively and my board is using a reference voltage of 1.8V, so these readings also seem incorrect.
Any help in understanding and debugging this strange behavior would be very much appreciated.
Kind regards