04 Aug, 2014

9 commits

  • The pwm-fan driver enables control of fans connected to PWM lines.
    This driver uses the PWM framework, so it is compatible with all
    PWM devices that provide drivers through the PWM framework.

    Signed-off-by: Kamil Debski
    Reviewed-by: Varka Bhadram
    Reviewed-by: Tobias Klauser
    [Guenter Roeck: Last argument to devm_of_pwm_get is pointer, use NULL]
    Signed-off-by: Guenter Roeck

    Kamil Debski
     
  • This patch adds basic kernel support for reading power values, fan
    speed rpm, voltage and temperature data on powernv platforms which
    will be exported to user space through sysfs interface.

    Test results:
    -------------
    [root@tul163p1 ~]# sensors
    ibmpowernv-isa-0000
    Adapter: ISA adapter
    fan1: 5465 RPM (min = 0 RPM)
    fan2: 5152 RPM (min = 0 RPM)
    fan3: 5521 RPM (min = 0 RPM)
    fan4: 4891 RPM (min = 0 RPM)
    fan5: 0 RPM (min = 0 RPM)
    fan6: 0 RPM (min = 0 RPM)
    fan7: 7480 RPM (min = 0 RPM)
    fan8: 7944 RPM (min = 0 RPM)
    temp1: +39.0°C (high = +0.0°C)
    power1: 190.00 W

    [root@tul163p1 ~]# ls /sys/devices/platform/
    alarmtimer ibmpowernv.0 power rtc-generic serial8250 uevent
    [root@tul163p1 ~]# ls /sys/devices/platform/ibmpowernv.0/hwmon/hwmon0/
    device fan2_min fan4_min fan6_min fan8_min power
    fan1_fault fan3_fault fan5_fault fan7_fault in1_fault power1_input
    fan1_input fan3_input fan5_input fan7_input in2_fault subsystem
    fan1_min fan3_min fan5_min fan7_min in3_fault temp1_input
    fan2_fault fan4_fault fan6_fault fan8_fault in4_fault temp1_max
    fan2_input fan4_input fan6_input fan8_input name uevent
    [root@tul163p1 ~]# ls /sys/class/hwmon/hwmon0/
    device fan2_min fan4_min fan6_min fan8_min power
    fan1_fault fan3_fault fan5_fault fan7_fault in1_fault power1_input
    fan1_input fan3_input fan5_input fan7_input in2_fault subsystem
    fan1_min fan3_min fan5_min fan7_min in3_fault temp1_input
    fan2_fault fan4_fault fan6_fault fan8_fault in4_fault temp1_max
    fan2_input fan4_input fan6_input fan8_input name uevent
    [root@tul163p1 ~]#

    Signed-off-by: Neelesh Gupta
    Signed-off-by: Guenter Roeck

    Neelesh Gupta
     
  • For TI power management chip TPS40422, READ_TEMPERATURE_2 command is supported on
    page 1 of the chip, but the original driver(pmbus.c) only tried to detect this command
    on page 0, this will lead to a result that the temperature sensor in page 1 couldn't
    be detected. This change is to isolate the tps40422 driver from pmbus.c into a solo
    front-end driver.

    Signed-off-by: Zhu Laiwen
    [Guenter Roeck: Dropped unnecessary license text (fixes checkpatch warning)]
    Signed-off-by: Guenter Roeck

    Zhu, Richard \(NSN - CN/Beijing\)
     
  • TMP441 and TMP442 are compatible to TMP421 and TMP422.

    Signed-off-by: Guenter Roeck
    Reviewed-by: Jean Delvare

    Guenter Roeck
     
  • Not all supported chips support the entire I2C address range.
    Only accept specific chips at the addresses supported by that chip.
    Check for invalid values in conversion rate and status registers.

    Signed-off-by: Guenter Roeck
    Reviewed-by: Jean Delvare

    Guenter Roeck
     
  • This patch adds support for the ntc thermistor B57330V2103 from EPCOS.

    Signed-off-by: Johannes Pointner
    Signed-off-by: Guenter Roeck

    Johannes Pointner
     
  • TMP112 is compatible to LM75.

    Signed-off-by: Frans Klaver
    Signed-off-by: Guenter Roeck

    Frans Klaver
     
  • Driver for the TI TMP103.

    The TI TMP103 is similar to the TMP102. It differs from the TMP102
    by having only 8 bit registers.

    Signed-off-by: Heiko Schocher
    [linux@roeck-us.net: Select REGMAP_I2C in Kconfig]
    Signed-off-by: Guenter Roeck

    Heiko Schocher
     
  • This patch adds support for Lattice's POWR1220 power manager IC. Read
    access to all the ADCs on the chip are supported through the hwmon
    sysfs files.

    Signed-off-by: Scott Kanowitz
    [Guenter Roeck: Removed some extra ( )]
    Signed-off-by: Guenter Roeck

    Scott Kanowitz
     

25 Jun, 2014

1 commit

  • Murata Manufacturing Co., Ltd is the vendor for
    NTC (Negative Temperature coefficient) based Thermistors.
    But, the driver extensively uses "NTC" as the vendor name.

    This patch corrects the vendor name also updates the
    compatibility strings according to the vendor-prefix.txt

    Note: Drivers continue to support the previous compatible strings
    but further addition of these compatible strings in device tree
    is deprecated.

    Signed-off-by: Naveen Krishna Chatradhi
    Reviewed-by: Javier Martinez Canillas
    Signed-off-by: Guenter Roeck

    Naveen Krishna Chatradhi
     

12 Jun, 2014

1 commit


04 Jun, 2014

1 commit

  • …eck/linux-staging into next

    Pull hwmon updates from Guenter Roeck:
    "New driver for NCT6683D

    New chip support to existing drivers:
    - add support for STTS2004 and AT30TSE004 to jc42 driver
    - add support for EMC1402/EMC1412/EMC1422 to emc1403 driver

    Other notable changes:
    - document hwmon kernel API
    - convert jc42, lm70, lm75, lm77, lm83, lm92, max1619, tmp421, and
    tmp102 drivers to use new hwmon API functions
    - replace function macros in lm80, lm92, and jc42 drivers with real
    code
    - convert emc1403 driver to use regmap, add support for additional
    attributes, and add device IDs for EMC1412, EMC1413, and EMC1414
    - various additional cleanup and minor bug fixes in several drivers"

    * tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: (60 commits)
    hwmon: (nct6775) Fix probe unwind paths to properly unregister platform devices
    hwmon: (nct6683) Fix probe unwind paths to properly unregister platform devices
    hwmon: (ultra45_env) Introduce managed version of kzalloc
    hwmon: Driver for NCT6683D
    hwmon: (lm80) Rearrange code to avoid forward declarations
    hwmon: (lm80) Convert fan display function macros into functions
    hwmon: (lm80) Convert voltage display function macros into functions
    hwmon: (lm80) Convert temperature display function macros into functions
    hwmon: (lm80) Normalize all temperature values to 16 bit
    hwmon: (lm80) Simplify TEMP_FROM_REG
    hwmon: (lm83) Convert to use devm_hwmon_device_register_with_groups
    hwmon: (lm83) Rearange code to avoid forward declarations
    hwmon: (lm83) Drop FSF address
    hwmon: (max1619) Convert to use devm_hwmon_device_register_with_groups
    hwmon: (max1619) Drop function macros
    hwmon: (max1619) Rearrange code to avoid forward declarations
    hwmon: (max1619) Drop FSF address
    hwmon: (max1619) Fix critical alarm display
    hwmon: (jc42) Add support for STTS2004 and AT30TSE004
    hwmon: (jc42) Convert function macros into functions
    ...

    Linus Torvalds
     

25 May, 2014

1 commit

  • The temp[1-*]_min_hyst sysfs attribute is already implemented by 3
    hwmon drivers (adt7x10, lm77 and lm92) but was missing from the
    standard interface.

    Also add temp[1-*]_lcrit_hyst for consistency, even though no driver
    implement that one for the time being.

    Signed-off-by: Jean Delvare
    Reviewed-by: Guenter Roeck

    Jean Delvare
     

22 May, 2014

6 commits


06 Apr, 2014

1 commit

  • Pull hwmon updates from Jean Delvare:
    "This includes a number of driver conversions to
    devm_hwmon_device_register_with_groups, a few cleanups, and
    support for the ITE IT8623E"

    * 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging:
    hwmon: (it87) Add support for IT8623E
    hwmon: (it87) Fix IT8603E define name
    hwmon: (lm90) Convert to use hwmon_device_register_with_groups
    hwmon: (lm90) Create all sysfs groups in one call
    hwmon: (lm90) Always use the dev variable in the probe function
    hwmon: (lm90) Create most optional attributes with sysfs_create_group
    hwmon: Avoid initializing the same field twice
    hwmon: (pc87360) Avoid initializing the same field twice
    hwmon: (lm80) Convert to use devm_hwmon_device_register_with_groups
    hwmon: (adm1021) Convert to use devm_hwmon_device_register_with_groups
    hwmon: (lm63) Avoid initializing the same field twice
    hwmon: (lm63) Convert to use devm_hwmon_device_register_with_groups
    hwmon: (lm63) Create all sysfs groups in one call
    hwmon: (lm63) Introduce 'dev' variable to point to client->dev
    hwmon: (lm63) Add additional sysfs group for temp2_type attribute
    hwmon: (f71805f) Fix author's address

    Linus Torvalds
     

05 Apr, 2014

1 commit


03 Apr, 2014

1 commit

  • Adding new PCI ID to support AMD F16 M30h processor (Mullins).
    While at it, modify Kconfig and Doc files to reflect the
    support for newer processors

    Note: PCI ID for this processor will make it into pci_ids.h
    as part of this patch:
    http://marc.info/?l=linux-kernel&m=139291362126057&w=2
    which should be pulled into 3.15 when merge window opens
    (It currently sits in 'for-next' branch of bp.git-
    https://git.kernel.org/cgit/linux/kernel/git/bp/bp.git/log/?h=for-next)

    Signed-off-by: Aravind Gopalakrishnan
    Signed-off-by: Guenter Roeck

    Aravind Gopalakrishnan
     

20 Mar, 2014

1 commit


04 Mar, 2014

4 commits


30 Jan, 2014

2 commits


16 Nov, 2013

1 commit


15 Nov, 2013

1 commit

  • TI TMP451 is mostly compatible with ADT7461, except for
    local temperature low byte and max conversion rate.
    Add support to the LM90 driver.

    Signed-off-by: Wei Ni
    Reviewed-by: Guenter Roeck
    Signed-off-by: Jean Delvare

    Wei Ni
     

19 Oct, 2013

3 commits


08 Sep, 2013

1 commit


07 Sep, 2013

1 commit

  • Pull trivial tree from Jiri Kosina:
    "The usual trivial updates all over the tree -- mostly typo fixes and
    documentation updates"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (52 commits)
    doc: Documentation/cputopology.txt fix typo
    treewide: Convert retrun typos to return
    Fix comment typo for init_cma_reserved_pageblock
    Documentation/trace: Correcting and extending tracepoint documentation
    mm/hotplug: fix a typo in Documentation/memory-hotplug.txt
    power: Documentation: Update s2ram link
    doc: fix a typo in Documentation/00-INDEX
    Documentation/printk-formats.txt: No casts needed for u64/s64
    doc: Fix typo "is is" in Documentations
    treewide: Fix printks with 0x%#
    zram: doc fixes
    Documentation/kmemcheck: update kmemcheck documentation
    doc: documentation/hwspinlock.txt fix typo
    PM / Hibernate: add section for resume options
    doc: filesystems : Fix typo in Documentations/filesystems
    scsi/megaraid fixed several typos in comments
    ppc: init_32: Fix error typo "CONFIG_START_KERNEL"
    treewide: Add __GFP_NOWARN to k.alloc calls with v.alloc fallbacks
    page_isolation: Fix a comment typo in test_pages_isolated()
    doc: fix a typo about irq affinity
    ...

    Linus Torvalds
     

06 Sep, 2013

1 commit


30 Aug, 2013

1 commit


27 Aug, 2013

2 commits