04 Jul, 2013
1 commit
-
Pull hwmon updates from Guenter Roeck:
- new driver to support GMT G762/G763 pwm fan controllers
- add support for DS1631, DS1721, and DS1731 to ds1621 driver
- remove detect function from ds1621 driver as unreliable
- bug fixes in nct6775, iio_hwmon, and adm1021 drivers
- remove redundant platform_set_drvdata in various drivers
- add device tree support to ina2xx driver* tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
hwmon: (ds1621) Fix temperature rounding operations
hwmon: (nct6775) Drop unsupported fan alarm attributes for NCT6775
hwmon: (nct6775) Fix temperature alarm attributes
Add support for GMT G762/G763 PWM fan controllers
hwmon: (ina2xx) Add device tree support to pass the shunt resistor
hwmon: (ds1621) Update documentation
hwmon: (ds1621) Add DS1731 chip support to ds1621 driver
hwmon: (iio_hwmon) add alias table
hwmon: (adm1021) Do not create min sysfs attributes for LM84
hwmon: (ds1621) Remove detect function
hwmon: (ds1621) Add ds1631 chip support to ds1621 driver and documentation
hwmon: (ds1621) Add ds1721 update interval sysfs attribute
hwmon: (ds1621) Add ds1721 chip support
hwmon: (w83627ehf) Remove redundant platform_set_drvdata()
hwmon: (ntc_thermistor) Remove redundant platform_set_drvdata()
hwmon: (i5k_amb) Remove redundant platform_set_drvdata()
hwmon: (coretemp) Remove redundant platform_set_drvdata()
hwmon: (abituguru3) Remove redundant platform_set_drvdata()
28 Jun, 2013
8 commits
-
GMT G762/763 fan speed PWM controller is connected directly to a fan
and performs closed-loop or open-loop control of the fan speed. Two
modes - PWM or DC - are supported by the chip. Introduced driver
provides various knobs to control the operations of the chip (via
sysfs interface). Specific characteristics of the system can be passed
either using board init code or via DT. Documentation for both the
driver and DT bindings are also provided.Signed-off-by: Arnaud Ebalard
Tested-by: Simon Guinot
Signed-off-by: Guenter Roeck -
Adding another way that is device tree to pass the shunt resistor
value to driver except for platform data.Signed-off-by: Tang Yuantian
[Guenter Roeck: Added missing of.h include]
Signed-off-by: Guenter Roeck -
Replace some written information with tables to improve readability
and to simplify adding newer devices in the future.Signed-off-by: Robert Coulson
Signed-off-by: Guenter Roeck -
These changes add DS1731 chip support to the ds1621 driver,
Kconfig, and documentation.Signed-off-by: Robert Coulson
Signed-off-by: Guenter Roeck -
Due to a lack of device and vendor identification registers, the
Dallas/Maxim DS16xx devices cannot be uniquely detected, sometimes
resulting in false positives. Therefore, the detect function is
being removed in favor of explicit device instantiation.Signed-off-by: Robert Coulson
Acked-by: Jean Delvare
Signed-off-by: Guenter Roeck -
Add definitions, information, and code for ds1631 chip support
to the ds1621 driver.Signed-off-by: Robert Coulson
Signed-off-by: Guenter Roeck -
The ds1721 device can be configured for 9..12 bit resolutions;
add a sysfs attribute for userspace to configure this attribute.
The definition, description, details, and usage are shown in the
documentation and were crafted from an LM73 driver patch done by
Chris Verges & Guenter Roeck).Signed-off-by: Robert Coulson
Signed-off-by: Guenter Roeck -
Update the ds1621 documentation, driver, and Kconfig with
ds1721 chip support.Signed-off-by: Robert Coulson
Signed-off-by: Guenter Roeck
04 Jun, 2013
1 commit
-
Ever since commit 45f035ab9b8f ("CONFIG_HOTPLUG should be always on"),
it has been basically impossible to build a kernel with CONFIG_HOTPLUG
turned off. Remove all the remaining references to it.Cc: Russell King
Cc: Doug Thompson
Cc: Bjorn Helgaas
Cc: Steven Whitehouse
Cc: Arnd Bergmann
Cc: Pavel Machek
Cc: "Rafael J. Wysocki"
Cc: Andrew Morton
Signed-off-by: Stephen Rothwell
Acked-by: Mauro Carvalho Chehab
Acked-by: Hans Verkuil
Signed-off-by: Greg Kroah-Hartman
04 May, 2013
2 commits
-
Basically it's the same as the original DS75 but much faster.
Signed-off-by: Jean Delvare
Acked-by: Guenter Roeck -
Most LM75-compatible chips can either sample much faster or with a
much better resolution than the original LM75 chip. So far the lm75
driver did not let the user take benefit of these improvements. Do it
now.I decided to almost always configure the chip to use the best
resolution possible, which also means the longest sample time. The
only chips for which I didn't are the DS75, DS1775 and STDS75, because
they are really too slow in 12-bit mode (1.2 to 1.5 second worst case)
so I went for 11-bit mode as a more reasonable tradeoff. This choice is
dictated by the fact that the hwmon subsystem is meant for system
monitoring, it has never been supposed to be ultra-fast, and as a
matter of fact we do cache the sampled values in almost all drivers.If anyone isn't pleased with these default settings, they can always
introduce a platform data structure or DT support for the lm75. That
being said, it seems nobody ever complained that the driver wouldn't
refresh the value faster than every 1.5 second, and the change made
it faster for all chips even in 12-bit mode, so I don't expect any
complaint.Signed-off-by: Jean Delvare
Acked-by: Guenter Roeck
01 May, 2013
1 commit
-
Pull battery updates from Anton Vorontsov:
"Highlights:- OpenFirmware/DeviceTree support for the Power Supply core: the core
now automatically populates supplied_from hierarchy from the device
tree. With these patches chargers and batteries can now lookup
each other without the board files support shim. Rhyland Klein at
NVIDIA did the work- New ST-Ericsson ABX500 hwmon driver. The driver is heavily using
the AB85xx core and depends on some recent changes to it, so that
is why the driver comes through the battery tree. It has an
appropriate ack from the hwmon maintainer (i.e. Guenter Roeck).
Martin Persson at ST-Ericsson and Hongbo Zhang at Linaro authored
the driver- Final bits to sync AB85xx ST-Ericsson changes into mainline. The
changes touch mfd parts, but these were acked by the appropriate
MFD maintainer (ie Samuel Ortiz). Lee Jones at Linaro did most of
the work and lead the submission process.Minor changes, but still worth mentioning:
- Battery temperature reporting fix for Nokia N900 phones
- Versatile Express poweroff driver moved into drivers/power/reset/
- Tree-wide: use devm_kzalloc() where appropriate
- Tree-wide: dev_pm_ops cleanups/fixes"* tag 'for-v3.10' of git://git.infradead.org/battery-2.6: (112 commits)
pm2301-charger: Fix suspend/resume
charger-manager: Use kmemdup instead of kzalloc + memcpy
power_supply: Populate supplied_from hierarchy from the device tree
power_supply: Add core support for supplied_from
power_supply: Define Binding for power-supplies
rx51_battery: Fix reporting temperature
hwmon: Add ST-Ericsson ABX500 hwmon driver
ab8500_bmdata: Export abx500_res_to_temp tables for hwmon
ab8500_{bmdata,fg}: Add const attributes to some data arrays
ab8500_bmdata: Eliminate CamelCase warning of some variables
ab8500_btemp: Make ab8500_btemp_get* interfaces public
goldfish_battery: Use resource_size()
lp8788-charger: Use PAGE_SIZE for the sysfs read operation
max8925_power: Use devm_kzalloc()
da9030_battery: Use devm_kzalloc()
da9052-battery: Use devm_kzalloc()
ds2760_battery: Use devm_kzalloc()
ds2780_battery: Use devm_kzalloc()
gpio-charger: Use devm_kzalloc()
isp1704_charger: Use devm_kzalloc()
...
21 Apr, 2013
1 commit
-
TMP432 is similar to TMP431 with a second external temperature sensor.
Signed-off-by: Guenter Roeck
Acked-by: Jean Delvare
17 Apr, 2013
1 commit
-
Each of ST-Ericsson X500 chip set series consists of both ABX500 and DBX500
chips. This is ABX500 hwmon driver, where the abx500.c is a common layer for
all ABX500s, and the ab8500.c is specific for AB8500 chip. Under this designed
structure, other chip specific files can be added simply using the same common
layer abx500.c.Signed-off-by: Hongbo Zhang
Reviewed-by: Guenter Roeck
Acked-by: Guenter Roeck
Signed-off-by: Anton Vorontsov
13 Apr, 2013
1 commit
-
Correct spelling typo in Documentation/hwmon
Signed-off-by: Masanari Iida
Signed-off-by: Guenter Roeck
08 Apr, 2013
13 commits
-
NCT6775, NCT6776, and NCT6779 have a number of variants with the same
chip ID but different chip labels. Add text "or compatible" to the
message displayed when the driver is loaded and rephrase the Kconfig
entry to reflect that it also supports compatible chips.Signed-off-by: Guenter Roeck
-
Signed-off-by: Guenter Roeck
-
TMP431 is compatible to TMP401.
Also add support for additional I2C addresses supported by TMP411B
and TMP411C.Signed-off-by: Guenter Roeck
Acked-by: Jean Delvare -
Signed-off-by: Guenter Roeck
-
So far the driver reported the voltage on VAUX as "vout2". This was not
entirely appropriate as it is not an output voltage, and complicates
the code. Use the new virtual "VMON" register set and report the voltage
as "vmon" instead.Signed-off-by: Guenter Roeck
-
Signed-off-by: Guenter Roeck
-
Some sysfs attributes are only supported on LTC2978 and not on LTC3880.
Update documentation to reflect which attributes are supported for which chips.Output current attributes supported on LTC3880 were described as providing
input current values. Fix text to reflect that the attributes provide output
current values."reset history" attribute descriptions were misleading and seemed to imply
that all history was reset when writing a single attribute. Replace with more
accurate text.Replace 'internal temperature" with "chip temperature". Temperature limits
not only apply to the chip temperature, but also to external temperatures
on LTC3880, so remove the word "chip" from the attribute description.Signed-off-by: Guenter Roeck
-
The NCT677X series support weighted fan control. In this mode, a secondary
temperature source is used in addition to the primary temperature source to
control fan speed. Add support for this feature.Signed-off-by: Guenter Roeck
-
Signed-off-by: Guenter Roeck
-
Signed-off-by: Guenter Roeck
-
Signed-off-by: Guenter Roeck
-
This driver will replace the w83627ehf driver for NCT6775F and NCT6776F,
and provides support for NCT6779D.This patch provides support for voltage monitor attributes.
Signed-off-by: Guenter Roeck
-
The adt7310/adt7320 is the SPI version of the adt7410/adt7420. The register map
layout is a bit different, i.e. the register addresses differ between the two
variants, but the bit layouts of the individual registers are identical. So both
chip variants can easily be supported by the same driver. The issue of non
matching register address layouts is solved by a simple look-up table which
translates the I2C addresses to the SPI addresses.The patch moves the bulk of the adt7410 driver to a common module that will be
shared by the adt7410 and adt7310 drivers. This common module implements the
driver logic and uses a set of virtual functions to perform IO access. The
adt7410 and adt7310 driver modules provide proper implementations of these IO
accessor functions for I2C respective SPI.Signed-off-by: Lars-Peter Clausen
Reviewed-by: Hartmut Knaack
Signed-off-by: Guenter Roeck
19 Mar, 2013
1 commit
-
The TCN75 has its own prefix for a long time now.
Signed-off-by: Jean Delvare
Reviewed-by: Guenter Roeck
04 Mar, 2013
3 commits
-
The adt7410 driver supports the ADT7420, but its documentation file
makes no mention of that. Add this refrence, and a brief a description
of the differences between the ADT7410 and the ADT7420.Signed-off-by: Jean Delvare
Cc: Lars-Peter Clausen
Cc: Hartmut Knaack
Cc: Guenter Roeck
Signed-off-by: Guenter Roeck -
Links to datasheets are no longer valid. Provide links to product information
instead (which provides links to the datasheets and is hopefully more
persistent).Signed-off-by: Guenter Roeck
Acked-by: Jean Delvare -
Most of the hwmon driver documentation still listed my old invalid e-mail
address. Fix it.Signed-off-by: Guenter Roeck
Acked-by: Jean Delvare
07 Feb, 2013
7 commits
-
Signed-off-by: Guenter Roeck
Reviewed-by: Jean Delvare -
MAX34460 is a PMBus 12-Channel Voltage Monitor & Sequencer.
MAX34461 is a PMBus 16-Channel Voltage Monitor & Sequencer.Signed-off-by: Guenter Roeck
-
Some of the ZL6100 compatible chips support monitoring a separate voltage pin,
VMON (ZL2004) or VDRV (ZL91xx). Report it as in2 / vmon.The chips support implicit warning limits for VMON/VDRV, as percentage of the
respective critical voltage. Support by reading/writing the critical voltages
and calculating the associated warning voltages.Signed-off-by: Guenter Roeck
-
Add support for the TI / Burr-Brown INA209 voltage / current / power
monitor.Cc: Paul Hays
Cc: Ira W. Snyder
Tested-by: Ira W. Snyder
Signed-off-by: Guenter Roeck -
Add support for temp1_min_alarm and temp1_max_alarm
Signed-off-by: Chris Verges
[linux@roeck-us.net: cleanup; dropped platform data and interrupt support]
Signed-off-by: Guenter Roeck -
The LM73 supports four A/D conversion resolutions. The default used by
the existing lm73 driver is the chip's default, 11-bit (0.25 C/LSB).
This patch enables changing of this resolution from userspace via the
update_interval sysfs attribute. Full details on usage are included in
Documentation/hwmon/lm73.Signed-off-by: Chris Verges
[linux@roeck-us.net: cleanup]
Signed-off-by: Guenter Roeck -
Assume that IT8771E and IT8772E are fully compatible with IT8728F.
IT8771E support contributed by Kelly Anderson.
Signed-off-by: Guenter Roeck
Reviewed-by: Jean Delvare