da9055.rst 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. Kernel driver da9055
  2. ====================
  3. Supported chips:
  4. * Dialog Semiconductors DA9055 PMIC
  5. Prefix: 'da9055'
  6. Datasheet: Datasheet is not publicly available.
  7. Authors: David Dajun Chen <dchen@diasemi.com>
  8. Description
  9. -----------
  10. The DA9055 provides an Analogue to Digital Converter (ADC) with 10 bits
  11. resolution and track and hold circuitry combined with an analogue input
  12. multiplexer. The analogue input multiplexer will allow conversion of up to 5
  13. different inputs. The track and hold circuit ensures stable input voltages at
  14. the input of the ADC during the conversion.
  15. The ADC is used to measure the following inputs:
  16. - Channel 0: VDDOUT - measurement of the system voltage
  17. - Channel 1: ADC_IN1 - high impedance input (0 - 2.5V)
  18. - Channel 2: ADC_IN2 - high impedance input (0 - 2.5V)
  19. - Channel 3: ADC_IN3 - high impedance input (0 - 2.5V)
  20. - Channel 4: Internal Tjunc. - sense (internal temp. sensor)
  21. By using sysfs attributes we can measure the system voltage VDDOUT,
  22. chip junction temperature and auxiliary channels voltages.
  23. Voltage Monitoring
  24. ------------------
  25. Voltages are sampled in a AUTO mode it can be manually sampled too and results
  26. are stored in a 10 bit ADC.
  27. The system voltage is calculated as:
  28. Milli volt = ((ADC value * 1000) / 85) + 2500
  29. The voltages on ADC channels 1, 2 and 3 are calculated as:
  30. Milli volt = (ADC value * 1000) / 102
  31. Temperature Monitoring
  32. ----------------------
  33. Temperatures are sampled by a 10 bit ADC. Junction temperatures
  34. are monitored by the ADC channels.
  35. The junction temperature is calculated:
  36. Degrees celsius = -0.4084 * (ADC_RES - T_OFFSET) + 307.6332
  37. The junction temperature attribute is supported by the driver.