Keerthy | 0070bdd | 2011-03-01 19:12:36 +0530 | [diff] [blame] | 1 | Kernel driver twl4030-madc |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 2 | ========================== |
Keerthy | 0070bdd | 2011-03-01 19:12:36 +0530 | [diff] [blame] | 3 | |
| 4 | Supported chips: |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 5 | |
Keerthy | 0070bdd | 2011-03-01 19:12:36 +0530 | [diff] [blame] | 6 | * Texas Instruments TWL4030 |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 7 | |
Keerthy | 0070bdd | 2011-03-01 19:12:36 +0530 | [diff] [blame] | 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 | |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 24 | ======= ========================================================== |
Keerthy | 0070bdd | 2011-03-01 19:12:36 +0530 | [diff] [blame] | 25 | Channel Signal |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 26 | ======= ========================================================== |
Keerthy | 0070bdd | 2011-03-01 19:12:36 +0530 | [diff] [blame] | 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 |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 43 | ======= ========================================================== |
Keerthy | 0070bdd | 2011-03-01 19:12:36 +0530 | [diff] [blame] | 44 | |
| 45 | |
| 46 | The Sysfs nodes will represent the voltage in the units of mV, |
| 47 | the temperature channel shows the converted temperature in |
Peter Meerwald | 4d7e47b | 2012-10-10 15:25:56 +0200 | [diff] [blame] | 48 | degree Celsius. The Battery charging current channel represents |
Keerthy | 0070bdd | 2011-03-01 19:12:36 +0530 | [diff] [blame] | 49 | battery charging current in mA. |