30 Jul, 2015
1 commit
-
pwm attributes have well defined names, which should be used.
Cc: Vadim V. Vlasov
Cc: stable@vger.kernel.org #v4.1+
Signed-off-by: Guenter Roeck
03 Jul, 2015
2 commits
-
Add an item to the checklist when submitting a new hwmon driver: only
some I2C addresses can be probed, others should not for safety
reasons.Signed-off-by: Jean Delvare
Reviewed-by: Guenter Roeck -
Add pwm[4-7] and the associated pwm[4-7]_mode attributes.
Signed-off-by: Roger Lucas
Signed-off-by: Jean Delvare
22 Jun, 2015
1 commit
-
Add hwmon driver for the Microchip TC74.
The TC74 is a single-input 8-bit I2C temperature sensor,
with +-2 degrees centigrade accuracy.Signed-off-by: Maciej Szmigiero
Signed-off-by: Guenter Roeck
01 Jun, 2015
1 commit
-
This patch adds support for the ntc thermistor NCPXXWF104 series.
Cc: Jean Delvare
Cc: Guenter Roeck
Signed-off-by: Beomho Seo
Signed-off-by: Guenter Roeck
30 May, 2015
1 commit
-
I2C address 0x37 may be used by EEPROMs, which can result in false
positives. Do not attempt to detect a chip at this address.Reviewed-by: Jean Delvare
Cc: stable@vger.kernel.org # v4.0+
Signed-off-by: Guenter Roeck
05 Apr, 2015
2 commits
-
IT8620E is mostly compatible to IT7828F. Add generic support for it.
IT8620E supports up to 6 fan tachometers and 6 pwm controls.
Support for the 6th tachometer and for the additional pwm controls
are addded in separate patches.Reviewed-by: Jean Delvare
Signed-off-by: Guenter Roeck -
IT8790E is a super-IO chip with three fan tachometers. It is mostly
compatible to IT8728F, but only supports three fan tachometers
instead of five.Reviewed-by: Jean Delvare
Signed-off-by: Guenter Roeck
10 Mar, 2015
4 commits
-
The NCT7904D is a hardware monitor supporting up to 20 voltage sensors,
internal temperature sensor, Intel PECI and AMD SB-TSI CPU temperature
interface, up to 12 fan tachometer inputs, up to 4 fan control channels
with SmartFan.Signed-off-by: Vadim V. Vlasov
[Guenter Roeck: Fixed whitespace errors, dropped redundant comment]
Signed-off-by: Guenter Roeck -
IT8786E is mostly compatible with IT8771 / IT8772.
Parameters determined by testing various combinations.Reviewed-by: Jean Delvare
Signed-off-by: Thomas Lorblanches
[Guenter Roeck: merged from github, addressed review comments]
Signed-off-by: Guenter Roeck -
TS3000GB0 has a new device ID (0x2913). Since IDT's datasheets suggest
that the upper 8 bit of the device ID reflect the chip ID and the lower
8 bit reflect the version number, modify the code to accept all chips
with ID 0x29xx.Also add support for TS3001 and TSE2004.
Some of the datasheets for older chips are no longer available from
the IDT web site, so replace explicit links in the documentation with
a generic note.Reviewed-by: Jean Delvare
Signed-off-by: Guenter Roeck -
IT8781F is mostly compatible to IT8782F. Major difference is that it only
supports four instead of six UART channels, and therefore does not share
the uart6 pins.Reviewed-by: Jean Delvare
Signed-off-by: Guenter Roeck
26 Jan, 2015
3 commits
-
Add support for "ina231" as compatible string, and update
Documentation and Kconfig accordingly.Tested with the Exynos5422-based odroid-xu3 board which has on-board
INA231 sensors.Signed-off-by: Kevin Hilman
Signed-off-by: Guenter Roeck -
This attribute allows to configure the update interval of ina226. Although
the bus and shunt voltage conversion times remain hardcoded to 1.1 ms, we can
now modify said interval by changing the averaging rate.While we're at it - add an additional variable to ina2xx_data, which holds
the current configuration settings - this way we'll be able to restore the
configuration in case of an unexpected chip reset.Signed-off-by: Bartosz Golaszewski
Signed-off-by: Guenter Roeck -
The shunt resistance can only be set via platform_data or device tree. This
isn't suitable for devices in which the shunt resistance can change/isn't
known at boot-time.Add a sysfs attribute that allows to read and set the shunt resistance.
Signed-off-by: Bartosz Golaszewski
Signed-off-by: Guenter Roeck
08 Dec, 2014
1 commit
-
TMP435 supports a range of I2C addresses, not just 0x4c.
Cc: Patrick Titiano
Cc: Bartosz Golaszewski
Reviewed-by: Jean Delvare
Signed-off-by: Guenter Roeck
05 Dec, 2014
1 commit
-
Signed-off-by: Patrick Titiano
[Bartosz Golaszewski: prepared for submission, code review fixes]
Signed-off-by: Bartosz Golaszewski
[Guenter Roeck: Merged two patches into one]
Signed-off-by: Guenter Roeck
02 Dec, 2014
2 commits
-
LM95233 is similar to LM95234, but it only supports two
instead of four external temperature sensors.Reviewed-by: Jean Delvare
Signed-off-by: Guenter Roeck -
LM95235 is register compatible to LM95245.
Also update link to LM95245 data sheet, and drop the link to the
datasheet from the driver source to simplify code maintenance.Reviewed-by: Jean Delvare
Signed-off-by: Guenter Roeck
01 Dec, 2014
4 commits
-
NCT6792D is similar to NCT6791D. Only beep control and temperature
monitoring registers are different.Reviewed-by: Jean Delvare
Signed-off-by: Guenter Roeck -
Document support for NCT6102D/NCT6104D/NCT6106D and NCT6791D.
Document that NCT5573D is compatible to NCT6775F with the same chip ID.Reviewed-by: Jean Delvare
Signed-off-by: Guenter Roeck -
It is basically a faster lm75 with improved (11 bit) resolution.
Signed-off-by: Michael Thalmeier
Signed-off-by: Guenter Roeck -
NCT7802Y is an I2C based hardware monitoring chip from Nuvoton.
Signed-off-by: Guenter Roeck
25 Sep, 2014
1 commit
-
Immutable branch between MFD, HWMON, LEDs and Watchdog for v3.18
24 Sep, 2014
1 commit
-
Added driver to support the 14F021P00 BMC Hardware Monitoring.
The BMC is a Board Management Controller including monitoring of the
board voltages.Signed-off-by: Andreas Werner
Reviewed-by: Guenter Roeck
Signed-off-by: Lee Jones
23 Sep, 2014
1 commit
-
This patch adds temperature monitoring support for F15h M60h processor.
- Add new pci device id for the relevant processor
- The functionality of REG_REPORTED_TEMPERATURE is moved to
D0F0xBC_xD820_0CA4 [Reported Temperature Control]
- So, use this to get CUR_TEMP value
- Since we need an indirect register access, protect this with
a mutex lock
- Add Kconfig, Doc entries to indicate support for this processor.Signed-off-by: Aravind Gopalakrishnan
Acked-by: Borislav Petkov
Acked-by: Clemens Ladisch
[Guenter Roeck: Declare new mutex and function static]
Signed-off-by: Guenter Roeck
04 Aug, 2014
9 commits
-
The pwm-fan driver enables control of fans connected to PWM lines.
This driver uses the PWM framework, so it is compatible with all
PWM devices that provide drivers through the PWM framework.Signed-off-by: Kamil Debski
Reviewed-by: Varka Bhadram
Reviewed-by: Tobias Klauser
[Guenter Roeck: Last argument to devm_of_pwm_get is pointer, use NULL]
Signed-off-by: Guenter Roeck -
This patch adds basic kernel support for reading power values, fan
speed rpm, voltage and temperature data on powernv platforms which
will be exported to user space through sysfs interface.Test results:
-------------
[root@tul163p1 ~]# sensors
ibmpowernv-isa-0000
Adapter: ISA adapter
fan1: 5465 RPM (min = 0 RPM)
fan2: 5152 RPM (min = 0 RPM)
fan3: 5521 RPM (min = 0 RPM)
fan4: 4891 RPM (min = 0 RPM)
fan5: 0 RPM (min = 0 RPM)
fan6: 0 RPM (min = 0 RPM)
fan7: 7480 RPM (min = 0 RPM)
fan8: 7944 RPM (min = 0 RPM)
temp1: +39.0°C (high = +0.0°C)
power1: 190.00 W[root@tul163p1 ~]# ls /sys/devices/platform/
alarmtimer ibmpowernv.0 power rtc-generic serial8250 uevent
[root@tul163p1 ~]# ls /sys/devices/platform/ibmpowernv.0/hwmon/hwmon0/
device fan2_min fan4_min fan6_min fan8_min power
fan1_fault fan3_fault fan5_fault fan7_fault in1_fault power1_input
fan1_input fan3_input fan5_input fan7_input in2_fault subsystem
fan1_min fan3_min fan5_min fan7_min in3_fault temp1_input
fan2_fault fan4_fault fan6_fault fan8_fault in4_fault temp1_max
fan2_input fan4_input fan6_input fan8_input name uevent
[root@tul163p1 ~]# ls /sys/class/hwmon/hwmon0/
device fan2_min fan4_min fan6_min fan8_min power
fan1_fault fan3_fault fan5_fault fan7_fault in1_fault power1_input
fan1_input fan3_input fan5_input fan7_input in2_fault subsystem
fan1_min fan3_min fan5_min fan7_min in3_fault temp1_input
fan2_fault fan4_fault fan6_fault fan8_fault in4_fault temp1_max
fan2_input fan4_input fan6_input fan8_input name uevent
[root@tul163p1 ~]#Signed-off-by: Neelesh Gupta
Signed-off-by: Guenter Roeck -
For TI power management chip TPS40422, READ_TEMPERATURE_2 command is supported on
page 1 of the chip, but the original driver(pmbus.c) only tried to detect this command
on page 0, this will lead to a result that the temperature sensor in page 1 couldn't
be detected. This change is to isolate the tps40422 driver from pmbus.c into a solo
front-end driver.Signed-off-by: Zhu Laiwen
[Guenter Roeck: Dropped unnecessary license text (fixes checkpatch warning)]
Signed-off-by: Guenter Roeck -
TMP441 and TMP442 are compatible to TMP421 and TMP422.
Signed-off-by: Guenter Roeck
Reviewed-by: Jean Delvare -
Not all supported chips support the entire I2C address range.
Only accept specific chips at the addresses supported by that chip.
Check for invalid values in conversion rate and status registers.Signed-off-by: Guenter Roeck
Reviewed-by: Jean Delvare -
This patch adds support for the ntc thermistor B57330V2103 from EPCOS.
Signed-off-by: Johannes Pointner
Signed-off-by: Guenter Roeck -
TMP112 is compatible to LM75.
Signed-off-by: Frans Klaver
Signed-off-by: Guenter Roeck -
Driver for the TI TMP103.
The TI TMP103 is similar to the TMP102. It differs from the TMP102
by having only 8 bit registers.Signed-off-by: Heiko Schocher
[linux@roeck-us.net: Select REGMAP_I2C in Kconfig]
Signed-off-by: Guenter Roeck -
This patch adds support for Lattice's POWR1220 power manager IC. Read
access to all the ADCs on the chip are supported through the hwmon
sysfs files.Signed-off-by: Scott Kanowitz
[Guenter Roeck: Removed some extra ( )]
Signed-off-by: Guenter Roeck
25 Jun, 2014
1 commit
-
Murata Manufacturing Co., Ltd is the vendor for
NTC (Negative Temperature coefficient) based Thermistors.
But, the driver extensively uses "NTC" as the vendor name.This patch corrects the vendor name also updates the
compatibility strings according to the vendor-prefix.txtNote: Drivers continue to support the previous compatible strings
but further addition of these compatible strings in device tree
is deprecated.Signed-off-by: Naveen Krishna Chatradhi
Reviewed-by: Javier Martinez Canillas
Signed-off-by: Guenter Roeck
12 Jun, 2014
1 commit
-
Add support for Sensirion SHTC1 and compatible temperature and humidity
sensors.Signed-off-by: Tomas Pop
Signed-off-by: Guenter Roeck
04 Jun, 2014
1 commit
-
…eck/linux-staging into next
Pull hwmon updates from Guenter Roeck:
"New driver for NCT6683DNew chip support to existing drivers:
- add support for STTS2004 and AT30TSE004 to jc42 driver
- add support for EMC1402/EMC1412/EMC1422 to emc1403 driverOther notable changes:
- document hwmon kernel API
- convert jc42, lm70, lm75, lm77, lm83, lm92, max1619, tmp421, and
tmp102 drivers to use new hwmon API functions
- replace function macros in lm80, lm92, and jc42 drivers with real
code
- convert emc1403 driver to use regmap, add support for additional
attributes, and add device IDs for EMC1412, EMC1413, and EMC1414
- various additional cleanup and minor bug fixes in several drivers"* tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: (60 commits)
hwmon: (nct6775) Fix probe unwind paths to properly unregister platform devices
hwmon: (nct6683) Fix probe unwind paths to properly unregister platform devices
hwmon: (ultra45_env) Introduce managed version of kzalloc
hwmon: Driver for NCT6683D
hwmon: (lm80) Rearrange code to avoid forward declarations
hwmon: (lm80) Convert fan display function macros into functions
hwmon: (lm80) Convert voltage display function macros into functions
hwmon: (lm80) Convert temperature display function macros into functions
hwmon: (lm80) Normalize all temperature values to 16 bit
hwmon: (lm80) Simplify TEMP_FROM_REG
hwmon: (lm83) Convert to use devm_hwmon_device_register_with_groups
hwmon: (lm83) Rearange code to avoid forward declarations
hwmon: (lm83) Drop FSF address
hwmon: (max1619) Convert to use devm_hwmon_device_register_with_groups
hwmon: (max1619) Drop function macros
hwmon: (max1619) Rearrange code to avoid forward declarations
hwmon: (max1619) Drop FSF address
hwmon: (max1619) Fix critical alarm display
hwmon: (jc42) Add support for STTS2004 and AT30TSE004
hwmon: (jc42) Convert function macros into functions
...
25 May, 2014
1 commit
-
The temp[1-*]_min_hyst sysfs attribute is already implemented by 3
hwmon drivers (adt7x10, lm77 and lm92) but was missing from the
standard interface.Also add temp[1-*]_lcrit_hyst for consistency, even though no driver
implement that one for the time being.Signed-off-by: Jean Delvare
Reviewed-by: Guenter Roeck
22 May, 2014
1 commit
-
Nuvoton NCT6683D is an eSIO with hardware monitoring capabilities.
Signed-off-by: Guenter Roeck