powr1220 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. Kernel driver powr1220
  2. ==================
  3. Supported chips:
  4. * Lattice POWR1220AT8
  5. Prefix: 'powr1220'
  6. Addresses scanned: none
  7. Datasheet: Publicly available at the Lattice website
  8. http://www.latticesemi.com/
  9. Author: Scott Kanowitz <scott.kanowitz@gmail.com>
  10. Description
  11. -----------
  12. This driver supports the Lattice POWR1220AT8 chip. The POWR1220
  13. includes voltage monitoring for 14 inputs as well as trim settings
  14. for output voltages and GPIOs. This driver implements the voltage
  15. monitoring portion of the chip.
  16. Voltages are sampled by a 12-bit ADC with a step size of 2 mV.
  17. An in-line attenuator allows measurements from 0 to 6 V. The
  18. attenuator is enabled or disabled depending on the setting of the
  19. input's max value. The driver will enable the attenuator for any
  20. value over the low measurement range maximum of 2 V.
  21. The input naming convention is as follows:
  22. driver name pin name
  23. in0 VMON1
  24. in1 VMON2
  25. in2 VMON3
  26. in2 VMON4
  27. in4 VMON5
  28. in5 VMON6
  29. in6 VMON7
  30. in7 VMON8
  31. in8 VMON9
  32. in9 VMON10
  33. in10 VMON11
  34. in11 VMON12
  35. in12 VCCA
  36. in13 VCCINP
  37. The ADC readings are updated on request with a minimum period of 1s.