mc13783-adc.rst 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. Kernel driver mc13783-adc
  2. =========================
  3. Supported chips:
  4. * Freescale MC13783
  5. Prefix: 'mc13783'
  6. Datasheet: https://www.nxp.com/docs/en/data-sheet/MC13783.pdf
  7. * Freescale MC13892
  8. Prefix: 'mc13892'
  9. Datasheet: https://www.nxp.com/docs/en/data-sheet/MC13892.pdf
  10. Authors:
  11. - Sascha Hauer <s.hauer@pengutronix.de>
  12. - Luotao Fu <l.fu@pengutronix.de>
  13. Description
  14. -----------
  15. The Freescale MC13783 and MC13892 are Power Management and Audio Circuits.
  16. Among other things they contain a 10-bit A/D converter. The converter has 16
  17. (MC13783) resp. 12 (MC13892) channels which can be used in different modes. The
  18. A/D converter has a resolution of 2.25mV.
  19. Some channels can be used as General Purpose inputs or in a dedicated mode with
  20. a chip internal scaling applied .
  21. Currently the driver only supports the Application Supply channel (BP / BPSNS),
  22. the General Purpose inputs and touchscreen.
  23. See the following tables for the meaning of the different channels and their
  24. chip internal scaling:
  25. - MC13783:
  26. ======= =============================================== =============== =======
  27. Channel Signal Input Range Scaling
  28. ======= =============================================== =============== =======
  29. 0 Battery Voltage (BATT) 2.50 - 4.65V -2.40V
  30. 1 Battery Current (BATT - BATTISNS) -50 - 50 mV x20
  31. 2 Application Supply (BP) 2.50 - 4.65V -2.40V
  32. 3 Charger Voltage (CHRGRAW) 0 - 10V / /5
  33. 0 - 20V /10
  34. 4 Charger Current (CHRGISNSP-CHRGISNSN) -0.25 - 0.25V x4
  35. 5 General Purpose ADIN5 / Battery Pack Thermistor 0 - 2.30V No
  36. 6 General Purpose ADIN6 / Backup Voltage (LICELL) 0 - 2.30V / No /
  37. 1.50 - 3.50V -1.20V
  38. 7 General Purpose ADIN7 / UID / Die Temperature 0 - 2.30V / No /
  39. 0 - 2.55V / x0.9 / No
  40. 8 General Purpose ADIN8 0 - 2.30V No
  41. 9 General Purpose ADIN9 0 - 2.30V No
  42. 10 General Purpose ADIN10 0 - 2.30V No
  43. 11 General Purpose ADIN11 0 - 2.30V No
  44. 12 General Purpose TSX1 / Touchscreen X-plate 1 0 - 2.30V No
  45. 13 General Purpose TSX2 / Touchscreen X-plate 2 0 - 2.30V No
  46. 14 General Purpose TSY1 / Touchscreen Y-plate 1 0 - 2.30V No
  47. 15 General Purpose TSY2 / Touchscreen Y-plate 2 0 - 2.30V No
  48. ======= =============================================== =============== =======
  49. - MC13892:
  50. ======= =============================================== =============== =======
  51. Channel Signal Input Range Scaling
  52. ======= =============================================== =============== =======
  53. 0 Battery Voltage (BATT) 0 - 4.8V /2
  54. 1 Battery Current (BATT - BATTISNSCC) -60 - 60 mV x20
  55. 2 Application Supply (BPSNS) 0 - 4.8V /2
  56. 3 Charger Voltage (CHRGRAW) 0 - 12V / /5
  57. 0 - 20V /10
  58. 4 Charger Current (CHRGISNS-BPSNS) / -0.3 - 0.3V / x4 /
  59. Touchscreen X-plate 1 0 - 2.4V No
  60. 5 General Purpose ADIN5 / Battery Pack Thermistor 0 - 2.4V No
  61. 6 General Purpose ADIN6 / Backup Voltage (LICELL) 0 - 2.4V / No
  62. Backup Voltage (LICELL) 0 - 3.6V x2/3
  63. 7 General Purpose ADIN7 / UID / Die Temperature 0 - 2.4V / No /
  64. 0 - 4.8V /2
  65. 12 General Purpose TSX1 / Touchscreen X-plate 1 0 - 2.4V No
  66. 13 General Purpose TSX2 / Touchscreen X-plate 2 0 - 2.4V No
  67. 14 General Purpose TSY1 / Touchscreen Y-plate 1 0 - 2.4V No
  68. 15 General Purpose TSY2 / Touchscreen Y-plate 2 0 - 2.4V No
  69. ======= =============================================== =============== =======