blob: a7fc258da0a8a66a8b1f66fe4140a0ab9af0cc34 [file] [log] [blame]
Scott Kanowitzf4ff4152014-06-12 16:22:15 -04001Kernel driver powr1220
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -03002======================
Scott Kanowitzf4ff4152014-06-12 16:22:15 -04003
4Supported chips:
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -03005
Scott Kanowitzf4ff4152014-06-12 16:22:15 -04006 * Lattice POWR1220AT8
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -03007
Scott Kanowitzf4ff4152014-06-12 16:22:15 -04008 Prefix: 'powr1220'
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -03009
Scott Kanowitzf4ff4152014-06-12 16:22:15 -040010 Addresses scanned: none
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -030011
Scott Kanowitzf4ff4152014-06-12 16:22:15 -040012 Datasheet: Publicly available at the Lattice website
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -030013
14 http://www.latticesemi.com/
Scott Kanowitzf4ff4152014-06-12 16:22:15 -040015
16Author: Scott Kanowitz <scott.kanowitz@gmail.com>
17
18Description
19-----------
20
21This driver supports the Lattice POWR1220AT8 chip. The POWR1220
22includes voltage monitoring for 14 inputs as well as trim settings
23for output voltages and GPIOs. This driver implements the voltage
24monitoring portion of the chip.
25
26Voltages are sampled by a 12-bit ADC with a step size of 2 mV.
27An in-line attenuator allows measurements from 0 to 6 V. The
28attenuator is enabled or disabled depending on the setting of the
29input's max value. The driver will enable the attenuator for any
30value over the low measurement range maximum of 2 V.
31
32The input naming convention is as follows:
33
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -030034============== ========
Scott Kanowitzf4ff4152014-06-12 16:22:15 -040035driver name pin name
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -030036============== ========
Scott Kanowitzf4ff4152014-06-12 16:22:15 -040037in0 VMON1
38in1 VMON2
39in2 VMON3
40in2 VMON4
41in4 VMON5
42in5 VMON6
43in6 VMON7
44in7 VMON8
45in8 VMON9
46in9 VMON10
47in10 VMON11
48in11 VMON12
49in12 VCCA
50in13 VCCINP
Mauro Carvalho Chehabb04f2f72019-04-17 06:46:28 -030051============== ========
Scott Kanowitzf4ff4152014-06-12 16:22:15 -040052
53The ADC readings are updated on request with a minimum period of 1s.