Kernel driver powr1220

Supported chips:

  • Lattice POWR1220AT8

    Prefix: ‘powr1220’

    Addresses scanned: none

    Datasheet: Publicly available at the Lattice website

Author: Scott Kanowitz <scott.kanowitz@gmail.com>

Description

This driver supports the Lattice POWR1220AT8 chip. The POWR1220includes voltage monitoring for 14 inputs as well as trim settingsfor output voltages and GPIOs. This driver implements the voltagemonitoring portion of the chip.

Voltages are sampled by a 12-bit ADC with a step size of 2 mV.An in-line attenuator allows measurements from 0 to 6 V. Theattenuator is enabled or disabled depending on the setting of theinput’s max value. The driver will enable the attenuator for anyvalue over the low measurement range maximum of 2 V.

The input naming convention is as follows:

driver namepin name
in0VMON1
in1VMON2
in2VMON3
in2VMON4
in4VMON5
in5VMON6
in6VMON7
in7VMON8
in8VMON9
in9VMON10
in10VMON11
in11VMON12
in12VCCA
in13VCCINP

The ADC readings are updated on request with a minimum period of 1s.