0001 Kernel driver mc13783-adc
0002 =========================
0003
0004 Supported chips:
0005
0006 * Freescale MC13783
0007
0008 Prefix: 'mc13783'
0009
0010 Datasheet: https://www.nxp.com/docs/en/data-sheet/MC13783.pdf
0011
0012 * Freescale MC13892
0013
0014 Prefix: 'mc13892'
0015
0016 Datasheet: https://www.nxp.com/docs/en/data-sheet/MC13892.pdf
0017
0018
0019
0020 Authors:
0021
0022 - Sascha Hauer <s.hauer@pengutronix.de>
0023 - Luotao Fu <l.fu@pengutronix.de>
0024
0025 Description
0026 -----------
0027
0028 The Freescale MC13783 and MC13892 are Power Management and Audio Circuits.
0029 Among other things they contain a 10-bit A/D converter. The converter has 16
0030 (MC13783) resp. 12 (MC13892) channels which can be used in different modes. The
0031 A/D converter has a resolution of 2.25mV.
0032
0033 Some channels can be used as General Purpose inputs or in a dedicated mode with
0034 a chip internal scaling applied .
0035
0036 Currently the driver only supports the Application Supply channel (BP / BPSNS),
0037 the General Purpose inputs and touchscreen.
0038
0039 See the following tables for the meaning of the different channels and their
0040 chip internal scaling:
0041
0042 - MC13783:
0043
0044 ======= =============================================== =============== =======
0045 Channel Signal Input Range Scaling
0046 ======= =============================================== =============== =======
0047 0 Battery Voltage (BATT) 2.50 - 4.65V -2.40V
0048 1 Battery Current (BATT - BATTISNS) -50 - 50 mV x20
0049 2 Application Supply (BP) 2.50 - 4.65V -2.40V
0050 3 Charger Voltage (CHRGRAW) 0 - 10V / /5
0051 0 - 20V /10
0052 4 Charger Current (CHRGISNSP-CHRGISNSN) -0.25 - 0.25V x4
0053 5 General Purpose ADIN5 / Battery Pack Thermistor 0 - 2.30V No
0054 6 General Purpose ADIN6 / Backup Voltage (LICELL) 0 - 2.30V / No /
0055 1.50 - 3.50V -1.20V
0056 7 General Purpose ADIN7 / UID / Die Temperature 0 - 2.30V / No /
0057 0 - 2.55V / x0.9 / No
0058 8 General Purpose ADIN8 0 - 2.30V No
0059 9 General Purpose ADIN9 0 - 2.30V No
0060 10 General Purpose ADIN10 0 - 2.30V No
0061 11 General Purpose ADIN11 0 - 2.30V No
0062 12 General Purpose TSX1 / Touchscreen X-plate 1 0 - 2.30V No
0063 13 General Purpose TSX2 / Touchscreen X-plate 2 0 - 2.30V No
0064 14 General Purpose TSY1 / Touchscreen Y-plate 1 0 - 2.30V No
0065 15 General Purpose TSY2 / Touchscreen Y-plate 2 0 - 2.30V No
0066 ======= =============================================== =============== =======
0067
0068 - MC13892:
0069
0070 ======= =============================================== =============== =======
0071 Channel Signal Input Range Scaling
0072 ======= =============================================== =============== =======
0073 0 Battery Voltage (BATT) 0 - 4.8V /2
0074 1 Battery Current (BATT - BATTISNSCC) -60 - 60 mV x20
0075 2 Application Supply (BPSNS) 0 - 4.8V /2
0076 3 Charger Voltage (CHRGRAW) 0 - 12V / /5
0077 0 - 20V /10
0078 4 Charger Current (CHRGISNS-BPSNS) / -0.3 - 0.3V / x4 /
0079 Touchscreen X-plate 1 0 - 2.4V No
0080 5 General Purpose ADIN5 / Battery Pack Thermistor 0 - 2.4V No
0081 6 General Purpose ADIN6 / Backup Voltage (LICELL) 0 - 2.4V / No
0082 Backup Voltage (LICELL) 0 - 3.6V x2/3
0083 7 General Purpose ADIN7 / UID / Die Temperature 0 - 2.4V / No /
0084 0 - 4.8V /2
0085 12 General Purpose TSX1 / Touchscreen X-plate 1 0 - 2.4V No
0086 13 General Purpose TSX2 / Touchscreen X-plate 2 0 - 2.4V No
0087 14 General Purpose TSY1 / Touchscreen Y-plate 1 0 - 2.4V No
0088 15 General Purpose TSY2 / Touchscreen Y-plate 2 0 - 2.4V No
0089 ======= =============================================== =============== =======