ep93xx_adc.rst 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ==============================
  2. Cirrus Logic EP93xx ADC driver
  3. ==============================
  4. 1. Overview
  5. ===========
  6. The driver is intended to work on both low-end (EP9301, EP9302) devices with
  7. 5-channel ADC and high-end (EP9307, EP9312, EP9315) devices with 10-channel
  8. touchscreen/ADC module.
  9. 2. Channel numbering
  10. ====================
  11. Numbering scheme for channels 0..4 is defined in EP9301 and EP9302 datasheets.
  12. EP9307, EP9312 and EP9312 have 3 channels more (total 8), but the numbering is
  13. not defined. So the last three are numbered randomly, let's say.
  14. Assuming ep93xx_adc is IIO device0, you'd find the following entries under
  15. /sys/bus/iio/devices/iio:device0/:
  16. +-----------------+---------------+
  17. | sysfs entry | ball/pin name |
  18. +=================+===============+
  19. | in_voltage0_raw | YM |
  20. +-----------------+---------------+
  21. | in_voltage1_raw | SXP |
  22. +-----------------+---------------+
  23. | in_voltage2_raw | SXM |
  24. +-----------------+---------------+
  25. | in_voltage3_raw | SYP |
  26. +-----------------+---------------+
  27. | in_voltage4_raw | SYM |
  28. +-----------------+---------------+
  29. | in_voltage5_raw | XP |
  30. +-----------------+---------------+
  31. | in_voltage6_raw | XM |
  32. +-----------------+---------------+
  33. | in_voltage7_raw | YP |
  34. +-----------------+---------------+