aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-07-03 22:56:35 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-03 22:56:35 -0400
commitddcf6600b133697adbafd96e080818bdc0dfd028 (patch)
treef382f8eaca3cc2d298542ae9599ce49884127d0e
parentc16bfeb264decb964742067f02fdd51494e25e64 (diff)
parenta50d9a4d9ad3c71341788099d733e4151b8a511b (diff)
Merge tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
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()
-rw-r--r--Documentation/devicetree/bindings/hwmon/g762.txt47
-rw-r--r--Documentation/devicetree/bindings/i2c/ina2xx.txt22
-rw-r--r--Documentation/hwmon/ds1621144
-rw-r--r--Documentation/hwmon/g76265
-rw-r--r--Documentation/hwmon/ina2xx4
-rw-r--r--drivers/hwmon/Kconfig21
-rw-r--r--drivers/hwmon/Makefile1
-rw-r--r--drivers/hwmon/abituguru3.c1
-rw-r--r--drivers/hwmon/adm1021.c32
-rw-r--r--drivers/hwmon/coretemp.c2
-rw-r--r--drivers/hwmon/ds1621.c226
-rw-r--r--drivers/hwmon/g762.c1149
-rw-r--r--drivers/hwmon/i5k_amb.c2
-rw-r--r--drivers/hwmon/iio_hwmon.c1
-rw-r--r--drivers/hwmon/ina2xx.c5
-rw-r--r--drivers/hwmon/nct6775.c92
-rw-r--r--drivers/hwmon/ntc_thermistor.c1
-rw-r--r--drivers/hwmon/w83627ehf.c2
-rw-r--r--include/linux/platform_data/g762.h37
19 files changed, 1743 insertions, 111 deletions
diff --git a/Documentation/devicetree/bindings/hwmon/g762.txt b/Documentation/devicetree/bindings/hwmon/g762.txt
new file mode 100644
index 000000000000..25cc6d8ee575
--- /dev/null
+++ b/Documentation/devicetree/bindings/hwmon/g762.txt
@@ -0,0 +1,47 @@
1GMT G762/G763 PWM Fan controller
2
3Required node properties:
4
5 - "compatible": must be either "gmt,g762" or "gmt,g763"
6 - "reg": I2C bus address of the device
7 - "clocks": a fixed clock providing input clock frequency
8 on CLK pin of the chip.
9
10Optional properties:
11
12 - "fan_startv": fan startup voltage. Accepted values are 0, 1, 2 and 3.
13 The higher the more.
14
15 - "pwm_polarity": pwm polarity. Accepted values are 0 (positive duty)
16 and 1 (negative duty).
17
18 - "fan_gear_mode": fan gear mode. Supported values are 0, 1 and 2.
19
20If an optional property is not set in .dts file, then current value is kept
21unmodified (e.g. u-boot installed value).
22
23Additional information on operational parameters for the device is available
24in Documentation/hwmon/g762. A detailed datasheet for the device is available
25at http://natisbad.org/NAS/refs/GMT_EDS-762_763-080710-0.2.pdf.
26
27Example g762 node:
28
29 clocks {
30 #address-cells = <1>;
31 #size-cells = <0>;
32
33 g762_clk: fixedclk {
34 compatible = "fixed-clock";
35 #clock-cells = <0>;
36 clock-frequency = <8192>;
37 }
38 }
39
40 g762: g762@3e {
41 compatible = "gmt,g762";
42 reg = <0x3e>;
43 clocks = <&g762_clk>
44 fan_gear_mode = <0>; /* chip default */
45 fan_startv = <1>; /* chip default */
46 pwm_polarity = <0>; /* chip default */
47 };
diff --git a/Documentation/devicetree/bindings/i2c/ina2xx.txt b/Documentation/devicetree/bindings/i2c/ina2xx.txt
new file mode 100644
index 000000000000..a2ad85d7e747
--- /dev/null
+++ b/Documentation/devicetree/bindings/i2c/ina2xx.txt
@@ -0,0 +1,22 @@
1ina2xx properties
2
3Required properties:
4- compatible: Must be one of the following:
5 - "ti,ina219" for ina219
6 - "ti,ina220" for ina220
7 - "ti,ina226" for ina226
8 - "ti,ina230" for ina230
9- reg: I2C address
10
11Optional properties:
12
13- shunt-resistor
14 Shunt resistor value in micro-Ohm
15
16Example:
17
18ina220@44 {
19 compatible = "ti,ina220";
20 reg = <0x44>;
21 shunt-resistor = <1000>;
22};
diff --git a/Documentation/hwmon/ds1621 b/Documentation/hwmon/ds1621
index 5e97f333c4df..896cdc972ca8 100644
--- a/Documentation/hwmon/ds1621
+++ b/Documentation/hwmon/ds1621
@@ -2,16 +2,30 @@ Kernel driver ds1621
2==================== 2====================
3 3
4Supported chips: 4Supported chips:
5 * Dallas Semiconductor DS1621 5 * Dallas Semiconductor / Maxim Integrated DS1621
6 Prefix: 'ds1621' 6 Prefix: 'ds1621'
7 Addresses scanned: I2C 0x48 - 0x4f 7 Addresses scanned: none
8 Datasheet: Publicly available at the Dallas Semiconductor website 8 Datasheet: Publicly available from www.maximintegrated.com
9 http://www.dalsemi.com/ 9
10 * Dallas Semiconductor DS1625 10 * Dallas Semiconductor DS1625
11 Prefix: 'ds1621' 11 Prefix: 'ds1625'
12 Addresses scanned: I2C 0x48 - 0x4f 12 Addresses scanned: none
13 Datasheet: Publicly available at the Dallas Semiconductor website 13 Datasheet: Publicly available from www.datasheetarchive.com
14 http://www.dalsemi.com/ 14
15 * Maxim Integrated DS1631
16 Prefix: 'ds1631'
17 Addresses scanned: none
18 Datasheet: Publicly available from www.maximintegrated.com
19
20 * Maxim Integrated DS1721
21 Prefix: 'ds1721'
22 Addresses scanned: none
23 Datasheet: Publicly available from www.maximintegrated.com
24
25 * Maxim Integrated DS1731
26 Prefix: 'ds1731'
27 Addresses scanned: none
28 Datasheet: Publicly available from www.maximintegrated.com
15 29
16Authors: 30Authors:
17 Christian W. Zuckschwerdt <zany@triq.net> 31 Christian W. Zuckschwerdt <zany@triq.net>
@@ -59,5 +73,115 @@ any of the limits have ever been met or exceeded since last power-up or
59reset. Be aware: When testing, it showed that the status of Tout can change 73reset. Be aware: When testing, it showed that the status of Tout can change
60with neither of the alarms set. 74with neither of the alarms set.
61 75
62Temperature conversion of the DS1621 takes up to 1000ms; internal access to 76Since there is no version or vendor identification register, there is
63non-volatile registers may last for 10ms or below. 77no unique identification for these devices. Therefore, explicit device
78instantiation is required for correct device identification and functionality
79(one device per address in this address range: 0x48..0x4f).
80
81The DS1625 is pin compatible and functionally equivalent with the DS1621,
82but the DS1621 is meant to replace it. The DS1631, DS1721, and DS1731 are
83also pin compatible with the DS1621 and provide multi-resolution support.
84
85Additionally, the DS1721 data sheet says the temperature flags (THF and TLF)
86are used internally, however, these flags do get set and cleared as the actual
87temperature crosses the min or max settings (which by default are set to 75
88and 80 degrees respectively).
89
90Temperature Conversion:
91-----------------------
92DS1621 - 750ms (older devices may take up to 1000ms)
93DS1625 - 500ms
94DS1631 - 93ms..750ms for 9..12 bits resolution, respectively.
95DS1721 - 93ms..750ms for 9..12 bits resolution, respectively.
96DS1731 - 93ms..750ms for 9..12 bits resolution, respectively.
97
98Note:
99On the DS1621, internal access to non-volatile registers may last for 10ms
100or less (unverified on the other devices).
101
102Temperature Accuracy:
103---------------------
104DS1621: +/- 0.5 degree Celsius (from 0 to +70 degrees)
105DS1625: +/- 0.5 degree Celsius (from 0 to +70 degrees)
106DS1631: +/- 0.5 degree Celsius (from 0 to +70 degrees)
107DS1721: +/- 1.0 degree Celsius (from -10 to +85 degrees)
108DS1731: +/- 1.0 degree Celsius (from -10 to +85 degrees)
109
110Note:
111Please refer to the device datasheets for accuracy at other temperatures.
112
113Temperature Resolution:
114-----------------------
115As mentioned above, the DS1631, DS1721, and DS1731 provide multi-resolution
116support, which is achieved via the R0 and R1 config register bits, where:
117
118R0..R1
119------
120 0 0 => 9 bits, 0.5 degrees Celcius
121 1 0 => 10 bits, 0.25 degrees Celcius
122 0 1 => 11 bits, 0.125 degrees Celcius
123 1 1 => 12 bits, 0.0625 degrees Celcius
124
125Note:
126At initial device power-on, the default resolution is set to 12-bits.