xref: /OK3568_Linux_fs/kernel/Documentation/hwmon/twl4030-madc-hwmon.rst (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunKernel driver twl4030-madc
2*4882a593Smuzhiyun==========================
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunSupported chips:
5*4882a593Smuzhiyun
6*4882a593Smuzhiyun	* Texas Instruments TWL4030
7*4882a593Smuzhiyun
8*4882a593Smuzhiyun	Prefix: 'twl4030-madc'
9*4882a593Smuzhiyun
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunAuthors:
12*4882a593Smuzhiyun	J Keerthy <j-keerthy@ti.com>
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunDescription
15*4882a593Smuzhiyun-----------
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunThe Texas Instruments TWL4030 is a Power Management and Audio Circuit. Among
18*4882a593Smuzhiyunother things it contains a 10-bit A/D converter MADC. The converter has 16
19*4882a593Smuzhiyunchannels which can be used in different modes.
20*4882a593Smuzhiyun
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunSee this table for the meaning of the different channels
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun======= ==========================================================
25*4882a593SmuzhiyunChannel Signal
26*4882a593Smuzhiyun======= ==========================================================
27*4882a593Smuzhiyun0	Battery type(BTYPE)
28*4882a593Smuzhiyun1	BCI: Battery temperature (BTEMP)
29*4882a593Smuzhiyun2	GP analog input
30*4882a593Smuzhiyun3	GP analog input
31*4882a593Smuzhiyun4	GP analog input
32*4882a593Smuzhiyun5	GP analog input
33*4882a593Smuzhiyun6	GP analog input
34*4882a593Smuzhiyun7	GP analog input
35*4882a593Smuzhiyun8	BCI: VBUS voltage(VBUS)
36*4882a593Smuzhiyun9	Backup Battery voltage (VBKP)
37*4882a593Smuzhiyun10	BCI: Battery charger current (ICHG)
38*4882a593Smuzhiyun11	BCI: Battery charger voltage (VCHG)
39*4882a593Smuzhiyun12	BCI: Main battery voltage (VBAT)
40*4882a593Smuzhiyun13	Reserved
41*4882a593Smuzhiyun14	Reserved
42*4882a593Smuzhiyun15	VRUSB Supply/Speaker left/Speaker right polarization level
43*4882a593Smuzhiyun======= ==========================================================
44*4882a593Smuzhiyun
45*4882a593Smuzhiyun
46*4882a593SmuzhiyunThe Sysfs nodes will represent the voltage in the units of mV,
47*4882a593Smuzhiyunthe temperature channel shows the converted temperature in
48*4882a593Smuzhiyundegree Celsius. The Battery charging current channel represents
49*4882a593Smuzhiyunbattery charging current in mA.
50