Skip to content

Commit 161d2e0

Browse files
committed
Merge tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
Pull hwmon updates from Guenter Roeck: "Notable changes: - Heiko Schocher provided a driver for TI TMP103. - Kamil Debski provided a driver for pwm-controlled fans. - Neelesh Gupta provided a driver for power, fan rpm, voltage and temperature reporting on powerpc/powernv systems. - Scott Kanowitz provided a driver supporting Lattice's POWR1220 power manager IC. - Richard Zhu provided a pmbus front-end driver for TPS40422. - Frans Klaver added support for TMP112 to the lm75 driver. - Johannes Pointner added support for EPCOS B57330V2103 to the ntc_thermistor driver. - Guenter Roeck added support for TMP441 and TMP442 to the tmp421 driver. - Axel Lin converted several drivers to the new hwmon API (36 of them, if I counted correctly), and cleaned up many of the drivers along the way. There are also a number of patches fixing bugs discovered while testing Axel's changes" * tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: (88 commits) hwmon: (g762) Use of_property_read_u32 at appropriate place hwmon: (sis5595) Prevent overflow problem when writing large limits hwmon: (gpio-fan) Prevent overflow problem when writing large limits hwmon: (ibmpowernv) Use of_property_read_u32 at appropriate place hwmon: (lm85) Convert to devm_hwmon_device_register_with_groups hwmon: (lm85) Avoid forward declaration hwmon: (lm78) Convert to devm_hwmon_device_register_with_groups hwmon: (max6697) Use of_property_read_bool at appropriate places hwmon: (pwm-fan) Make SENSORS_PWM_FAN depend on OF hwmon: (pwm-fan) Remove duplicate dev_set_drvdata call hwmon: (nct6775) Remove num_attr_groups from struct nct6775_data hwmon: (nct6775) Update module description and Kconfig for NCT6106D and NCT6791D hwmon: (adt7411) Convert to devm_hwmon_device_register_with_groups hwmon: (g762) Convert to hwmon_device_register_with_groups hwmon: (emc2103) Convert to devm_hwmon_device_register_with_groups hwmon: (smsc47m1) Avoid forward declaration hwmon: (smsc47m192) Convert to devm_hwmon_device_register_with_groups hwmon: (smsc47m192) Avoid forward declaration hwmon: (max1668) Make max1668_addr_list array const hwmon: (max6639) Make normal_i2c array const ...
2 parents c489d98 + fce9626 commit 161d2e0

81 files changed

Lines changed: 4258 additions & 3885 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
IBM POWERNV platform sensors
2+
----------------------------
3+
4+
Required node properties:
5+
- compatible: must be one of
6+
"ibm,opal-sensor-cooling-fan"
7+
"ibm,opal-sensor-amb-temp"
8+
"ibm,opal-sensor-power-supply"
9+
"ibm,opal-sensor-power"
10+
- sensor-id: an opaque id provided by the firmware to the kernel, identifies a
11+
given sensor and its attribute data
12+
13+
Example sensors node:
14+
15+
cooling-fan#8-data {
16+
sensor-id = <0x7052107>;
17+
compatible = "ibm,opal-sensor-cooling-fan";
18+
};
19+
20+
amb-temp#1-thrs {
21+
sensor-id = <0x5096000>;
22+
compatible = "ibm,opal-sensor-amb-temp";
23+
};

‎Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ NTC Thermistor hwmon sensors
33

44
Requires node properties:
55
- "compatible" value : one of
6+
"epcos,b57330v2103"
67
"murata,ncp15wb473"
78
"murata,ncp18wb473"
89
"murata,ncp21wb473"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Bindings for a fan connected to the PWM lines
2+
3+
Required properties:
4+
- compatible : "pwm-fan"
5+
- pwms : the PWM that is used to control the PWM fan
6+
7+
Example:
8+
pwm-fan {
9+
compatible = "pwm-fan";
10+
status = "okay";
11+
pwms = <&pwm 0 10000 0>;
12+
};

‎Documentation/devicetree/bindings/i2c/trivial-devices.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,6 @@ stm,m41t80 M41T80 - SERIAL ACCESS RTC WITH ALARMS
8484
taos,tsl2550 Ambient Light Sensor with SMBUS/Two Wire Serial Interface
8585
ti,tsc2003 I2C Touch-Screen Controller
8686
ti,tmp102 Low Power Digital Temperature Sensor with SMBUS/Two Wire Serial Interface
87+
ti,tmp103 Low Power Digital Temperature Sensor with SMBUS/Two Wire Serial Interface
8788
ti,tmp275 Digital Temperature Sensor
8889
winbond,wpct301 i2c trusted platform module (TPM)

‎Documentation/devicetree/bindings/vendor-prefixes.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ dmo Data Modul AG
4242
ebv EBV Elektronik
4343
edt Emerging Display Technologies
4444
emmicro EM Microelectronic
45+
epcos EPCOS AG
4546
epfl Ecole Polytechnique Fédérale de Lausanne
4647
epson Seiko Epson Corp.
4748
est ESTeem Wireless Modems

‎Documentation/hwmon/ibmpowernv‎

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
Kernel Driver IBMPOWERNV
2+
========================
3+
4+
Supported systems:
5+
* Any recent IBM P servers based on POWERNV platform
6+
7+
Author: Neelesh Gupta
8+
9+
Description
10+
-----------
11+
12+
This driver implements reading the platform sensors data like temperature/fan/
13+
voltage/power for 'POWERNV' platform.
14+
15+
The driver uses the platform device infrastructure. It probes the device tree
16+
for sensor devices during the __init phase and registers them with the 'hwmon'.
17+
'hwmon' populates the 'sysfs' tree having attribute files, each for a given
18+
sensor type and its attribute data.
19+
20+
All the nodes in the DT appear under "/ibm,opal/sensors" and each valid node in
21+
the DT maps to an attribute file in 'sysfs'. The node exports unique 'sensor-id'
22+
which the driver uses to make an OPAL call to the firmware.
23+
24+
Usage notes
25+
-----------
26+
The driver is built statically with the kernel by enabling the config
27+
CONFIG_SENSORS_IBMPOWERNV. It can also be built as module 'ibmpowernv'.
28+
29+
Sysfs attributes
30+
----------------
31+
32+
fanX_input Measured RPM value.
33+
fanX_min Threshold RPM for alert generation.
34+
fanX_fault 0: No fail condition
35+
1: Failing fan
36+
tempX_input Measured ambient temperature.
37+
tempX_max Threshold ambient temperature for alert generation.
38+
inX_input Measured power supply voltage
39+
inX_fault 0: No fail condition.
40+
1: Failing power supply.
41+
power1_input System power consumption (microWatt)

‎Documentation/hwmon/lm75‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,14 @@ Supported chips:
4242
Addresses scanned: none
4343
Datasheet: Publicly available at the ST website
4444
http://www.st.com/internet/analog/product/121769.jsp
45-
* Texas Instruments TMP100, TMP101, TMP105, TMP75, TMP175, TMP275
46-
Prefixes: 'tmp100', 'tmp101', 'tmp105', 'tmp175', 'tmp75', 'tmp275'
45+
* Texas Instruments TMP100, TMP101, TMP105, TMP112, TMP75, TMP175, TMP275
46+
Prefixes: 'tmp100', 'tmp101', 'tmp105', 'tmp112', 'tmp175', 'tmp75', 'tmp275'
4747
Addresses scanned: none
4848
Datasheet: Publicly available at the Texas Instruments website
4949
http://www.ti.com/product/tmp100
5050
http://www.ti.com/product/tmp101
5151
http://www.ti.com/product/tmp105
52+
http://www.ti.com/product/tmp112
5253
http://www.ti.com/product/tmp75
5354
http://www.ti.com/product/tmp175
5455
http://www.ti.com/product/tmp275

‎Documentation/hwmon/ntc_thermistor‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ Supported thermistors from Murata:
66
Prefixes: 'ncp15wb473', 'ncp18wb473', 'ncp21wb473', 'ncp03wb473', 'ncp15wl333'
77
Datasheet: Publicly available at Murata
88

9+
Supported thermistors from EPCOS:
10+
* EPCOS NTC Thermistors B57330V2103
11+
Prefixes: b57330v2103
12+
Datasheet: Publicly available at EPCOS
13+
914
Other NTC thermistors can be supported simply by adding compensation
1015
tables; e.g., NCP15WL333 support is added by the table ncpXXwl333.
1116

‎Documentation/hwmon/pmbus‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@ Supported chips:
2323
http://www.lineagepower.com/oem/pdf/PDT012A0X.pdf
2424
http://www.lineagepower.com/oem/pdf/UDT020A0X.pdf
2525
http://www.lineagepower.com/oem/pdf/MDT040A0X.pdf
26-
* Texas Instruments TPS40400, TPS40422
27-
Prefixes: 'tps40400', 'tps40422'
26+
* Texas Instruments TPS40400
27+
Prefixes: 'tps40400'
2828
Addresses scanned: -
2929
Datasheets:
3030
http://www.ti.com/lit/gpn/tps40400
31-
http://www.ti.com/lit/gpn/tps40422
3231
* Generic PMBus devices
3332
Prefix: 'pmbus'
3433
Addresses scanned: -

‎Documentation/hwmon/powr1220‎

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
Kernel driver powr1220
2+
==================
3+
4+
Supported chips:
5+
* Lattice POWR1220AT8
6+
Prefix: 'powr1220'
7+
Addresses scanned: none
8+
Datasheet: Publicly available at the Lattice website
9+
http://www.latticesemi.com/
10+
11+
Author: Scott Kanowitz <scott.kanowitz@gmail.com>
12+
13+
Description
14+
-----------
15+
16+
This driver supports the Lattice POWR1220AT8 chip. The POWR1220
17+
includes voltage monitoring for 14 inputs as well as trim settings
18+
for output voltages and GPIOs. This driver implements the voltage
19+
monitoring portion of the chip.
20+
21+
Voltages are sampled by a 12-bit ADC with a step size of 2 mV.
22+
An in-line attenuator allows measurements from 0 to 6 V. The
23+
attenuator is enabled or disabled depending on the setting of the
24+
input's max value. The driver will enable the attenuator for any
25+
value over the low measurement range maximum of 2 V.
26+
27+
The input naming convention is as follows:
28+
29+
driver name pin name
30+
in0 VMON1
31+
in1 VMON2
32+
in2 VMON3
33+
in2 VMON4
34+
in4 VMON5
35+
in5 VMON6
36+
in6 VMON7
37+
in7 VMON8
38+
in8 VMON9
39+
in9 VMON10
40+
in10 VMON11
41+
in11 VMON12
42+
in12 VCCA
43+
in13 VCCINP
44+
45+
The ADC readings are updated on request with a minimum period of 1s.

0 commit comments

Comments
 (0)