Commit | Line | Data |
---|---|---|
0070bddf | 1 | Kernel driver twl4030-madc |
b04f2f7d | 2 | ========================== |
0070bddf K |
3 | |
4 | Supported chips: | |
b04f2f7d | 5 | |
0070bddf | 6 | * Texas Instruments TWL4030 |
b04f2f7d | 7 | |
0070bddf K |
8 | Prefix: 'twl4030-madc' |
9 | ||
10 | ||
11 | Authors: | |
12 | J Keerthy <j-keerthy@ti.com> | |
13 | ||
14 | Description | |
15 | ----------- | |
16 | ||
17 | The Texas Instruments TWL4030 is a Power Management and Audio Circuit. Among | |
18 | other things it contains a 10-bit A/D converter MADC. The converter has 16 | |
19 | channels which can be used in different modes. | |
20 | ||
21 | ||
22 | See this table for the meaning of the different channels | |
23 | ||
b04f2f7d | 24 | ======= ========================================================== |
0070bddf | 25 | Channel Signal |
b04f2f7d | 26 | ======= ========================================================== |
0070bddf K |
27 | 0 Battery type(BTYPE) |
28 | 1 BCI: Battery temperature (BTEMP) | |
29 | 2 GP analog input | |
30 | 3 GP analog input | |
31 | 4 GP analog input | |
32 | 5 GP analog input | |
33 | 6 GP analog input | |
34 | 7 GP analog input | |
35 | 8 BCI: VBUS voltage(VBUS) | |
36 | 9 Backup Battery voltage (VBKP) | |
37 | 10 BCI: Battery charger current (ICHG) | |
38 | 11 BCI: Battery charger voltage (VCHG) | |
39 | 12 BCI: Main battery voltage (VBAT) | |
40 | 13 Reserved | |
41 | 14 Reserved | |
42 | 15 VRUSB Supply/Speaker left/Speaker right polarization level | |
b04f2f7d | 43 | ======= ========================================================== |
0070bddf K |
44 | |
45 | ||
46 | The Sysfs nodes will represent the voltage in the units of mV, | |
47 | the temperature channel shows the converted temperature in | |
4d7e47bc | 48 | degree Celsius. The Battery charging current channel represents |
0070bddf | 49 | battery charging current in mA. |