powr1220.rst 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. ============== ========
  23. driver name pin name
  24. ============== ========
  25. in0 VMON1
  26. in1 VMON2
  27. in2 VMON3
  28. in2 VMON4
  29. in4 VMON5
  30. in5 VMON6
  31. in6 VMON7
  32. in7 VMON8
  33. in8 VMON9
  34. in9 VMON10
  35. in10 VMON11
  36. in11 VMON12
  37. in12 VCCA
  38. in13 VCCINP
  39. ============== ========
  40. The ADC readings are updated on request with a minimum period of 1s.