diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-23 17:15:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-23 17:15:09 -0400 |
commit | 1259f6ee15c1603dcae41eb6af5a5f9cf932d4d6 (patch) | |
tree | bf85658f7c5a2c86da3bc613d7fea13bbffe4e72 /Documentation/hwmon | |
parent | 468f4d1a855f8039dabf441b8bf68cae264033ff (diff) | |
parent | 4573acbc461b8089198500cee06ef0cdc5b70e82 (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 for INA219 and INA226, added support for IT8782F and
IT8783E/F to it87 driver, plus cleanups in a couple of drivers."
* tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
hwmon: (it87) Make temp3 attribute conditional for IT8782F
hwmon: (it87) Convert to use devm_kzalloc and devm_request_region
hwmon: INA219 and INA226 support
hwmon: (it87) Create voltage attributes only if voltage is enabled
hwmon: (ntc_thermistor) Fix checkpatch warning
hwmon: (ntc_thermistor) Optimize and fix build warning
hwmon: (ntc_thermistor) Return error code from hwmon_device_register
hwmon: (ntc_thermistor) Convert to devm_kzalloc
hwmon: (ad7314) Remove unused defines, and rename OFFSET to SHIFT
acpi_power_meter: clean up code around setup_attrs
acpi_power_meter: drop meter_rw_attrs, use common meter_attrs
acpi_power_meter: remove duplicate code between register_{ro,rw}_attrs
acpi_power_meter: use a {RW,RO}_SENSOR_TEMPLATE macro to clean things up
acpi_power_meter: use the same struct {rw,ro}_sensor_template for both
hwmon: use module_pci_driver
hwmon: (it87) Add support for IT8782F and IT8783E/F
Diffstat (limited to 'Documentation/hwmon')
-rw-r--r-- | Documentation/hwmon/ina2xx | 29 | ||||
-rw-r--r-- | Documentation/hwmon/it87 | 28 |
2 files changed, 48 insertions, 9 deletions
diff --git a/Documentation/hwmon/ina2xx b/Documentation/hwmon/ina2xx new file mode 100644 index 000000000000..f50a6cc27616 --- /dev/null +++ b/Documentation/hwmon/ina2xx | |||
@@ -0,0 +1,29 @@ | |||
1 | Kernel driver ina2xx | ||
2 | ==================== | ||
3 | |||
4 | Supported chips: | ||
5 | * Texas Instruments INA219 | ||
6 | Prefix: 'ina219' | ||
7 | Addresses: I2C 0x40 - 0x4f | ||
8 | Datasheet: Publicly available at the Texas Instruments website | ||
9 | http://www.ti.com/ | ||
10 | |||
11 | * Texas Instruments INA226 | ||
12 | Prefix: 'ina226' | ||
13 | Addresses: I2C 0x40 - 0x4f | ||
14 | Datasheet: Publicly available at the Texas Instruments website | ||
15 | http://www.ti.com/ | ||
16 | |||
17 | Author: Lothar Felten <l-felten@ti.com> | ||
18 | |||
19 | Description | ||
20 | ----------- | ||
21 | |||
22 | The INA219 is a high-side current shunt and power monitor with an I2C | ||
23 | interface. The INA219 monitors both shunt drop and supply voltage, with | ||
24 | programmable conversion times and filtering. | ||
25 | |||
26 | The INA226 is a current shunt and power monitor with an I2C interface. | ||
27 | The INA226 monitors both a shunt voltage drop and bus supply voltage. | ||
28 | |||
29 | The shunt value in micro-ohms can be set via platform data. | ||
diff --git a/Documentation/hwmon/it87 b/Documentation/hwmon/it87 index fba745571684..87850d86c559 100644 --- a/Documentation/hwmon/it87 +++ b/Documentation/hwmon/it87 | |||
@@ -30,6 +30,14 @@ Supported chips: | |||
30 | Prefix: 'it8728' | 30 | Prefix: 'it8728' |
31 | Addresses scanned: from Super I/O config space (8 I/O ports) | 31 | Addresses scanned: from Super I/O config space (8 I/O ports) |
32 | Datasheet: Not publicly available | 32 | Datasheet: Not publicly available |
33 | * IT8782F | ||
34 | Prefix: 'it8782' | ||
35 | Addresses scanned: from Super I/O config space (8 I/O ports) | ||
36 | Datasheet: Not publicly available | ||
37 | * IT8783E/F | ||
38 | Prefix: 'it8783' | ||
39 | Addresses scanned: from Super I/O config space (8 I/O ports) | ||
40 | Datasheet: Not publicly available | ||
33 | * SiS950 [clone of IT8705F] | 41 | * SiS950 [clone of IT8705F] |
34 | Prefix: 'it87' | 42 | Prefix: 'it87' |
35 | Addresses scanned: from Super I/O config space (8 I/O ports) | 43 | Addresses scanned: from Super I/O config space (8 I/O ports) |
@@ -75,7 +83,8 @@ Description | |||
75 | ----------- | 83 | ----------- |
76 | 84 | ||
77 | This driver implements support for the IT8705F, IT8712F, IT8716F, | 85 | This driver implements support for the IT8705F, IT8712F, IT8716F, |
78 | IT8718F, IT8720F, IT8721F, IT8726F, IT8728F, IT8758E and SiS950 chips. | 86 | IT8718F, IT8720F, IT8721F, IT8726F, IT8728F, IT8758E, IT8781F, IT8782F, |
87 | IT8783E/F, and SiS950 chips. | ||
79 | 88 | ||
80 | These chips are 'Super I/O chips', supporting floppy disks, infrared ports, | 89 | These chips are 'Super I/O chips', supporting floppy disks, infrared ports, |
81 | joysticks and other miscellaneous stuff. For hardware monitoring, they | 90 | joysticks and other miscellaneous stuff. For hardware monitoring, they |
@@ -99,11 +108,11 @@ The IT8716F, IT8718F, IT8720F, IT8721F/IT8758E and later IT8712F revisions | |||
99 | have support for 2 additional fans. The additional fans are supported by the | 108 | have support for 2 additional fans. The additional fans are supported by the |
100 | driver. | 109 | driver. |
101 | 110 | ||
102 | The IT8716F, IT8718F, IT8720F and IT8721F/IT8758E, and late IT8712F and | 111 | The IT8716F, IT8718F, IT8720F, IT8721F/IT8758E, IT8782F, IT8783E/F, and late |
103 | IT8705F also have optional 16-bit tachometer counters for fans 1 to 3. This | 112 | IT8712F and IT8705F also have optional 16-bit tachometer counters for fans 1 to |
104 | is better (no more fan clock divider mess) but not compatible with the older | 113 | 3. This is better (no more fan clock divider mess) but not compatible with the |
105 | chips and revisions. The 16-bit tachometer mode is enabled by the driver when | 114 | older chips and revisions. The 16-bit tachometer mode is enabled by the driver |
106 | one of the above chips is detected. | 115 | when one of the above chips is detected. |
107 | 116 | ||
108 | The IT8726F is just bit enhanced IT8716F with additional hardware | 117 | The IT8726F is just bit enhanced IT8716F with additional hardware |
109 | for AMD power sequencing. Therefore the chip will appear as IT8716F | 118 | for AMD power sequencing. Therefore the chip will appear as IT8716F |
@@ -131,9 +140,10 @@ inputs can measure voltages between 0 and 4.08 volts, with a resolution of | |||
131 | 0.016 volt (except IT8721F/IT8758E and IT8728F: 0.012 volt.) The battery | 140 | 0.016 volt (except IT8721F/IT8758E and IT8728F: 0.012 volt.) The battery |
132 | voltage in8 does not have limit registers. | 141 | voltage in8 does not have limit registers. |
133 | 142 | ||
134 | On the IT8721F/IT8758E, some voltage inputs are internal and scaled inside | 143 | On the IT8721F/IT8758E, IT8782F, and IT8783E/F, some voltage inputs are |
135 | the chip (in7, in8 and optionally in3). The driver handles this transparently | 144 | internal and scaled inside the chip (in7 (optional for IT8782F and IT8783E/F), |
136 | so user-space doesn't have to care. | 145 | in8 and optionally in3). The driver handles this transparently so user-space |
146 | doesn't have to care. | ||
137 | 147 | ||
138 | The VID lines (IT8712F/IT8716F/IT8718F/IT8720F) encode the core voltage value: | 148 | The VID lines (IT8712F/IT8716F/IT8718F/IT8720F) encode the core voltage value: |
139 | the voltage level your processor should work with. This is hardcoded by | 149 | the voltage level your processor should work with. This is hardcoded by |