xref: /OK3568_Linux_fs/kernel/Documentation/hwmon/powr1220.rst (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunKernel driver powr1220
2*4882a593Smuzhiyun======================
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunSupported chips:
5*4882a593Smuzhiyun
6*4882a593Smuzhiyun  * Lattice POWR1220AT8
7*4882a593Smuzhiyun
8*4882a593Smuzhiyun    Prefix: 'powr1220'
9*4882a593Smuzhiyun
10*4882a593Smuzhiyun    Addresses scanned: none
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun    Datasheet: Publicly available at the Lattice website
13*4882a593Smuzhiyun
14*4882a593Smuzhiyun	       http://www.latticesemi.com/
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunAuthor: Scott Kanowitz <scott.kanowitz@gmail.com>
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunDescription
19*4882a593Smuzhiyun-----------
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunThis driver supports the Lattice POWR1220AT8 chip. The POWR1220
22*4882a593Smuzhiyunincludes voltage monitoring for 14 inputs as well as trim settings
23*4882a593Smuzhiyunfor output voltages and GPIOs. This driver implements the voltage
24*4882a593Smuzhiyunmonitoring portion of the chip.
25*4882a593Smuzhiyun
26*4882a593SmuzhiyunVoltages are sampled by a 12-bit ADC with a step size of 2 mV.
27*4882a593SmuzhiyunAn in-line attenuator allows measurements from 0 to 6 V. The
28*4882a593Smuzhiyunattenuator is enabled or disabled depending on the setting of the
29*4882a593Smuzhiyuninput's max value. The driver will enable the attenuator for any
30*4882a593Smuzhiyunvalue over the low measurement range maximum of 2 V.
31*4882a593Smuzhiyun
32*4882a593SmuzhiyunThe input naming convention is as follows:
33*4882a593Smuzhiyun
34*4882a593Smuzhiyun============== ========
35*4882a593Smuzhiyundriver name    pin name
36*4882a593Smuzhiyun============== ========
37*4882a593Smuzhiyunin0            VMON1
38*4882a593Smuzhiyunin1            VMON2
39*4882a593Smuzhiyunin2            VMON3
40*4882a593Smuzhiyunin2            VMON4
41*4882a593Smuzhiyunin4            VMON5
42*4882a593Smuzhiyunin5            VMON6
43*4882a593Smuzhiyunin6            VMON7
44*4882a593Smuzhiyunin7            VMON8
45*4882a593Smuzhiyunin8            VMON9
46*4882a593Smuzhiyunin9            VMON10
47*4882a593Smuzhiyunin10           VMON11
48*4882a593Smuzhiyunin11           VMON12
49*4882a593Smuzhiyunin12           VCCA
50*4882a593Smuzhiyunin13           VCCINP
51*4882a593Smuzhiyun============== ========
52*4882a593Smuzhiyun
53*4882a593SmuzhiyunThe ADC readings are updated on request with a minimum period of 1s.
54