Back to home page

OSCL-LXR

 
 

    


0001 Kernel driver powr1220
0002 ======================
0003 
0004 Supported chips:
0005 
0006   * Lattice POWR1220AT8
0007 
0008     Prefix: 'powr1220'
0009 
0010     Addresses scanned: none
0011 
0012     Datasheet: Publicly available at the Lattice website
0013 
0014                http://www.latticesemi.com/
0015 
0016 Author: Scott Kanowitz <scott.kanowitz@gmail.com>
0017 
0018 Description
0019 -----------
0020 
0021 This driver supports the Lattice POWR1220AT8 chip. The POWR1220
0022 includes voltage monitoring for 14 inputs as well as trim settings
0023 for output voltages and GPIOs. This driver implements the voltage
0024 monitoring portion of the chip.
0025 
0026 Voltages are sampled by a 12-bit ADC with a step size of 2 mV.
0027 An in-line attenuator allows measurements from 0 to 6 V. The
0028 attenuator is enabled or disabled depending on the setting of the
0029 input's max value. The driver will enable the attenuator for any
0030 value over the low measurement range maximum of 2 V.
0031 
0032 The input naming convention is as follows:
0033 
0034 ============== ========
0035 driver name    pin name
0036 ============== ========
0037 in0            VMON1
0038 in1            VMON2
0039 in2            VMON3
0040 in2            VMON4
0041 in4            VMON5
0042 in5            VMON6
0043 in6            VMON7
0044 in7            VMON8
0045 in8            VMON9
0046 in9            VMON10
0047 in10           VMON11
0048 in11           VMON12
0049 in12           VCCA
0050 in13           VCCINP
0051 ============== ========
0052 
0053 The ADC readings are updated on request with a minimum period of 1s.