path: root/Documentation
diff options
authorKeerthy <j-keerthy@ti.com>2011-03-01 19:12:36 +0530
committerNicolas Pitre <nicolas.pitre@linaro.org>2011-03-25 17:58:49 -0400
commitc734068e24c69f51c817da8a369e55ba31416ecf (patch)
tree6f0ffe2cda5243a644a78b5cb67404e4fa67e3ee /Documentation
parent8e943e16386760ab4d79eea21d09a4925f3f6297 (diff)
hwmon: twl4030: Hwmon Driver for TWL4030 MADC
This driver exposes the sysfs nodes of the TWL4030 MADC module. All the voltage channel values are expressed in terms of mV. Channel 13 and channel 14 are reserved. There are channels which represent temperature and current the output is represented by celcius and mA respectively. Signed-off-by: Keerthy <j-keerthy@ti.com> Acked-by: Guenter Roeck <guenter.roeck@ericsson.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com> (cherry picked from commit 0070bddfe7275e5bc763884a8ac59651f4e79eab)
Diffstat (limited to 'Documentation')
1 files changed, 45 insertions, 0 deletions
diff --git a/Documentation/hwmon/twl4030-madc-hwmon b/Documentation/hwmon/twl4030-madc-hwmon
new file mode 100644
index 00000000000..ef7984317ce
--- /dev/null
+++ b/Documentation/hwmon/twl4030-madc-hwmon
@@ -0,0 +1,45 @@
+Kernel driver twl4030-madc
+Supported chips:
+ * Texas Instruments TWL4030
+ Prefix: 'twl4030-madc'
+ J Keerthy <j-keerthy@ti.com>
+The Texas Instruments TWL4030 is a Power Management and Audio Circuit. Among
+other things it contains a 10-bit A/D converter MADC. The converter has 16
+channels which can be used in different modes.
+See this table for the meaning of the different channels
+Channel Signal
+0 Battery type(BTYPE)
+1 BCI: Battery temperature (BTEMP)
+2 GP analog input
+3 GP analog input
+4 GP analog input
+5 GP analog input
+6 GP analog input
+7 GP analog input
+8 BCI: VBUS voltage(VBUS)
+9 Backup Battery voltage (VBKP)
+10 BCI: Battery charger current (ICHG)
+11 BCI: Battery charger voltage (VCHG)
+12 BCI: Main battery voltage (VBAT)
+13 Reserved
+14 Reserved
+15 VRUSB Supply/Speaker left/Speaker right polarization level
+The Sysfs nodes will represent the voltage in the units of mV,
+the temperature channel shows the converted temperature in
+degree celcius. The Battery charging current channel represents
+battery charging current in mA.