Skip to content

Commit 41e97d7

Browse files
committed
Merge tag 'hwmon-for-v6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
Pull hwmon updates from Guenter Roeck: "New drivers: - Renesas HS3001 Chip support added to existing drivers: - pmbus/mp2975 driver now supports MP2971 and MP2973 Functional improvements: - Additional voltage and temperature sensor support for NCT6798/NCT6799 in nt6755 driver - it87 driver now detects AMDTSI sensor type - dimmtemp now supports more than 32 DIMMs Driver removals: - sm665 driver removed as unsupportable and long since obsolete .. and minor fixes, cleanups, and simplifications in several drivers" * tag 'hwmon-for-v6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: (57 commits) hwmon: (tmp513) Simplify probe() hwmon: (tmp513) Fix the channel number in tmp51x_is_visible() hwmon: (mlxreg-fan) Extend number of supported fans hwmon: (sis5595) Do PCI error checks on own line hwmon: (vt8231) Do PCI error checks on own line hwmon: (via686a) Do PCI error checks on own line hwmon: pmbus: Fix -EIO seen on pli1209 hwmon: pmbus: Drop unnecessary clear fault page hwmon: pmbus: Reduce clear fault page invocations hwmon: (nsa320-hwmon) Remove redundant of_match_ptr() hwmon: (pmbus/ucd9200) fix Wvoid-pointer-to-enum-cast warning hwmon: (pmbus/ucd9000) fix Wvoid-pointer-to-enum-cast warning hwmon: (pmbus/tps53679) fix Wvoid-pointer-to-enum-cast warning hwmon: (pmbus/ibm-cffps) fix Wvoid-pointer-to-enum-cast warning hwmon: (tmp513) fix Wvoid-pointer-to-enum-cast warning hwmon: (max6697) fix Wvoid-pointer-to-enum-cast warning hwmon: (max20730) fix Wvoid-pointer-to-enum-cast warning hwmon: (lm90) fix Wvoid-pointer-to-enum-cast warning hwmon: (lm85) fix Wvoid-pointer-to-enum-cast warning hwmon: (lm75) fix Wvoid-pointer-to-enum-cast warning ...
2 parents 995cda6 + 919a83d commit 41e97d7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+1455
-1501
lines changed

Documentation/devicetree/bindings/trivial-devices.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ properties:
119119
- fsl,mpr121
120120
# Monolithic Power Systems Inc. multi-phase controller mp2888
121121
- mps,mp2888
122+
# Monolithic Power Systems Inc. multi-phase controller mp2971
123+
- mps,mp2971
124+
# Monolithic Power Systems Inc. multi-phase controller mp2973
125+
- mps,mp2973
122126
# Monolithic Power Systems Inc. multi-phase controller mp2975
123127
- mps,mp2975
124128
# Honeywell Humidicon HIH-6130 humidity/temperature sensor
@@ -315,6 +319,8 @@ properties:
315319
- plx,pex8648
316320
# Pulsedlight LIDAR range-finding sensor
317321
- pulsedlight,lidar-lite-v2
322+
# Renesas HS3001 Temperature and Relative Humidity Sensors
323+
- renesas,hs3001
318324
# Renesas ISL29501 time-of-flight sensor
319325
- renesas,isl29501
320326
# Rohm DH2228FV

Documentation/hwmon/hs3001.rst

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
.. SPDX-License-Identifier: GPL-2.0-or-later
2+
3+
Kernel driver HS3001
4+
====================
5+
6+
Supported chips:
7+
8+
* Renesas HS3001, HS3002, HS3003, HS3004
9+
10+
Prefix: 'hs3001'
11+
12+
Addresses scanned: -
13+
14+
Datasheet: https://www.renesas.com/us/en/document/dst/hs300x-datasheet?r=417401
15+
16+
Author:
17+
18+
- Andre Werner <andre.werner@systec-electronic.com>
19+
20+
Description
21+
-----------
22+
23+
This driver implements support for the Renesas HS3001 chips, a humidity
24+
and temperature family. Temperature is measured in degrees celsius, relative
25+
humidity is expressed as a percentage. In the sysfs interface, all values are
26+
scaled by 1000, i.e. the value for 31.5 degrees celsius is 31500.
27+
28+
The device communicates with the I2C protocol. Sensors have the I2C
29+
address 0x44 by default.
30+
31+
sysfs-Interface
32+
---------------
33+
34+
=================== =================
35+
temp1_input: temperature input
36+
humidity1_input: humidity input
37+
=================== =================

Documentation/hwmon/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ Hardware Monitoring Kernel Drivers
7878
gxp-fan-ctrl
7979
hih6130
8080
hp-wmi-sensors
81+
hs3001
8182
ibmaem
8283
ibm-cffps
8384
ibmpowernv
@@ -195,7 +196,6 @@ Hardware Monitoring Kernel Drivers
195196
shtc1
196197
sis5595
197198
sl28cpld
198-
smm665
199199
smpro-hwmon
200200
smsc47b397
201201
smsc47m192

Documentation/hwmon/nct6775.rst

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,13 @@ Supported chips:
8080

8181
Datasheet: Available from Nuvoton upon request
8282

83+
* Nuvoton NCT6796D-S/NCT6799D-R
8384

85+
Prefix: 'nct6799'
86+
87+
Addresses scanned: ISA address retrieved from Super I/O registers
88+
89+
Datasheet: Available from Nuvoton upon request
8490

8591
Authors:
8692

@@ -277,4 +283,7 @@ will not reflect a usable value. It often reports unreasonably high
277283
temperatures, and in some cases the reported temperature declines if the actual
278284
temperature increases (similar to the raw PECI temperature value - see PECI
279285
specification for details). CPUTIN should therefore be ignored on ASUS
280-
boards. The CPU temperature on ASUS boards is reported from PECI 0.
286+
boards. The CPU temperature on ASUS boards is reported from PECI 0 or TSI 0.
287+
288+
NCT6796D-S and NCT6799D-R chips are very similar and their chip_id indicates
289+
they are different versions. This driver treats them the same way.

Documentation/hwmon/pmbus.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ Emerson DS1200 power modules might look as follows::
163163
.driver = {
164164
.name = "ds1200",
165165
},
166-
.probe_new = ds1200_probe,
166+
.probe = ds1200_probe,
167167
.id_table = ds1200_id,
168168
};
169169

Documentation/hwmon/smm665.rst

Lines changed: 0 additions & 187 deletions
This file was deleted.

MAINTAINERS

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9509,6 +9509,12 @@ S: Maintained
95099509
W: http://artax.karlin.mff.cuni.cz/~mikulas/vyplody/hpfs/index-e.cgi
95109510
F: fs/hpfs/
95119511

9512+
HS3001 Hardware Temperature and Humidity Sensor
9513+
M: Andre Werner <andre.werner@systec-electronic.com>
9514+
L: linux-hwmon@vger.kernel.org
9515+
S: Maintained
9516+
F: drivers/hwmon/hs3001.c
9517+
95129518
HSI SUBSYSTEM
95139519
M: Sebastian Reichel <sre@kernel.org>
95149520
S: Maintained
@@ -19625,13 +19631,6 @@ M: Nicolas Pitre <nico@fluxnic.net>
1962519631
S: Odd Fixes
1962619632
F: drivers/net/ethernet/smsc/smc91x.*
1962719633

19628-
SMM665 HARDWARE MONITOR DRIVER
19629-
M: Guenter Roeck <linux@roeck-us.net>
19630-
L: linux-hwmon@vger.kernel.org
19631-
S: Maintained
19632-
F: Documentation/hwmon/smm665.rst
19633-
F: drivers/hwmon/smm665.c
19634-
1963519634
SMSC EMC2103 HARDWARE MONITOR DRIVER
1963619635
M: Steve Glendinning <steve.glendinning@shawell.net>
1963719636
L: linux-hwmon@vger.kernel.org

drivers/hwmon/Kconfig

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,16 @@ config SENSORS_HIH6130
734734
This driver can also be built as a module. If so, the module
735735
will be called hih6130.
736736

737+
config SENSORS_HS3001
738+
tristate "Renesas HS3001 humidity and temperature sensors"
739+
depends on I2C
740+
help
741+
If you say yes here you get support for the Renesas HS3001,
742+
to HS3004 humidity and temperature sensors.
743+
744+
This driver can also be built as a module. If so, the module
745+
will be called hs3001.
746+
737747
config SENSORS_IBMAEM
738748
tristate "IBM Active Energy Manager temperature/power sensors and control"
739749
select IPMI_SI
@@ -1951,20 +1961,6 @@ config SENSORS_SFCTEMP
19511961
This driver can also be built as a module. If so, the module
19521962
will be called sfctemp.
19531963

1954-
config SENSORS_SMM665
1955-
tristate "Summit Microelectronics SMM665"
1956-
depends on I2C
1957-
help
1958-
If you say yes here you get support for the hardware monitoring
1959-
features of the Summit Microelectronics SMM665/SMM665B Six-Channel
1960-
Active DC Output Controller / Monitor.
1961-
1962-
Other supported chips are SMM465, SMM665C, SMM764, and SMM766.
1963-
Support for those chips is untested.
1964-
1965-
This driver can also be built as a module. If so, the module will
1966-
be called smm665.
1967-
19681964
config SENSORS_ADC128D818
19691965
tristate "Texas Instruments ADC128D818"
19701966
depends on I2C

drivers/hwmon/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ obj-$(CONFIG_SENSORS_GSC) += gsc-hwmon.o
8686
obj-$(CONFIG_SENSORS_GPIO_FAN) += gpio-fan.o
8787
obj-$(CONFIG_SENSORS_GXP_FAN_CTRL) += gxp-fan-ctrl.o
8888
obj-$(CONFIG_SENSORS_HIH6130) += hih6130.o
89+
obj-$(CONFIG_SENSORS_HS3001) += hs3001.o
8990
obj-$(CONFIG_SENSORS_ULTRA45) += ultra45_env.o
9091
obj-$(CONFIG_SENSORS_I5500) += i5500_temp.o
9192
obj-$(CONFIG_SENSORS_I5K_AMB) += i5k_amb.o
@@ -191,7 +192,6 @@ obj-$(CONFIG_SENSORS_SHT3x) += sht3x.o
191192
obj-$(CONFIG_SENSORS_SHT4x) += sht4x.o
192193
obj-$(CONFIG_SENSORS_SHTC1) += shtc1.o
193194
obj-$(CONFIG_SENSORS_SIS5595) += sis5595.o
194-
obj-$(CONFIG_SENSORS_SMM665) += smm665.o
195195
obj-$(CONFIG_SENSORS_SMPRO) += smpro-hwmon.o
196196
obj-$(CONFIG_SENSORS_SMSC47B397)+= smsc47b397.o
197197
obj-$(CONFIG_SENSORS_SMSC47M1) += smsc47m1.o

drivers/hwmon/ad7418.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include <linux/hwmon-sysfs.h>
1717
#include <linux/err.h>
1818
#include <linux/mutex.h>
19-
#include <linux/of_device.h>
19+
#include <linux/of.h>
2020
#include <linux/delay.h>
2121
#include <linux/slab.h>
2222

@@ -253,7 +253,7 @@ static int ad7418_probe(struct i2c_client *client)
253253
mutex_init(&data->lock);
254254
data->client = client;
255255
if (dev->of_node)
256-
data->type = (enum chips)of_device_get_match_data(dev);
256+
data->type = (uintptr_t)of_device_get_match_data(dev);
257257
else
258258
data->type = i2c_match_id(ad7418_id, client)->driver_data;
259259

0 commit comments

Comments
 (0)