/openbmc/linux/Documentation/devicetree/bindings/hwmon/ |
H A D | adi,axi-fan-control.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/hwmon/adi,axi-fan-control.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Nuno Sá <nuno.sa@analog.com> 22 - adi,axi-fan-control-1.00.a 33 pulses-per-revolution: 35 Value specifying the number of pulses per revolution of the controlled 41 - compatible 42 - reg [all …]
|
H A D | pwm-fan.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/hwmon/pwm-fan.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jean Delvare <jdelvare@suse.com> 11 - Guenter Roeck <linux@roeck-us.net> 15 const: pwm-fan 17 cooling-levels: 19 $ref: /schemas/types.yaml#/definitions/uint32-array 23 fan-supply: [all …]
|
H A D | fan-common.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/hwmon/fan-common.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Naresh Solanki <naresh.solanki@9elements.com> 11 - Billy Tsai <billy_tsai@aspeedtech.com> 14 max-rpm: 20 min-rpm: 26 pulses-per-revolution: 28 The number of pulse from fan sensor per revolution. [all …]
|
/openbmc/linux/Documentation/hwmon/ |
H A D | g762.rst | 5 and performs closed-loop or open-loop control of the fan speed. Two 6 modes - PWM or DC - are supported by the device. 9 http://natisbad.org/NAS/ref/GMT_EDS-762_763-080710-0.2.pdf. sysfs 10 bindings are described in Documentation/hwmon/sysfs-interface.rst. 18 hardware characteristics of the system (reference clock, pulses per 19 fan revolution, ...); Those can be modified via devicetree bindings 25 set desired fan speed. This only makes sense in closed-loop 36 number of pulses per fan revolution. Supported values 44 in closed-loop control mode, if fan RPM value is 25% out 50 speed control (open-loop) via pwm1 described below, 2 for [all …]
|
H A D | g760a.rst | 6 * Global Mixed-mode Technology Inc. G760A 12 http://www.gmt.com.tw/product/datasheet/EDS-760A.pdf 17 ----------- 20 and performs closed-loop control of the fan speed. 23 consecutive speed pulses. The period is defined in terms of clock 31 source and a 2 pulse-per-revolution fan.
|
H A D | sl28cpld.rst | 1 .. SPDX-License-Identifier: GPL-2.0-only 17 ----------- 30 ------------- 35 fan1_input Fan RPM. Assuming 2 pulses per revolution.
|
H A D | dme1737.rst | 18 Addresses scanned: none, address read from Super-I/O config space 34 Addresses scanned: none, address read from Super-I/O config space 43 ----------------- 52 Include non-standard LPC addresses 0x162e and 0x164e 55 - VIA EPIA SN18000 59 ----------- 63 and SCH5127 Super-I/O chips. These chips feature monitoring of 3 temp sensors 64 temp[1-3] (2 remote diodes and 1 internal), 8 voltages in[0-7] (7 external and 65 1 internal) and up to 6 fan speeds fan[1-6]. Additionally, the chips implement 66 up to 5 PWM outputs pwm[1-3,5-6] for controlling fan speeds both manually and [all …]
|
H A D | smsc47b397.rst | 6 * SMSC LPC47B397-NC 8 * SMSC SCH5307-NS 20 - Mark M. Hoffman <mhoffman@lightlink.com> 21 - Utilitek Systems, Inc. 25 The following specification describes the SMSC LPC47B397-NC [1]_ sensor chip 27 provided by Craig Kelly (In-Store Broadcast Network) and edited/corrected 30 .. [1] And SMSC SCH5307-NS and SCH5317, which have different device IDs but are 33 ------------------------------------------------------------------------- 36 ------------------------------------------------------------------------- 87 -------------------------------------- [all …]
|
H A D | sysfs-interface.rst | 5 through the sysfs interface. Since lm-sensors 3.0.0, libsensors is 6 completely chip-independent. It assumes that all the kernel drivers 10 This is a major improvement compared to lm-sensors 2. 22 For this reason, even if we aim at a chip-independent libsensors, it will 37 Up to lm-sensors 3.0.0, libsensors looks for hardware monitoring attributes 38 in the "physical" device directory. Since lm-sensors 3.0.1, attributes found 46 There is only one value per file, unlike the older /proc specification. 61 to cause an alarm) is chip-dependent. 69 ---------------- 76 ------------------------------------------------------------------------- [all …]
|
/openbmc/linux/drivers/hwmon/ |
H A D | axi-fan-control.c | 1 // SPDX-License-Identifier: GPL-2.0 9 #include <linux/fpga/adi-axi-common.h> 11 #include <linux/hwmon-sysfs.h> 55 /* pulses per revolution */ 65 iowrite32(val, ctl->base + reg); in axi_iowrite() 71 return ioread32(ctl->base + reg); in axi_ioread() 76 * T = /raw * 509.3140064 / 65535) - 280.2308787 82 u32 temp = axi_ioread(attr->index, ctl); in axi_fan_control_show() 84 temp = DIV_ROUND_CLOSEST_ULL(temp * 509314ULL, 65535) - 280230; in axi_fan_control_show() 102 axi_iowrite(temp, attr->index, ctl); in axi_fan_control_store() [all …]
|
H A D | g762.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * g762 - Driver for the Global Mixed-mode Technology Inc. fan speed 15 * http://natisbad.org/NAS/refs/GMT_EDS-762_763-080710-0.2.pdf 27 * http://www.gmt.com.tw/product/datasheet/EDS-762_3.pdf 36 #include <linux/hwmon-sysfs.h> 66 #define G762_REG_FAN_CMD1_FAN_MODE 0x10 /* fan mode: closed/open-loop */ 70 #define G762_REG_FAN_CMD1_PULSE_PER_REV 0x01 /* pulse per fan revolution */ 90 /* Register data is read (and cached) at most once per second. */ 94 * Extract pulse count per fan revolution value (2 or 4) from given 130 u8 set_cnt; /* controls fan rotation speed in closed-loop mode */ [all …]
|
H A D | pwm-fan.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * pwm-fan.c - Hwmon driver for fans connected to PWM lines. 26 atomic_t pulses; member 69 atomic_inc(&tach->pulses); in pulse_handler() 77 unsigned int delta = ktime_ms_delta(ktime_get(), ctx->sample_start); in sample_timer() 81 for (i = 0; i < ctx->tach_count; i++) { in sample_timer() 82 struct pwm_fan_tach *tach = &ctx->tachs[i]; in sample_timer() 83 int pulses; in sample_timer() local 85 pulses = atomic_read(&tach->pulses); in sample_timer() 86 atomic_sub(pulses, &tach->pulses); in sample_timer() [all …]
|
H A D | sl28cpld-hwmon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 43 ret = regmap_read(hwmon->regmap, hwmon->offset + FAN_INPUT, in sl28cpld_hwmon_read() 57 * says we should assume 2 pulses per revolution. in sl28cpld_hwmon_read() 63 return -EOPNOTSUPP; in sl28cpld_hwmon_read() 91 if (!pdev->dev.parent) in sl28cpld_hwmon_probe() 92 return -ENODEV; in sl28cpld_hwmon_probe() 94 hwmon = devm_kzalloc(&pdev->dev, sizeof(*hwmon), GFP_KERNEL); in sl28cpld_hwmon_probe() 96 return -ENOMEM; in sl28cpld_hwmon_probe() 98 hwmon->regmap = dev_get_regmap(pdev->dev.parent, NULL); in sl28cpld_hwmon_probe() 99 if (!hwmon->regmap) in sl28cpld_hwmon_probe() [all …]
|
H A D | lan966x-hwmon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 17 * T = -3.4627e-11*(N^4) + 1.1023e-7*(N^3) + -1.9165e-4*(N^2) + 18 * 3.0604e-1*(N^1) + -5.6197e1 20 * where [-56.197, 136.402]C and N = [0, 1023]. 29 * T = -34627e-12*(N^4) + 110230e-9*(N^3) + -191650e-6*(N^2) + 30 * 306040e-3*(N^1) + -56197 32 * where T = [-56197, 136402]mC and N = [0, 1023]. 37 {4, -34627, 1000, 1}, 39 {2, -191650, 1000, 1}, 41 {0, -56197, 1, 1} [all …]
|
H A D | max6639.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * max6639.c - Support for Maxim MAX6639 5 * 2-Channel Temperature Monitor with Dual PWM Fan-Speed Controller 19 #include <linux/hwmon-sysfs.h> 83 u8 temp_therm[2]; /* THERM Temperature, 0..255 C (->_max) */ 84 u8 temp_alert[2]; /* ALERT Temperature, 0..255 C (->_crit) */ 85 u8 temp_ot[2]; /* OT Temperature, 0..255 C (->_emergency) */ 88 u8 ppr; /* Pulses per rotation 0..3 for 1..4 ppr */ 98 struct i2c_client *client = data->client; in max6639_update_device() 103 mutex_lock(&data->update_lock); in max6639_update_device() [all …]
|
H A D | max6620.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 20 * http://pdfserv.maxim-ic.com/en/ds/MAX6620.pdf 93 #define MAX6620_PULSE_PER_REV 2 /* Tachometer pulses per revolution */ 95 /* Minimum and maximum values of the FAN-RPM */ 163 struct i2c_client *client = data->client; in max6620_update_device() 167 mutex_lock(&data->update_lock); in max6620_update_device() 169 if (time_after(jiffies, data->last_updated + HZ) || !data->valid) { in max6620_update_device() 174 data->fancfg[i] = ret; in max6620_update_device() 179 data->fandyn[i] = ret; in max6620_update_device() 184 data->tach[i] = (ret << 3) & 0x7f8; in max6620_update_device() [all …]
|
H A D | max6650.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * max6650.c - Part of lm_sensors, Linux kernel modules for hardware 18 * http://pdfserv.maxim-ic.com/en/ds/MAX6650-MAX6651.pdf 27 #include <linux/hwmon-sysfs.h> 91 /* Minimum and maximum values of the FAN-RPM */ 143 * Useful range for dac is 0-180 for 12V fans and 0-76 for 5V fans. in dac_to_pwm() 146 return clamp_val(255 - (255 * dac) / DAC_LIMIT(v12), 0, 255); in dac_to_pwm() 153 return limit - (limit * pwm) / 255; in pwm_to_dac() 159 struct i2c_client *client = data->client; in max6650_update_device() 163 mutex_lock(&data->update_lock); in max6650_update_device() [all …]
|
H A D | dme1737.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * dme1737.c - Driver for the SMSC DME1737, Asus A8000, SMSC SCH311x, SCH5027, 4 * and SCH5127 Super-I/O chips integrated hardware monitoring 24 #include <linux/hwmon-sysfs.h> 25 #include <linux/hwmon-vid.h> 46 "Include probing of non-standard LPC addresses"); 55 /* --------------------------------------------------------------------- 61 * -------- ------------ 71 * --------------------------------------------------------------------- */ 73 /* Voltages (in) numbered 0-7 (ix) */ [all …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-hwmon | 16 The contents of the label are free-form. 135 this voltage channel is being used for, and user-space 137 user-space. 145 When disabled the sensor read will return -ENODATA. 147 - 1: Enable 148 - 0: Disable 195 Unit: revolution/min (RPM) 203 Unit: revolution/min (RPM) 212 Unit: revolution/min (RPM) 230 Number of tachometer pulses per fan revolution. [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/hwmon/pmbus/ |
H A D | max31785.txt | 9 - compatible : One of "maxim,max31785" or "maxim,max31785a" 10 - reg : I2C address, one of 0x52, 0x53, 0x54, 0x55. 11 - #address-cells : Must be 1 12 - #size-cells : Must be 0 13 - #thermal-sensor-cells : Should be 1. The device supports: 14 - One internal sensor 15 - Four external I2C digital sensors 16 - Six external thermal diodes 19 - use-stored-presence : Do not treat the devicetree description as canon for 27 ---- [all …]
|
/openbmc/linux/arch/arm64/boot/dts/freescale/ |
H A D | imx8mp-tqma8mpql-mba8mpxl.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 3 * Copyright 2021-2022 TQ-Systems GmbH 4 * Author: Alexander Stein <alexander.stein@tq-group.com> 7 /dts-v1/; 9 #include <dt-bindings/leds/common.h> 10 #include <dt-bindings/net/ti-dp83867.h> 11 #include <dt-bindings/phy/phy-imx8-pcie.h> 12 #include <dt-bindings/pwm/pwm.h> 13 #include "imx8mp-tqma8mpql.dtsi" 16 model = "TQ-Systems i.MX8MPlus TQMa8MPxL on MBa8MPxL"; [all …]
|
/openbmc/linux/arch/arm64/boot/dts/ti/ |
H A D | k3-am642-tqma64xxl-mbax4xxl.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com/ 4 * Copyright (c) 2022-2023 TQ-Systems GmbH <linux@ew.tq-group.com>, D-82229 Seefeld, Germany. 7 /dts-v1/; 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/net/ti-dp83867.h> 12 #include <dt-bindings/phy/phy.h> 13 #include <dt-bindings/pwm/pwm.h> 14 #include "k3-serdes.h" [all …]
|