Kernel driver mc13783-adc

Supported chips:

Authors:

Description

The Freescale MC13783 and MC13892 are Power Management and Audio Circuits.Among other things they contain a 10-bit A/D converter. The converter has 16(MC13783) resp. 12 (MC13892) channels which can be used in different modes. TheA/D converter has a resolution of 2.25mV.

Some channels can be used as General Purpose inputs or in a dedicated mode witha chip internal scaling applied .

Currently the driver only supports the Application Supply channel (BP / BPSNS),the General Purpose inputs and touchscreen.

See the following tables for the meaning of the different channels and theirchip internal scaling:

  • MC13783:
ChannelSignalInput RangeScaling
0Battery Voltage (BATT)2.50 - 4.65V-2.40V
1Battery Current (BATT - BATTISNS)-50 - 50 mVx20
2Application Supply (BP)2.50 - 4.65V-2.40V
3Charger Voltage (CHRGRAW)0 - 10V /0 - 20V/5/10
4Charger Current (CHRGISNSP-CHRGISNSN)-0.25 - 0.25Vx4
5General Purpose ADIN5 / Battery Pack Thermistor0 - 2.30VNo
6General Purpose ADIN6 / Backup Voltage (LICELL)0 - 2.30V /1.50 - 3.50VNo /-1.20V
7General Purpose ADIN7 / UID / Die Temperature0 - 2.30V /0 - 2.55V /No /x0.9 / No
8General Purpose ADIN80 - 2.30VNo
9General Purpose ADIN90 - 2.30VNo
10General Purpose ADIN100 - 2.30VNo
11General Purpose ADIN110 - 2.30VNo
12General Purpose TSX1 / Touchscreen X-plate 10 - 2.30VNo
13General Purpose TSX2 / Touchscreen X-plate 20 - 2.30VNo
14General Purpose TSY1 / Touchscreen Y-plate 10 - 2.30VNo
15General Purpose TSY2 / Touchscreen Y-plate 20 - 2.30VNo
  • MC13892:
ChannelSignalInput RangeScaling
0Battery Voltage (BATT)0 - 4.8V/2
1Battery Current (BATT - BATTISNSCC)-60 - 60 mVx20
2Application Supply (BPSNS)0 - 4.8V/2
3Charger Voltage (CHRGRAW)0 - 12V /0 - 20V/5/10
4Charger Current (CHRGISNS-BPSNS) /Touchscreen X-plate 1-0.3 - 0.3V /0 - 2.4Vx4 /No
5General Purpose ADIN5 / Battery Pack Thermistor0 - 2.4VNo
6General Purpose ADIN6 / Backup Voltage (LICELL)Backup Voltage (LICELL)0 - 2.4V /0 - 3.6VNox2/3
7General Purpose ADIN7 / UID / Die Temperature0 - 2.4V /0 - 4.8VNo //2
12General Purpose TSX1 / Touchscreen X-plate 10 - 2.4VNo
13General Purpose TSX2 / Touchscreen X-plate 20 - 2.4VNo
14General Purpose TSY1 / Touchscreen Y-plate 10 - 2.4VNo
15General Purpose TSY2 / Touchscreen Y-plate 20 - 2.4VNo