summaryrefslogtreecommitdiff
path: root/drivers/hwmon
AgeCommit message (Collapse)Author
2014-04-04hwmon: tsensor: remove T30 temperature sensor codePaul Walmsley
dev-kernel doesn't support Tegra30 chips any more, so remove the T30 thermal sensor code that's now dead. Bug 1201644 Bug 1380438 Bug 1482001 Change-Id: I71b2622f97147accddbeccee9a342e206dc1e322 Signed-off-by: Paul Walmsley <pwalmsley@nvidia.com> Cc: Diwakar Tundlam <dtundlam@nvidia.com> Cc: Matthew Longnecker <mlongnecker@nvidia.com> Reviewed-on: http://git-master/r/392199 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com> Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
2014-04-03drivers: hwmon: Add support for NVT210sreenivasulu velpula
NVT210 Temperature sensor Bug 1382499 Bug 1442432 Change-Id: I06fd1d8c250423ab3b5b90b76925d2d52330eaa2 Signed-off-by: sreenivasulu velpula <svelpula@nvidia.com> Reviewed-on: http://git-master/r/337707 Signed-off-by: sreenivasulu velpula <svelpula@nvidia.com> Reviewed-on: http://git-master/r/364893 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
2014-04-03driver: tmon: tegra: Add sysfs entriessreenivasulu velpula
Add sysfs entries for below - temperature limits - temperature alerts Bug 1159566 Bug 1442432 Change-Id: Ibf5411250158a8c358353421208fd2ec1b0e886a Signed-off-by: sreenivasulu velpula <svelpula@nvidia.com> Reviewed-on: http://git-master/r/364892 Reviewed-by: Sandeep Trasi <strasi@nvidia.com> Tested-by: Sandeep Trasi <strasi@nvidia.com>
2014-03-13Merge branch 'linux-3.10.33' into dev-kernel-3.10Deepak Nibade
Bug 1456092 Change-Id: I3021247ec68a3c2dddd9e98cde13d70a45191d53 Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
2014-03-06hwmon: (max1668) Fix writing the minimum temperatureGuenter Roeck
commit 500a91571f0a5d0d3242d83802ea2fd1faccc66e upstream. When trying to set the minimum temperature, the driver was erroneously writing the maximum temperature into the chip. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-02-22hwmon: (ntc_thermistor) Avoid math overflowDoug Anderson
commit d3d89c468ceebbcf9423d1a3d66c5bf91f569570 upstream. The ntc thermistor code was doing math whose temporary result might have overflowed 32-bits. We need some casts in there to make it safe. In one example I found: - pullup_uV: 1800000 - result of iio_read_channel_raw: 3226 - 1800000 * 3226 => 0x15a1cbc80 Signed-off-by: Doug Anderson <dianders@chromium.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-02-06hwmon: (k10temp) Add support for Kaveri CPUsPhil Pokorny
commit d303b1b5fbb688282bbf72a534b9dfed7af9fe4f upstream. Add new PCI ID to support new model "Kaveri" family. Signed-off-by: Philip Pokorny <ppokorny@penguincomputing.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-01-25hwmon: (coretemp) Fix truncated name of alarm attributesJean Delvare
commit 3f9aec7610b39521c7c69d754de7265f6994c194 upstream. When the core number exceeds 9, the size of the buffer storing the alarm attribute name is insufficient and the attribute name is truncated. This causes libsensors to skip these attributes as the truncated name is not recognized. Reported-by: Andreas Hollmann <hollmann@in.tum.de> Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-01-08hwmon: ina3221: add simultaneous vbus/current readingTimo Alho
Add intefrace ui_input_X to read simultaneous voltage and current values (from same conversion round). Also, make the running_mode sysfs entry writable to allow to force the INA into continuous mode. Bug 1400509 Bug 1414772 Change-Id: Ic0386bade95845398caa85946f4061f072796e1a Signed-off-by: Timo Alho <talho@nvidia.com> Reviewed-on: http://git-master/r/351299 Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
2014-01-08hwmon: ina3221: refactor ina3221 driverTimo Alho
This patch refactors the ina3221 hwmon driver by moving the common parts of code to __locked_do_conversion() function. Bug 1400509 Bug 1414772 Change-Id: Ibbc58b82d67a1ece3bea258015ff67ee2bb35def Signed-off-by: Timo Alho <talho@nvidia.com> Reviewed-on: http://git-master/r/346967 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
2014-01-08hwmon: ina3221: improve current calculation precissionTimo Alho
Improve the precission of current reading by removing unnecessary computation of resistance inverse. Also add proper rounding. Bug 1400509 Bug 1414772 Change-Id: Idd5f8f0ae4b3d4c723e3249cd96e8422024428e9 Signed-off-by: Timo Alho <talho@nvidia.com> Reviewed-on: http://git-master/r/346966 Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
2013-12-20hwmon: (w83l768ng) Fix fan speed control rangeJean Delvare
commit 33a7ab91d509fa33b4bcd3ce0038cc80298050da upstream. The W83L786NG stores the fan speed on 4 bits while the sysfs interface uses a 0-255 range. Thus the driver should scale the user input down to map it to the device range, and scale up the value read from the device before presenting it to the user. The reserved register nibble should be left unchanged. Signed-off-by: Jean Delvare <khali@linux-fr.org> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-12-20hwmon: (w83l786ng) Fix fan speed control mode setting and reportingBrian Carnes
commit cf7559bc053471f32373d71d04a9aa19e0b48d59 upstream. The wrong mask is used, which causes some fan speed control modes (pwmX_enable) to be incorrectly reported, and some modes to be impossible to set. [JD: add subject and description.] Signed-off-by: Brian Carnes <bmcarnes@gmail.com> Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-12-20hwmon: HIH-6130: Support I2C bus drivers without I2C_FUNC_SMBUS_QUICKJosé Miguel Gonçalves
commit efabcc2123f0ed47870033b8d6fc73b50d76d635 upstream. Some I2C bus drivers do not allow zero-length data transfers which are required to start a measurement with the HIH6130/1 sensor. Nevertheless, we can overcome this limitation by writing a zero dummy byte. This byte is ignored by the sensor and was verified to be working with the OMAP I2C bus driver in a BeagleBone board. Signed-off-by: José Miguel Gonçalves <jose.goncalves@inov.pt> [Guenter Roeck: Simplified complexity of write_length initialization] Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-12-20hwmon: Prevent some divide by zeros in FAN_TO_REG()Dan Carpenter
commit 3806b45ba4655147a011df03242cc197ab986c43 upstream. The "rpm * div" operations can overflow here, so this patch adds an upper limit to rpm to prevent that. Jean Delvare helped me with this patch. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Roger Lucas <vt8231@hiddenengine.co.uk> Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-12-16Merge tag 'v3.10.24' into HEADAjay Nandakumar
This is the 3.10.24 stable release Change-Id: Ibd2734f93d44385ab86867272a1359158635133b
2013-11-29hwmon: (lm90) Fix max6696 alarm handlingGuenter Roeck
commit e41fae2b1ed8c78283d73651cd65be0228c0dd1c upstream. Bit 2 of status register 2 on MAX6696 (external diode 2 open) sets ALERT; the bit thus has to be listed in alert_alarms. Also display a message in the alert handler if the condition is encountered. Even though not all overtemperature conditions cause ALERT to be set, we should not ignore them in the alert handler. Display messages for all out-of-range conditions. Reported-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-11-15hwmon: ina3221: Support for crit and warnAnshul Jain
This change adds support to configure crit and warn limits in ina3221 device. sysfs node: crit_cur_limit_<channel> in mA Bug 1406218 Change-Id: Ifbeaaeb53201f4d086b88dedb746288d19dfbcfd Signed-off-by: Anshul Jain <anshulj@nvidia.com> Reviewed-on: http://git-master/r/331454 Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com> Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
2013-11-14hwmon: ina3221: Change on/off thresholdJun Yan
Change on/off threshold to 102MHz. Bug 1317330 Change-Id: Icc681055008bfbb72c9ba4d3f01bb2a66e8d6aa8 Signed-off-by: Jun Yan <juyan@nvidia.com> Reviewed-on: http://git-master/r/330916 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
2013-10-31Merge tag 'v3.10.17' into dev-kernel-3.10Ajay Nandakumar
This is the 3.10.17 stable release Conflicts: drivers/usb/host/xhci.c Change-Id: I6bd3b15ff92a0b94568b9d02e9bb1036becfca20
2013-10-28hwmon: ina3221: Enable support for negative valuesJun Yan
-INA chip is able to handle negative values.Improve the driver to show negative value. -Created another sysfs node for current, when INA is off it will show 0 mA.This prevents frequent ON/OFF of INA chip. Bug 1317330 Change-Id: Ie97edaed7eee3a57f005ac6ec8d07cba473504fb Signed-off-by: Jun Yan <juyan@nvidia.com> Reviewed-on: http://git-master/r/301341 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2013-10-18hwmon: (applesmc) Always read until end of dataHenrik Rydberg
commit 25f2bd7f5add608c1d1405938f39c96927b275ca upstream. The crash reported and investigated in commit 5f4513 turned out to be caused by a change to the read interface on newer (2012) SMCs. Tests by Chris show that simply reading the data valid line is enough for the problem to go away. Additional tests show that the newer SMCs no longer wait for the number of requested bytes, but start sending data right away. Apparently the number of bytes to read is no longer specified as before, but instead found out by reading until end of data. Failure to read until end of data confuses the state machine, which eventually causes the crash. As a remedy, assuming bit0 is the read valid line, make sure there is nothing more to read before leaving the read function. Tested to resolve the original problem, and runtested on MBA3,1, MBP4,1, MBP8,2, MBP10,1, MBP10,2. The patch seems to have no effect on machines before 2012. Tested-by: Chris Murphy <chris@cmurf.com> Signed-off-by: Henrik Rydberg <rydberg@euromail.se> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-10-16hwmon: ina230: add avg to platform_dataJon McCaffrey
Make the avg configurable via platform-data so that it can be adjusted on a device-specific basis. The default is no averaging, and this value is not one-size-fits-all. Change-Id: I114c3d15ff7679d0a20b5f7d34a02d6ac252d55c Signed-off-by: Jon McCaffrey <jmccaffrey@nvidia.com> Reviewed-on: http://git-master/r/299576 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2013-10-05hwmon: (applesmc) Check key count before proceedingHenrik Rydberg
commit 5f4513864304672e6ea9eac60583eeac32e679f2 upstream. After reports from Chris and Josh Boyer of a rare crash in applesmc, Guenter pointed at the initialization problem fixed below. The patch has not been verified to fix the crash, but should be applied regardless. Reported-by: <jwboyer@fedoraproject.org> Suggested-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Henrik Rydberg <rydberg@euromail.se> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-10-01hwmon: ina230: convert suspend/resume to dev_pm_opsLaxman Dewangan
In place of implement the suspend/resume in legacy way, converting it to dev_pm_ops. This will fix the following warning: i2c-core: driver [ina230] using legacy suspend method i2c-core: driver [ina230] using legacy resume method Change-Id: Ibdd0323fdb2eabb3e83054482ee89ab95795d192 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/278860 GVS: Gerrit_Virtual_Submit (cherry picked from commit b873084131c6ec10de6abe3e203bf66a1189eb4e) Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
2013-09-16hwmon: ina230: fix negative power readingsDeepak Nibade
- show_power2 api calculates power using shunt voltage - if shunt voltage is negative, power and current readings are also calculated negative - fix this by taking absolute value of shunt voltage Bug 1353426 Change-Id: I10deb33a0297af52da88385b105edd9bc2649d94 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/266129 (cherry picked from commit bdfa16243edcac9b07bbbe7133374494f4ef3b6f) Reviewed-on: http://git-master/r/273608 GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2013-09-14Merge tag 'v3.10.12' into android-tegra-nv-3.10-rebaseDan Willemsen
This is the 3.10.12 stable release Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
2013-09-14ARM: tegra: Use <linux/clk/tegra.h> instead of <mach/clk.h>Dan Willemsen
So that the upstream common clk infrastructure can live side by side. Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com> Change-Id: I0fe0ef8cd207d27b707821eed838c75b8ec04025
2013-09-14ARM: tegra: Use tegra_read_chipid()Dan Willemsen
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com> Change-Id: Idd0fe0289c1b047d2418289151006f0cbec67948
2013-09-14hwmon: ina230: fix negative current readingXin Xie
bug 1298931 Change-Id: If0037afb285b88dde11fe5f40def8f8fe9727c56 Signed-off-by: Xin Xie <xxie@nvidia.com> Reviewed-on: http://git-master/r/235215 (cherry picked from commit 339d494c5790e7a96d00e94e7e6c68716644c18a) Reviewed-on: http://git-master/r/266525 Reviewed-by: Timo Alho <talho@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: Timo Alho <talho@nvidia.com> Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
2013-09-14hwmon: ina230: Add control option to set Alert Latch Enable bitTimo Alho
Alert Latch Enable (LEN) bit controls the behaviour of Alert signal. When bit is set, the Alert pin will remain active following a fault until the Mask/Enable register has been read. This patch adds a platfrom control option to set/clear this bit. Change-Id: I9dec186ec98bda3907303e261bb0098787c1e5b8 Signed-off-by: Timo Alho <talho@nvidia.com> Reviewed-on: http://git-master/r/263393 Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
2013-09-14hwmon: ina230: enable current monitoring without resistor valueTimo Alho
This patch adds support to current monitoring alert when resistor value is not defined in the platform configuration (which is the nominal case for most of the platforms). Change-Id: I504a0d601713470f74853bada45c42806dd0febd Signed-off-by: Timo Alho <talho@nvidia.com> Reviewed-on: http://git-master/r/262563 Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
2013-09-14hwmon: ina230: fix overflow in current limitXin Xie
bug 258076 Change-Id: I321677861aeddd3f14c46ae99b922a3f407ed6d1 Signed-off-by: Xin Xie <xxie@nvidia.com> Reviewed-on: http://git-master/r/259281 Reviewed-by: Venkata (Muni) Anda <vanda@nvidia.com> GVS: Gerrit_Virtual_Submit
2013-09-14hwmon: ina230: add new sysfs for current measurementDeepak Nibade
- add new sysfs API "curr2_input" for current measurement - this sysfs makes use of shunt resistor value for current calculation - it is independent of other constants like calibration and power lsb Bug 1325760 Change-Id: Ib32cf4710402749d297ea8de814055ab799648cd Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/249202 (cherry picked from commit fec75a0beb052c4f5f64073624631f307a27d192) Reviewed-on: http://git-master/r/250067 Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2013-09-14hwmon: ina230: add new sysfs for power measurementDeepak Nibade
- add new sysfs API "power2_input" for power measurement - this sysfs makes use of shunt resistor value for power calculation - it is independent of other constants like calibration and power lsb Bug 1325760 Change-Id: I756e89b98c9771481b1b7e01e2ae0a8a0903eed6 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/249201 (cherry picked from commit 4529558b283ada071fd15c4113d9295c8db1d3fc) Reviewed-on: http://git-master/r/250066 Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2013-09-14hwmon: ina230: add type casting for negative currentBo Kim
When precision_multiplier has positive value and current has negative value, the calculation makes wrong result by implicit type casting. Bug 1311630 Change-Id: I272783d1e081059a296a1cce33f660cfb1fcd52b Signed-off-by: Bo Kim <bok@nvidia.com> Reviewed-on: http://git-master/r/245046 (cherry picked from commit a62ae4ba0b076ee2349ff3503656e8d9812c0e72) Reviewed-on: http://git-master/r/248236 Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2013-09-14hwmon: ina230: add function to check alert flagTimo Alho
This patch adds a function to check the status of alert flag. This enables alert functionality to be used (by polling) for ina devices that do not have alert IO signal connected to AP. Change-Id: Id9cf87a324a6c817d431b544f38e4cd9ebb7f28f Signed-off-by: Timo Alho <talho@nvidia.com> Reviewed-on: http://git-master/r/234634 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
2013-09-14hwmon: ina3221: Add suspend and resumeAnshul Jain
Change-Id: I882038b2dee419daf7c402a9c03aad06a0a25807 Signed-off-by: Anshul Jain <anshulj@nvidia.com> (cherry picked from commit 7b92fbfe4366076ee9d344df5526dea5a24f9e16) Reviewed-on: http://git-master/r/230956 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Jun Yan <juyan@nvidia.com> Tested-by: Jun Yan <juyan@nvidia.com> Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2013-09-14hwmon: ina3221: optimize ina3221Jun Yan
turn off ina3221 when online_cores < 2 and freq < 1GHz turn on ina3221 when online_cores >=2 or freq >= 1GHz Bug 1241820 Change-Id: Ie2d6d703711a33b14c73f765421e9565ecda64f6 Signed-off-by: Jun Yan <juyan@nvidia.com> (cherry picked from commit fdcbbf2249bae6138c0e786b9c387afd9c032151) Reviewed-on: http://git-master/r/229467 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2013-09-14hwmon: ina230: support inverted polarity for shunt voltageHyungwoo Yang
This change supports the case for polarity of shunt voltage is inverted. Bug 1240043 Reviewed-on: http://git-master/r/223682 (cherry picked from commit 8de438d1bbd3516a067836a7697aead1ef20cdc2) Change-Id: Ied21e45d093f61bd4cbedd52cb28f14d2e83a8fd Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com> Reviewed-on: http://git-master/r/225979 Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Hunk Lin <hulin@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com> Reviewed-by: Tony Liu <tonliu@nvidia.com>
2013-09-14hwmon: ina230: fix kernel warningDeepak Nibade
fix warning of function initialization from incompatible pointer type Bug 949219 Change-Id: Ibc48579bf7314a74b023a7973ac398d7c70305dd Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/220593 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2013-09-14driver: tmon: tegra: update rtemp functionalitysreenivasulu velpula
Bug 1182410 Reviewed-on: http://git-master/r/203014 (cherry picked from commit 57e260678b3c59b22c0999e267387661aa4feca0) Change-Id: I530c6e07e8a18c6b972ad531c45bb8b6c2817042 Signed-off-by: sreenivasulu velpula <svelpula@nvidia.com> Reviewed-on: http://git-master/r/206273 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2013-09-14driver: tmon: tegra: Add power management supportsreenivasulu velpula
Add suspend and resume functions Bug 1238405 Reviewed-on: http://git-master/r/202065 (cherry picked from commit 9b2a2eb5af4f9505ab735b7d9053f32eb935a1ff) Change-Id: Ia672d30915871ecb4cf879d4f998ee779359f523 Signed-off-by: sreenivasulu velpula <svelpula@nvidia.com> Reviewed-on: http://git-master/r/203668 Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> GVS: Gerrit_Virtual_Submit
2013-09-14hwmon: ina230: check conversion ready bitDeepak Nibade
check conversion ready bit before reading current/power registers and wait till it is set Bug 1228591 Change-Id: I2d1278a1d36f3d591106a005d5875307d6e7de19 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/198002 (cherry picked from commit 3653e6c81ff7ce6ec398a1c01f4a4782775d3e8d) Reviewed-on: http://git-master/r/205850 Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User
2013-09-14hwmon: ina3221: implement shutdownDeepak Nibade
Bug 1225028 Change-Id: I252cfc136f5fe2c2118ae4d24d5c2ba64fb94437 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/195027 (cherry picked from commit 14fb9a6d7716c436481621d2a382d1be4b931032) Reviewed-on: http://git-master/r/201925 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2013-09-14hwmon: ina3221: Support for turning off inaAnshul Jain
This is an optimization to turn off INA device based on number of cores online. Also, this change removes support for turning on/off INA at runtime using sysfs node. Additionaly, this change creates a new API power2_*, which return 0 if ina device is turned off. Bug 1223376 Bug 1207777 Change-Id: I0beedffa10d7e11e280e96c2c58c4dd191b87819 Signed-off-by: Anshul Jain <anshulj@nvidia.com> Reviewed-on: http://git-master/r/193580 (cherry picked from commit 1b530bd6b64363214580f6717b53888613cf7d4e) Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/201924 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2013-09-14hwmon: ina230: add support for HPA01112Laxman Dewangan
TI HPA01112 is sw compatible with ina230. Add the module id for HPA01112. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/197499 Cherrypicked commit 8342786e71889935b6e1d4b4e467db9aa9e07b1d Change-Id: If9c054d09c1fd8a2d29b363062a021ad0e99bb97 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/199105
2013-09-14hwmon: ina230: add support for HPA02149Laxman Dewangan
The TI current/power monitor device INA230 is compatible with the HAP02149. Add module ID for the HPA02149. This device is also compatible with INA226 and hence adding ina226 as module-id. In this way, this driver can regsitered with the name as "ina226" or "ina230" or "hpa02149". bug 1218687 (CherrChange-Id: Ic67227bc6d415fd559d804f4bd97e4ea4018d872) Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/196411 Change-Id: Ic67227bc6d415fd559d804f4bd97e4ea4018d872 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/199104
2013-09-14hwmon: Tegra Temperature Monitor driversreenivasulu velpula
This driver monitors both local and remote temperatures at regular intervals. If there is certian degrees change in temperatures then it executes the callback registered for the platform. This driver assumes presence of on-board TMP411 sensor by TI. This driver also adds a sysfs interface to read current temperature of the remote hotspot and local temperature. Bug 1182410 Reviewed-on: http://git-master/r/190217 (cherry picked from commit fc1c166747f938f05e7491e7fb63e5c843549a95) Change-Id: I9789abe267cbabe05560c70e79a3cbbe4f73ccdb Signed-off-by: sreenivasulu velpula <svelpula@nvidia.com> Reviewed-on: http://git-master/r/201608 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2013-09-14hwmon: ina230: use correct configuration modesDeepak Nibade
Bug 1228591 Change-Id: I5a4b2b59d32118d57ee0ff6c21b8423268fc1926 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/197993 (cherry picked from commit 2b1e73a6f01c1bf14d4e9c7c493a83ae97b593f3) Reviewed-on: http://git-master/r/199985 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sachin Nikam <snikam@nvidia.com>