23 Feb, 2017

3 commits


09 Sep, 2016

1 commit

  • This patch adds hardware temperature and power reading support for
    APM X-Gene SoC using the mailbox communication interface.

    Signed-off-by: Hoan Tran
    Reviewed-by: Guenter Roeck
    Signed-off-by: Guenter Roeck

    hotran
     

20 Jul, 2016

1 commit


28 Jun, 2016

2 commits

  • Add support for the the INA3221 26v capable, Triple channel,
    Bi-Directional, Zero-Drift, Low-/High-Side, Current/Voltage Monitor
    with I2C interface.

    Signed-off-by: Andrew F. Davis
    Signed-off-by: Guenter Roeck

    Andrew F. Davis
     
  • This driver implements support for the Sensirion SHT3x-DIS chip,
    a humidity and temperature sensor. Temperature is measured
    in degrees celsius, relative humidity is expressed as a percentage.
    In the sysfs interface, all values are scaled by 1000,
    i.e. the value for 31.5 degrees celsius is 31500.

    Signed-off-by: Pascal Sachs
    [groeck: Fixed 'Variable length array is used' gcc warning]
    Signed-off-by: Guenter Roeck

    David Frey
     

19 Apr, 2016

1 commit


09 Mar, 2016

1 commit

  • Create a driver to support the hardware monitoring chip present in
    the Zyxel NSA320 and some of the other Zyxel NAS devices.

    The driver reads fan speed and temperature from a suitably
    pre-programmed MCU on the device.

    Signed-off-by: Adam Baker
    [groeck: Dropped .owner field initialization]
    Signed-off-by: Guenter Roeck

    Adam Baker
     

05 Mar, 2016

2 commits

  • This adds support for the Linear Technology LTC2990 I2C System Monitor.
    The LTC2990 supports a combination of voltage, current and temperature
    monitoring. This driver currently only supports reading two currents
    by measuring two differential voltages across series resistors, in
    addition to the Vcc supply voltage and internal temperature.

    This is sufficient to support the Topic Miami SOM which uses this chip
    to monitor the currents flowing into the FPGA and the CPU parts.

    Signed-off-by: Mike Looijmans
    Signed-off-by: Guenter Roeck

    Mike Looijmans
     
  • The vexpress hwmon implementation is currently just called vexpress.
    This is a problem because it clashes with another module with the same
    name in regulators.

    This patch renames the vexpress hwmon implementation to vexpress-hwmon
    so that there will be no clash in the module namespace.

    Cc: Liviu Dudau
    Cc: Lorenzo Pieralisi
    Cc: Jean Delvare
    Cc: Guenter Roeck
    Cc: lm-sensors@lm-sensors.org
    Reported-by: Rusty Russell
    Signed-off-by: Sudeep Holla
    Signed-off-by: Guenter Roeck

    Sudeep Holla
     

19 Dec, 2015

1 commit

  • HTU21 is now supported by IIO, and can be instantiated as hwmon driver
    using the iio-hwmon bridge. An explicit hwmon driver is no longer needed.

    Cc: William Markezana
    Cc: Ludovic Tancerel
    Cc: Jonathan Cameron
    Reviewed-by: Jean Delvare
    Signed-off-by: Guenter Roeck

    Guenter Roeck
     

11 Nov, 2015

1 commit

  • Pull ARM SoC driver updates from Olof Johansson:
    "As we've enabled multiplatform kernels on ARM, and greatly done away
    with the contents under arch/arm/mach-*, there's still need for
    SoC-related drivers to go somewhere.

    Many of them go in through other driver trees, but we still have
    drivers/soc to hold some of the "doesn't fit anywhere" lowlevel code
    that might be shared between ARM and ARM64 (or just in general makes
    sense to not have under the architecture directory).

    This branch contains mostly such code:

    - Drivers for qualcomm SoCs for SMEM, SMD and SMD-RPM, used to
    communicate with power management blocks on these SoCs for use by
    clock, regulator and bus frequency drivers.

    - Allwinner Reduced Serial Bus driver, again used to communicate with
    PMICs.

    - Drivers for ARM's SCPI (System Control Processor). Not to be
    confused with PSCI (Power State Coordination Interface). SCPI is
    used to communicate with the assistant embedded cores doing power
    management, and we have yet to see how many of them will implement
    this for their hardware vs abstracting in other ways (or not at all
    like in the past).

    - To make confusion between SCPI and PSCI more likely, this release
    also includes an update of PSCI to interface version 1.0.

    - Rockchip support for power domains.

    - A driver to talk to the firmware on Raspberry Pi"

    * tag 'armsoc-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (57 commits)
    soc: qcom: smd-rpm: Correct size of outgoing message
    bus: sunxi-rsb: Add driver for Allwinner Reduced Serial Bus
    bus: sunxi-rsb: Add Allwinner Reduced Serial Bus (RSB) controller bindings
    ARM: bcm2835: add mutual inclusion protection
    drivers: psci: make PSCI 1.0 functions initialization version dependent
    dt-bindings: Correct paths in Rockchip power domains binding document
    soc: rockchip: power-domain: don't try to print the clock name in error case
    soc: qcom/smem: add HWSPINLOCK dependency
    clk: berlin: add cpuclk
    ARM: berlin: dts: add CLKID_CPU for BG2Q
    ARM: bcm2835: Add the Raspberry Pi firmware driver
    soc: qcom: smem: Move RPM message ram out of smem DT node
    soc: qcom: smd-rpm: Correct the active vs sleep state flagging
    soc: qcom: smd: delete unneeded of_node_put
    firmware: qcom-scm: build for correct architecture level
    soc: qcom: smd: Correct SMEM items for upper channels
    qcom-scm: add missing prototype for qcom_scm_is_available()
    qcom-scm: fix endianess issue in __qcom_scm_is_call_available
    soc: qcom: smd: Reject send of too big packets
    soc: qcom: smd: Handle big endian CPUs
    ...

    Linus Torvalds
     

14 Oct, 2015

1 commit


09 Oct, 2015

1 commit

  • Create a driver to add support for SoC sensors exported by the System
    Control Processor (SCP) via the System Control and Power Interface
    (SCPI). The supported sensor types is one of voltage, temperature,
    current, and power.

    The sensor labels and values provided by the SCP are exported via the
    hwmon sysfs interface.

    Signed-off-by: Punit Agrawal
    Acked-by: Guenter Roeck
    Cc: Sudeep Holla

    Punit Agrawal
     

27 Jun, 2015

1 commit

  • Pull char/misc driver updates from Greg KH:
    "Here's the big char/misc driver pull request for 4.2-rc1.

    Lots of mei, extcon, coresight, uio, mic, and other driver updates in
    here. Full details in the shortlog. All of these have been in
    linux-next for some time with no reported problems"

    * tag 'char-misc-4.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (176 commits)
    mei: me: wait for power gating exit confirmation
    mei: reset flow control on the last client disconnection
    MAINTAINERS: mei: add mei_cl_bus.h to maintained file list
    misc: sram: sort and clean up included headers
    misc: sram: move reserved block logic out of probe function
    misc: sram: add private struct device and virt_base members
    misc: sram: report correct SRAM pool size
    misc: sram: bump error message level on unclean driver unbinding
    misc: sram: fix device node reference leak on error
    misc: sram: fix enabled clock leak on error path
    misc: mic: Fix reported static checker warning
    misc: mic: Fix randconfig build error by including errno.h
    uio: pruss: Drop depends on ARCH_DAVINCI_DA850 from config
    uio: pruss: Add CONFIG_HAS_IOMEM dependence
    uio: pruss: Include
    extcon: Redefine the unique id of supported external connectors without 'enum extcon' type
    char:xilinx_hwicap:buffer_icap - change 1/0 to true/false for bool type variable in function buffer_icap_set_configuration().
    Drivers: hv: vmbus: Allocate ring buffer memory in NUMA aware fashion
    parport: check exclusive access before register
    w1: use correct lock on error in w1_seq_show()
    ...

    Linus Torvalds
     

22 Jun, 2015

1 commit


25 May, 2015

2 commits

  • This patch splits CONFIG_I8K compile option to SENSORS_DELL_SMM and CONFIG_I8K.
    Option SENSORS_DELL_SMM is now used to enable compilation of dell-smm-hwmon
    driver and old CONFIG_I8K option to enable /proc/i8k interface in driver.

    So this change allows to compile dell-smm-hwmon driver without legacy /proc/i8k
    interface which is needed only for old Dell Inspirion models or for userspace
    i8kutils package.

    For backward compatibility when CONFIG_I8K is enabled then also SENSORS_DELL_SMM
    is enabled and so driver dell-smm-hwmon (with /proc/i8k) is compiled.

    Signed-off-by: Pali Rohár
    Signed-off-by: Greg Kroah-Hartman

    Pali Rohár
     
  • This commit moves i8k driver to hwmon tree under name dell-smm-hwmon which is
    better name then abbreviation i8k. For backward compatibility is added macro
    MODULE_ALIAS("i8k") so modprobe will load driver also old name i8k. CONFIG_I8K
    compile option was not changed.

    This commit also adds me as maintainer of this new dell-smm-hwmon driver and
    remove Guenter Roeck from list who is implicit maintainer all hwmon drivers.

    Signed-off-by: Pali Rohár
    Signed-off-by: Greg Kroah-Hartman

    Pali Rohár
     

10 Mar, 2015

1 commit

  • The NCT7904D is a hardware monitor supporting up to 20 voltage sensors,
    internal temperature sensor, Intel PECI and AMD SB-TSI CPU temperature
    interface, up to 12 fan tachometer inputs, up to 4 fan control channels
    with SmartFan.

    Signed-off-by: Vadim V. Vlasov
    [Guenter Roeck: Fixed whitespace errors, dropped redundant comment]
    Signed-off-by: Guenter Roeck

    Vadim V. Vlasov
     

24 Jan, 2015

1 commit


01 Dec, 2014

1 commit


24 Sep, 2014

1 commit


04 Aug, 2014

4 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
     
  • 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
     

12 Jun, 2014

1 commit


22 May, 2014

1 commit


09 Apr, 2014

1 commit


03 Apr, 2014

1 commit

  • Pull main powerpc updates from Ben Herrenschmidt:
    "This time around, the powerpc merges are going to be a little bit more
    complicated than usual.

    This is the main pull request with most of the work for this merge
    window. I will describe it a bit more further down.

    There is some additional cpuidle driver work, however I haven't
    included it in this tree as it depends on some work in tip/timer-core
    which Thomas accidentally forgot to put in a topic branch. Since I
    didn't want to carry all of that tip timer stuff in powerpc -next, I
    setup a separate branch on top of Thomas tree with just that cpuidle
    driver in it, and Stephen has been carrying that in next separately
    for a while now. I'll send a separate pull request for it.

    Additionally, two new pieces in this tree add users for a sysfs API
    that Tejun and Greg have been deprecating in drivers-core-next.
    Thankfully Greg reverted the patch that removes the old API so this
    merge can happen cleanly, but once merged, I will send a patch
    adjusting our new code to the new API so that Greg can send you the
    removal patch.

    Now as for the content of this branch, we have a lot of perf work for
    power8 new counters including support for our new "nest" counters
    (also called 24x7) under pHyp (not natively yet).

    We have new functionality when running under the OPAL firmware
    (non-virtualized or KVM host), such as access to the firmware error
    logs and service processor dumps, system parameters and sensors, along
    with a hwmon driver for the latter.

    There's also a bunch of bug fixes accross the board, some LE fixes,
    and a nice set of selftests for validating our various types of copy
    loops.

    On the Freescale side, we see mostly new chip/board revisions, some
    clock updates, better support for machine checks and debug exceptions,
    etc..."

    * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (70 commits)
    powerpc/book3s: Fix CFAR clobbering issue in machine check handler.
    powerpc/compat: 32-bit little endian machine name is ppcle, not ppc
    powerpc/le: Big endian arguments for ppc_rtas()
    powerpc: Use default set of netfilter modules (CONFIG_NETFILTER_ADVANCED=n)
    powerpc/defconfigs: Enable THP in pseries defconfig
    powerpc/mm: Make sure a local_irq_disable prevent a parallel THP split
    powerpc: Rate-limit users spamming kernel log buffer
    powerpc/perf: Fix handling of L3 events with bank == 1
    powerpc/perf/hv_{gpci, 24x7}: Add documentation of device attributes
    powerpc/perf: Add kconfig option for hypervisor provided counters
    powerpc/perf: Add support for the hv 24x7 interface
    powerpc/perf: Add support for the hv gpci (get performance counter info) interface
    powerpc/perf: Add macros for defining event fields & formats
    powerpc/perf: Add a shared interface to get gpci version and capabilities
    powerpc/perf: Add 24x7 interface headers
    powerpc/perf: Add hv_gpci interface header
    powerpc: Add hvcalls for 24x7 and gpci (Get Performance Counter Info)
    sysfs: create bin_attributes under the requested group
    powerpc/perf: Enable BHRB access for EBB events
    powerpc/perf: Add BHRB constraint and IFM MMCRA handling for EBB
    ...

    Linus Torvalds
     

24 Mar, 2014

1 commit


04 Mar, 2014

4 commits


30 Aug, 2013

1 commit


28 Jun, 2013

1 commit

  • GMT G762/763 fan speed PWM controller is connected directly to a fan
    and performs closed-loop or open-loop control of the fan speed. Two
    modes - PWM or DC - are supported by the chip. Introduced driver
    provides various knobs to control the operations of the chip (via
    sysfs interface). Specific characteristics of the system can be passed
    either using board init code or via DT. Documentation for both the
    driver and DT bindings are also provided.

    Signed-off-by: Arnaud Ebalard
    Tested-by: Simon Guinot
    Signed-off-by: Guenter Roeck

    Arnaud Ebalard
     

01 May, 2013

1 commit

  • Pull battery updates from Anton Vorontsov:
    "Highlights:

    - OpenFirmware/DeviceTree support for the Power Supply core: the core
    now automatically populates supplied_from hierarchy from the device
    tree. With these patches chargers and batteries can now lookup
    each other without the board files support shim. Rhyland Klein at
    NVIDIA did the work

    - New ST-Ericsson ABX500 hwmon driver. The driver is heavily using
    the AB85xx core and depends on some recent changes to it, so that
    is why the driver comes through the battery tree. It has an
    appropriate ack from the hwmon maintainer (i.e. Guenter Roeck).
    Martin Persson at ST-Ericsson and Hongbo Zhang at Linaro authored
    the driver

    - Final bits to sync AB85xx ST-Ericsson changes into mainline. The
    changes touch mfd parts, but these were acked by the appropriate
    MFD maintainer (ie Samuel Ortiz). Lee Jones at Linaro did most of
    the work and lead the submission process.

    Minor changes, but still worth mentioning:

    - Battery temperature reporting fix for Nokia N900 phones
    - Versatile Express poweroff driver moved into drivers/power/reset/
    - Tree-wide: use devm_kzalloc() where appropriate
    - Tree-wide: dev_pm_ops cleanups/fixes"

    * tag 'for-v3.10' of git://git.infradead.org/battery-2.6: (112 commits)
    pm2301-charger: Fix suspend/resume
    charger-manager: Use kmemdup instead of kzalloc + memcpy
    power_supply: Populate supplied_from hierarchy from the device tree
    power_supply: Add core support for supplied_from
    power_supply: Define Binding for power-supplies
    rx51_battery: Fix reporting temperature
    hwmon: Add ST-Ericsson ABX500 hwmon driver
    ab8500_bmdata: Export abx500_res_to_temp tables for hwmon
    ab8500_{bmdata,fg}: Add const attributes to some data arrays
    ab8500_bmdata: Eliminate CamelCase warning of some variables
    ab8500_btemp: Make ab8500_btemp_get* interfaces public
    goldfish_battery: Use resource_size()
    lp8788-charger: Use PAGE_SIZE for the sysfs read operation
    max8925_power: Use devm_kzalloc()
    da9030_battery: Use devm_kzalloc()
    da9052-battery: Use devm_kzalloc()
    ds2760_battery: Use devm_kzalloc()
    ds2780_battery: Use devm_kzalloc()
    gpio-charger: Use devm_kzalloc()
    isp1704_charger: Use devm_kzalloc()
    ...

    Linus Torvalds
     

30 Apr, 2013

1 commit

  • Pull staging driver tree update from Greg Kroah-Hartman:
    "Here's the big staging driver tree update for 3.10-rc1

    This update contains loads of comedi driver cleanups and fixes in
    here, iio updates, android driver changes, and other various staging
    driver cleanups.

    Thanks to some drivers being removed, and the comedi driver cleanups,
    we have removed more code than we added:

    627 files changed, 65145 insertions(+), 76321 deletions(-)

    which is always nice to see.

    All of these have been in linux-next for a while."

    * tag 'staging-3.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (940 commits)
    staging: comedi: ni_labpc: fix legacy driver build
    staging: comedi: das800: cleanup the cio-das802/16 fifo comments
    staging: comedi: das800: rename CamelCase vars in das800_ai_do_cmd()
    staging: comedi: das800: tidy up the private data
    staging: comedi: das800: tidy up das800_interrupt()
    staging: comedi: das800: tidy up das800_ai_insn_read()
    staging: comedi: das800: tidy up das800_di_insn_bits()
    staging: comedi: das800: tidy up das800_do_insn_bits()
    staging: comedi: das800: remove extra divisor calculation call
    staging: comedi: das800: rename {enable,disable}_das800
    staging: comedi: das800: tidy up subdevice init
    staging: comedi: das800: allow attaching without interrupt support
    staging: comedi: das800: interrupts are required for async command support
    staging: comedi: das800: tidy up das800_ai_do_cmdtest()
    staging: comedi: das800: remove 'volatile' on private data variables
    staging: comedi: das800: cleanup the boardinfo
    staging: comedi: das800: cleanup range table declarations
    staging: comedi: das800: introduce das800_ind_{write, read}()
    staging: comedi: das800: remove forward declarations
    staging: comedi: das800: move das800_set_frequency()
    ...

    Linus Torvalds