Skip to content

Commit 0baf6dc

Browse files
committed
Merge tag 'hwmon-for-v6.1' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
Pull hwmon updates from Guenter Roeck: "New drivers: - Driver for MAX31760 fan speed controller - Driver for TEXAS TPS546D24 Buck Converter - Driver for EMC2301/2/3/5 RPM-based PWM Fan Speed Controller Removed drivers: - Drop obsolete asus_wmi_ec_sensors driver Cleanups, affecting various drivers: - Use DEFINE_SIMPLE_DEV_PM_OPS where appropriate - Remove forward declarations - Move from strlcpy with unused retval to strscpy - Make use of devm_clk_get_enabled() - Drop devm_of_pwm_get() Other notable cleanup and improvements: - Support for additional USB devide ID and support for reporting of rail mode via debugfs added to corsair-psu driver - Support for aditional USB ID in nzxt-smart2 driver - Support for Aquacomputer High Flow Next in aquacomputer_d5next driver - Major cleanup of pwm-fan driver - Major cleanup of mr75203 driver, and added support for new device revision And various other minor fixes and cleanups" * tag 'hwmon-for-v6.1' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: (86 commits) hwmon: (corsair-psu) add USB id of new revision of the HX1000i psu hwmon: (pmbus/mp2888) Fix sensors readouts for MPS Multi-phase mp2888 controller dt-bindings: hwmon: sensirion,shtc1: Clean up spelling mistakes and grammar hwmon: (nct6683) remove unused variable in nct6683_create_attr_group hwmon: w83627hf: Reorder symbols to get rid of a few forward declarations hwmon: (ina3221) Use DEFINE_RUNTIME_DEV_PM_OPS() and pm_ptr() hwmon: (w83627ehf) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() hwmon: (tmp108) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() hwmon: (tmp103) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() hwmon: (tmp102) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() hwmon: (pwm-fan) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() hwmon: (nct6775) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() hwmon: (max6639) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() hwmon: (max31730) witch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() hwmon: (max31722) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() hwmon: (ltc2947) Switch to EXPORT_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() hwmon: (lm90) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() hwmon: (it87) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() hwmon: (gpio-fan) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() hwmon: (adt7x10) Switch to EXPORT_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() ...
2 parents b86406d + 0cf46a6 commit 0baf6dc

Some content is hidden

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

125 files changed

+6122
-4759
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/hwmon/adi,max31760.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Analog Devices MAX31760 Fan-Speed Controller
8+
9+
maintainers:
10+
- Ibrahim Tilki <Ibrahim.Tilki@analog.com>
11+
12+
description: |
13+
Analog Devices MAX31760 Fan-Speed Controller
14+
https://datasheets.maximintegrated.com/en/ds/MAX31760.pdf
15+
16+
properties:
17+
compatible:
18+
enum:
19+
- adi,max31760
20+
21+
reg:
22+
description: I2C address of slave device.
23+
minimum: 0x50
24+
maximum: 0x57
25+
26+
required:
27+
- compatible
28+
- reg
29+
30+
additionalProperties: false
31+
32+
examples:
33+
- |
34+
i2c {
35+
#address-cells = <1>;
36+
#size-cells = <0>;
37+
38+
fan-controller@50 {
39+
reg = <0x50>;
40+
compatible = "adi,max31760";
41+
};
42+
};

Documentation/devicetree/bindings/hwmon/microchip,sparx5-temp.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ properties:
2222

2323
clocks:
2424
items:
25-
- description: AHB reference clock
25+
- description: System reference clock
2626

2727
'#thermal-sensor-cells':
2828
const: 0
@@ -40,5 +40,5 @@ examples:
4040
compatible = "microchip,sparx5-temp";
4141
reg = <0x10508110 0xc>;
4242
#thermal-sensor-cells = <0>;
43-
clocks = <&ahb_clk>;
43+
clocks = <&sys_clk>;
4444
};

Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml

Lines changed: 95 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,32 @@ title: Moortec Semiconductor MR75203 PVT Controller bindings
99
maintainers:
1010
- Rahul Tanwar <rtanwar@maxlinear.com>
1111

12+
description: |
13+
A Moortec PVT (Process, Voltage, Temperature) monitoring logic design can
14+
include many different units.
15+
Such a design will usually consists of several Moortec's embedded analog IPs,
16+
and a single Moortec controller (mr75203) to configure and control the IPs.
17+
18+
Some of the Moortec's analog hard IPs that can be used in a design:
19+
*) Temperature Sensor (TS) - used to monitor core temperature (e.g. mr74137).
20+
*) Voltage Monitor (VM) - used to monitor voltage levels (e.g. mr74138).
21+
*) Process Detector (PD) - used to assess silicon speed (e.g. mr74139).
22+
*) Delay Chain - ring oscillator connected to the PD, used to measure IO
23+
based transistors (e.g. mr76008 ring oscillator at 1.1V, mr76007 ring
24+
oscillator at 1.8V).
25+
*) Pre Scaler - provides divide-by-X scaling of input voltage, which can then
26+
be presented for VM for measurement within its range (e.g. mr76006 -
27+
divide by 2 pre-scaler).
28+
29+
TS, VM & PD also include a digital interface, which consists of configuration
30+
inputs and measurement outputs.
31+
32+
Some of the units have number of series, each series can have slightly
33+
different characteristics.
34+
35+
The mr75203 binding describes configuration for the controller unit, but also
36+
for some of the analog IPs.
37+
1238
properties:
1339
compatible:
1440
const: moortec,mr75203
@@ -44,12 +70,76 @@ properties:
4470
"#thermal-sensor-cells":
4571
const: 1
4672

73+
moortec,vm-active-channels:
74+
description:
75+
Defines the number of channels per VM that are actually used and are
76+
connected to some input source.
77+
Maximum number of items - number of VMs.
78+
Maximum value of each item - number of channels.
79+
Minimum value of each item - 0 (which means entire VM sensor is not used).
80+
$ref: /schemas/types.yaml#/definitions/uint8-array
81+
82+
moortec,vm-pre-scaler-x2:
83+
description:
84+
Defines the channels that use a mr76006 pre-scaler to divide the input
85+
source by 2.
86+
The pre-scaler is used for input sources that exceed the VM input range.
87+
The driver uses this information to present to the user with the actual
88+
value of the voltage source.
89+
For channels that are not listed, no pre-scaler is assumed.
90+
Maximum number of items - total number of channels in all VMs.
91+
Each channel should not appear more than once.
92+
$ref: /schemas/types.yaml#/definitions/uint8-array
93+
94+
moortec,ts-series:
95+
description:
96+
Definition of the temperature equation and coefficients that shall be
97+
used to convert the digital output to value in milli-Celsius.
98+
minimum: 5
99+
maximum: 6
100+
default: 5
101+
$ref: /schemas/types.yaml#/definitions/uint32
102+
103+
moortec,ts-coeff-g:
104+
description:
105+
G coefficient for temperature equation.
106+
Default for series 5 = 60000
107+
Default for series 6 = 57400
108+
multipleOf: 1000
109+
minimum: 1000
110+
$ref: /schemas/types.yaml#/definitions/uint32
111+
112+
moortec,ts-coeff-h:
113+
description:
114+
H coefficient for temperature equation.
115+
Default for series 5 = 200000
116+
Default for series 6 = 249400
117+
multipleOf: 1000
118+
minimum: 1000
119+
$ref: /schemas/types.yaml#/definitions/uint32
120+
121+
moortec,ts-coeff-cal5:
122+
description:
123+
cal5 coefficient for temperature equation.
124+
Default for series 5 = 4094
125+
Default for series 6 = 4096
126+
minimum: 1
127+
$ref: /schemas/types.yaml#/definitions/uint32
128+
129+
moortec,ts-coeff-j:
130+
description:
131+
J coefficient for temperature equation.
132+
Default for series 5 = -100
133+
Default for series 6 = 0
134+
multipleOf: 1000
135+
maximum: 0
136+
$ref: /schemas/types.yaml#/definitions/int32
137+
47138
required:
48139
- compatible
49140
- reg
50141
- reg-names
51142
- clocks
52-
- resets
53143
- "#thermal-sensor-cells"
54144

55145
additionalProperties: false
@@ -66,5 +156,9 @@ examples:
66156
intel,vm-map = [03 01 04 ff ff];
67157
clocks = <&osc0>;
68158
resets = <&rcu0 0x40 7>;
159+
moortec,vm-active-channels = /bits/ 8 <0x10 0x05>;
160+
moortec,vm-pre-scaler-x2 = /bits/ 8 <5 6 20>;
161+
moortec,ts-coeff-g = <61400>;
162+
moortec,ts-coeff-h = <253700>;
69163
#thermal-sensor-cells = <1>;
70164
};

Documentation/devicetree/bindings/hwmon/sensirion,shtc1.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ maintainers:
1010
- Christopher Ruehl chris.ruehl@gtsys.com.hk
1111

1212
description: |
13-
The SHTC1, SHTW1 and SHTC3 are digital humidity and temperature sensor
13+
The SHTC1, SHTW1 and SHTC3 are digital humidity and temperature sensors
1414
designed especially for battery-driven high-volume consumer electronics
1515
applications.
1616
For further information refere to Documentation/hwmon/shtc1.rst
@@ -31,13 +31,13 @@ properties:
3131
sensirion,blocking-io:
3232
$ref: /schemas/types.yaml#/definitions/flag
3333
description:
34-
If set, the driver hold the i2c bus until measurement is finished.
34+
If set, the driver holds the i2c bus until the measurement is finished.
3535

3636
sensirion,low-precision:
3737
$ref: /schemas/types.yaml#/definitions/flag
3838
description:
39-
If set, the sensor aquire data with low precision (not recommended).
40-
The driver aquire data with high precision by default.
39+
If set, the sensor acquires data with low precision (not recommended).
40+
The driver acquires data with high precision by default.
4141

4242
required:
4343
- compatible

Documentation/devicetree/bindings/vendor-prefixes.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,8 @@ patternProperties:
819819
description: MNT Research GmbH
820820
"^modtronix,.*":
821821
description: Modtronix Engineering
822+
"^moortec,.*":
823+
description: Moortec Semiconductor Ltd.
822824
"^mosaixtech,.*":
823825
description: Mosaix Technologies, Inc.
824826
"^motorola,.*":

Documentation/driver-api/driver-model/devres.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,6 @@ POWER
404404

405405
PWM
406406
devm_pwm_get()
407-
devm_of_pwm_get()
408407
devm_fwnode_pwm_get()
409408

410409
REGULATOR

Documentation/driver-api/pwm.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ after usage with pwm_free().
4040

4141
New users should use the pwm_get() function and pass to it the consumer
4242
device or a consumer name. pwm_put() is used to free the PWM device. Managed
43-
variants of the getter, devm_pwm_get(), devm_of_pwm_get(),
44-
devm_fwnode_pwm_get(), also exist.
43+
variants of the getter, devm_pwm_get() and devm_fwnode_pwm_get(), also exist.
4544

4645
After being requested, a PWM has to be configured using::
4746

Documentation/hwmon/aquacomputer_d5next.rst

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Supported devices:
1010
* Aquacomputer Farbwerk 360 RGB controller
1111
* Aquacomputer Octo fan controller
1212
* Aquacomputer Quadro fan controller
13+
* Aquacomputer High Flow Next sensor
1314

1415
Author: Aleksa Savic
1516

@@ -20,25 +21,35 @@ This driver exposes hardware sensors of listed Aquacomputer devices, which
2021
communicate through proprietary USB HID protocols.
2122

2223
For the D5 Next pump, available sensors are pump and fan speed, power, voltage
23-
and current, as well as coolant temperature. Also available through debugfs are
24-
the serial number, firmware version and power-on count. Attaching a fan to it is
25-
optional and allows it to be controlled using temperature curves directly from the
26-
pump. If it's not connected, the fan-related sensors will report zeroes.
24+
and current, as well as coolant temperature and eight virtual temp sensors. Also
25+
available through debugfs are the serial number, firmware version and power-on
26+
count. Attaching a fan to it is optional and allows it to be controlled using
27+
temperature curves directly from the pump. If it's not connected, the fan-related
28+
sensors will report zeroes.
2729

2830
The pump can be configured either through software or via its physical
2931
interface. Configuring the pump through this driver is not implemented, as it
3032
seems to require sending it a complete configuration. That includes addressable
3133
RGB LEDs, for which there is no standard sysfs interface. Thus, that task is
3234
better suited for userspace tools.
3335

34-
The Octo exposes four temperature sensors and eight PWM controllable fans, along
35-
with their speed (in RPM), power, voltage and current.
36+
The Octo exposes four physical and sixteen virtual temperature sensors, as well as
37+
eight PWM controllable fans, along with their speed (in RPM), power, voltage and
38+
current.
3639

37-
The Quadro exposes four temperature sensors, a flow sensor and four PWM controllable
38-
fans, along with their speed (in RPM), power, voltage and current.
40+
The Quadro exposes four physical and sixteen virtual temperature sensors, a flow
41+
sensor and four PWM controllable fans, along with their speed (in RPM), power,
42+
voltage and current.
3943

40-
The Farbwerk and Farbwerk 360 expose four temperature sensors. Depending on the device,
41-
not all sysfs and debugfs entries will be available.
44+
The Farbwerk and Farbwerk 360 expose four temperature sensors. Additionally,
45+
sixteen virtual temperature sensors of the Farbwerk 360 are exposed.
46+
47+
The High Flow Next exposes +5V voltages, water quality, conductivity and flow readings.
48+
A temperature sensor can be connected to it, in which case it provides its reading
49+
and an estimation of the dissipated/absorbed power in the liquid cooling loop.
50+
51+
Depending on the device, not all sysfs and debugfs entries will be available.
52+
Writing to virtual temperature sensors is not currently supported.
4253

4354
Usage notes
4455
-----------
@@ -49,14 +60,14 @@ the kernel and supports hotswapping.
4960
Sysfs entries
5061
-------------
5162

52-
================ ==============================================
53-
temp[1-4]_input Temperature sensors (in millidegrees Celsius)
63+
================ ==============================================================
64+
temp[1-20]_input Physical/virtual temperature sensors (in millidegrees Celsius)
5465
fan[1-8]_input Pump/fan speed (in RPM) / Flow speed (in dL/h)
5566
power[1-8]_input Pump/fan power (in micro Watts)
5667
in[0-7]_input Pump/fan voltage (in milli Volts)
5768
curr[1-8]_input Pump/fan current (in milli Amperes)
5869
pwm[1-8] Fan PWM (0 - 255)
59-
================ ==============================================
70+
================ ==============================================================
6071

6172
Debugfs entries
6273
---------------

Documentation/hwmon/asus_wmi_ec_sensors.rst

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

Documentation/hwmon/corsair-psu.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Supported devices:
1515

1616
Corsair HX850i
1717

18-
Corsair HX1000i
18+
Corsair HX1000i (revision 1 and 2)
1919

2020
Corsair HX1200i
2121

@@ -86,8 +86,9 @@ Debugfs entries
8686
---------------
8787

8888
======================= ========================================================
89-
uptime Current uptime of the psu
89+
ocpmode Single or multi rail mode of the PCIe power connectors
90+
product Product name of the psu
91+
uptime Session uptime of the psu
9092
uptime_total Total uptime of the psu
9193
vendor Vendor name of the psu
92-
product Product name of the psu
9394
======================= ========================================================

0 commit comments

Comments
 (0)