Skip to content

Commit

Permalink
Merge tag 'hwmon-for-linus-v4.5' of git://git.kernel.org/pub/scm/linu…
Browse files Browse the repository at this point in the history
…x/kernel/git/groeck/linux-staging

Pull hwmon updates from Guenter Roeck:
 "Notable hwmon changes:

   - Add basic support for NCT6683 on Mitac boards
   - Add support for AMD new 15h processors to fam15h_power driver
   - Add pmbus client driver for LTC3815
   - Remove htu21 driver (now supported by iio subsystem)"

* tag 'hwmon-for-linus-v4.5' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
  hwmon: (nct6683) Add basic support for NCT6683 on Mitac boards
  hwmon: (ibmaem) constify aem_rw_sensor_template and aem_ro_sensor_template structures
  hwmon: (nct6683,nct6775) constify sensor_template_group structures
  MAINTAINERS: change the maintainer of fam15h_power driver
  hwmon: (fam15h_power) Add support for AMD new 15h processors
  hwmon: (pmbus) Add client driver for LTC3815
  hwmon: (htu21) Remove driver
  • Loading branch information
torvalds committed Jan 12, 2016
2 parents e795e5f + 91918d1 commit 2634bf2
Show file tree
Hide file tree
Showing 14 changed files with 381 additions and 268 deletions.
8 changes: 8 additions & 0 deletions CREDITS
Original file line number Diff line number Diff line change
Expand Up @@ -1507,6 +1507,14 @@ S: 312/107 Canberra Avenue
S: Griffith, ACT 2603
S: Australia

N: Andreas Herrmann
E: [email protected]
E: [email protected]
D: Key developer of x86/AMD64
D: Author of AMD family 15h processor power monitoring driver
D: Maintainer of AMD Athlon 64 and Opteron processor frequency driver
S: Germany

N: Sebastian Hetze
E: [email protected]
D: German Linux Documentation,
Expand Down
46 changes: 0 additions & 46 deletions Documentation/hwmon/htu21

This file was deleted.

61 changes: 61 additions & 0 deletions Documentation/hwmon/ltc3815
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
Kernel driver ltc3815
=====================

Supported chips:
* Linear Technology LTC3815
Prefix: 'ltc3815'
Addresses scanned: -
Datasheet: http://www.linear.com/product/ltc3815

Author: Guenter Roeck <[email protected]>


Description
-----------

LTC3815 is a Monolithic Synchronous DC/DC Step-Down Converter.


Usage Notes
-----------

This driver does not probe for PMBus devices. You will have to instantiate
devices explicitly.

Example: the following commands will load the driver for an LTC3815
at address 0x20 on I2C bus #1:

# modprobe ltc3815
# echo ltc3815 0x20 > /sys/bus/i2c/devices/i2c-1/new_device


Sysfs attributes
----------------

in1_label "vin"
in1_input Measured input voltage.
in1_alarm Input voltage alarm.
in1_highest Highest input voltage.
in1_reset_history Reset input voltage history.

in2_label "vout1".
in2_input Measured output voltage.
in2_alarm Output voltage alarm.
in2_highest Highest output voltage.
in2_reset_history Reset output voltage history.

temp1_input Measured chip temperature.
temp1_alarm Temperature alarm.
temp1_highest Highest measured temperature.
temp1_reset_history Reset temperature history.

curr1_label "iin".
curr1_input Measured input current.
curr1_highest Highest input current.
curr1_reset_history Reset input current history.

curr2_label "iout1".
curr2_input Measured output current.
curr2_alarm Output current alarm.
curr2_highest Highest output current.
curr2_reset_history Reset output current history.
4 changes: 2 additions & 2 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -614,9 +614,9 @@ F: drivers/crypto/ccp/
F: include/linux/ccp.h

AMD FAM15H PROCESSOR POWER MONITORING DRIVER
M: Andreas Herrmann <herrmann.der.user@googlemail.com>
M: Huang Rui <ray.huang@amd.com>
L: [email protected]
S: Maintained
S: Supported
F: Documentation/hwmon/fam15h_power
F: drivers/hwmon/fam15h_power.c

Expand Down
10 changes: 0 additions & 10 deletions drivers/hwmon/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -859,16 +859,6 @@ config SENSORS_MAX31790
This driver can also be built as a module. If so, the module
will be called max31790.

config SENSORS_HTU21
tristate "Measurement Specialties HTU21D humidity/temperature sensors"
depends on I2C
help
If you say yes here you get support for the Measurement Specialties
HTU21D humidity and temperature sensors.

This driver can also be built as a module. If so, the module
will be called htu21.

config SENSORS_MCP3021
tristate "Microchip MCP3021 and compatibles"
depends on I2C
Expand Down
1 change: 0 additions & 1 deletion drivers/hwmon/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ obj-$(CONFIG_SENSORS_GL518SM) += gl518sm.o
obj-$(CONFIG_SENSORS_GL520SM) += gl520sm.o
obj-$(CONFIG_SENSORS_GPIO_FAN) += gpio-fan.o
obj-$(CONFIG_SENSORS_HIH6130) += hih6130.o
obj-$(CONFIG_SENSORS_HTU21) += htu21.o
obj-$(CONFIG_SENSORS_ULTRA45) += ultra45_env.o
obj-$(CONFIG_SENSORS_I5500) += i5500_temp.o
obj-$(CONFIG_SENSORS_I5K_AMB) += i5k_amb.o
Expand Down
7 changes: 5 additions & 2 deletions drivers/hwmon/fam15h_power.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ MODULE_LICENSE("GPL");

#define MSR_F15H_CU_MAX_PWR_ACCUMULATOR 0xc001007b

#define PCI_DEVICE_ID_AMD_15H_M70H_NB_F4 0x15b4

struct fam15h_power_data {
struct pci_dev *pdev;
unsigned int tdp_to_watts;
Expand Down Expand Up @@ -124,7 +126,7 @@ static int fam15h_power_init_attrs(struct pci_dev *pdev,

if (c->x86 == 0x15 &&
(c->x86_model <= 0xf ||
(c->x86_model >= 0x60 && c->x86_model <= 0x6f)))
(c->x86_model >= 0x60 && c->x86_model <= 0x7f)))
n += 1;

fam15h_power_attrs = devm_kcalloc(&pdev->dev, n,
Expand All @@ -138,7 +140,7 @@ static int fam15h_power_init_attrs(struct pci_dev *pdev,
fam15h_power_attrs[n++] = &dev_attr_power1_crit.attr;
if (c->x86 == 0x15 &&
(c->x86_model <= 0xf ||
(c->x86_model >= 0x60 && c->x86_model <= 0x6f)))
(c->x86_model >= 0x60 && c->x86_model <= 0x7f)))
fam15h_power_attrs[n++] = &dev_attr_power1_input.attr;

data->group.attrs = fam15h_power_attrs;
Expand Down Expand Up @@ -296,6 +298,7 @@ static const struct pci_device_id fam15h_power_id_table[] = {
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_15H_NB_F4) },
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_15H_M30H_NB_F4) },
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_15H_M60H_NB_F4) },
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_15H_M70H_NB_F4) },
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_16H_NB_F4) },
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_16H_M30H_NB_F4) },
{}
Expand Down
174 changes: 0 additions & 174 deletions drivers/hwmon/htu21.c

This file was deleted.

Loading

0 comments on commit 2634bf2

Please sign in to comment.