/linux/drivers/macintosh/ |
H A D | windfarm_fcu_controls.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Windfarm PowerMac thermal control. FCU fan control 34 * This option is "weird" :) Basically, if you define this to 1 44 * what Darwin -apparently- does based on observed behaviour. 53 #define FCU_FAN_PWM 1 80 struct wf_fcu_fan *fan = ct->priv; in wf_fcu_fan_release() local 82 kref_put(&fan->fcu_priv->ref, wf_fcu_release); in wf_fcu_fan_release() 83 kfree(fan); in wf_fcu_fan_release() 91 mutex_lock(&pv->lock); in wf_fcu_read_reg() 96 nw = i2c_master_send(pv->i2c, buf, 1); in wf_fcu_read_reg() [all …]
|
H A D | windfarm_smu_controls.c | 1 // SPDX-License-Identifier: GPL-2.0-only 36 static int smu_supports_new_fans_ops = 1; 46 int fan_type; /* 0 = rpm, 1 = pwm */ 64 /* The SMU has an "old" and a "new" way of setting the fan speed in smu_set_fan() 73 buffer[1] = id; in smu_set_fan() 78 return -EINVAL; in smu_set_fan() 82 buffer[1] = 0x01 << id; in smu_set_fan() 100 printk(KERN_WARNING "windfarm: SMU failed new fan command " in smu_set_fan() 120 if (value < fct->min) in smu_fan_set() 121 value = fct->min; in smu_fan_set() [all …]
|
H A D | therm_windtunnel.c | 3 * Time-stamp: <2004/03/20 14:20:59 samuel> 7 * The G4 "windtunnel" has a single fan controlled by an 8 * ADM1030 fan controller and a DS1775 thermostat. 10 * The fan controller is equipped with a temperature sensor 13 * behavior of the fan. It is based upon empirical observations 58 struct i2c_client *fan; member 60 int overheat_temp; /* 100% fan at this temp */ 79 { 11, T(0,0), 11 }, /* min fan */ 89 { 2, T(60,1), 2 }, 90 { 1, 0xfffff, 1 } /* on fire */ [all …]
|
/linux/Documentation/hwmon/ |
H A D | dell-smm-hwmon.rst | 1 .. SPDX-License-Identifier: GPL-2.0-or-later 5 Kernel driver dell-smm-hwmon 8 :Copyright: |copy| 2002-2005 Massimo Dal Zotto <dz@debian.org> 12 ----------- 18 automatically adjust fan speed (please notice that it currently uses 24 ------------------- 35 fan[1-3]_input RO Fan speed in RPM. 36 fan[1-3]_label RO Fan label. 37 fan[1-3]_min RO Minimal Fan speed in RPM 38 fan[1-3]_max RO Maximal Fan speed in RPM [all …]
|
H A D | nct6775.rst | 19 * Nuvoton NCT5572D/NCT6771F/NCT6772F/NCT6775F/W83677HG-I 83 * Nuvoton NCT6796D-S/NCT6799D-R 93 Guenter Roeck <linux@roeck-us.net> 96 ----------- 106 There are 4 to 5 fan rotation speed sensors, 8 to 15 analog voltage sensors, 108 fan regulation strategies (plus manual fan control mode). 114 either 1 degC or 0.5 degC, depending on the temperature source and 119 Fan rotation speeds are reported in RPM (rotations per minute). An alarm is 121 NCT6775F, fan readings can be divided by a programmable divider (1, 2, 4, 8, 123 do not have a fan speed divider. The driver sets the most suitable fan divisor [all …]
|
H A D | g762.rst | 4 The GMT G762 Fan Speed PWM Controller is connected directly to a fan 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. 19 fan revolution, ...); Those can be modified via devicetree bindings 25 set desired fan speed. This only makes sense in closed-loop 26 fan speed control (i.e. when pwm1_enable is set to 2). 29 provide current fan rotation value in RPM as reported by 30 the fan to the device. [all …]
|
H A D | w83792d.rst | 10 Addresses scanned: I2C 0x2c - 0x2f 19 ----------------- 22 (default 1) 35 ----------- 42 parameter; this will put it into a more well-behaved state first. 44 The driver implements three temperature sensors, seven fan rotation speed 45 sensors, nine voltage sensors, and two automatic fan regulation 46 strategies called: Smart Fan I (Thermal Cruise mode) and Smart Fan II. 48 The driver also implements up to seven fan control outputs: pwm1-7. Pwm1-7 53 Automatic fan control mode is possible only for fan1-fan3. [all …]
|
H A D | max31785.rst | 10 Addresses scanned: - 17 ----------- 19 The Maxim MAX31785 is a PMBus device providing closed-loop, multi-channel fan 20 management with temperature and remote voltage sensing. Various fan control 22 dual tachometer measurements, and fan health monitoring. 24 For dual-rotor configurations the MAX31785A exposes the second rotor tachometer 25 readings in attributes fan[5-8]_input. By contrast the MAX31785 only exposes 26 the slowest rotor measurement, and does so in the fan[1-4]_input attributes. 29 ----------- 35 ---------------- [all …]
|
H A D | w83627ehf.rst | 22 * Winbond W83627DHG-P 46 * Winbond W83667HG-B 54 * Nuvoton NCT6775F/W83667HG-I 73 - Jean Delvare <jdelvare@suse.de> 74 - Yuan Mu (Winbond) 75 - Rudolf Marek <r.marek@assembler.cz> 76 - David Hubbard <david.c.hubbard@gmail.com> 77 - Gong Jun <JGong@nuvoton.com> 80 ----------- 83 W83627DHG, W83627DHG-P, W83627UHG, W83667HG, W83667HG-B, W83667HG-I [all …]
|
H A D | max31760.rst | 1 .. SPDX-License-Identifier: GPL-2.0-or-later 19 ----------- 21 The MAX31760 integrates temperature sensing along with precision PWM fan 23 temperature of a discrete diode-connected transistor, such as a 2N3906, 27 I2C-compatible interface. Fan speed is controlled based on the temperature 28 reading as an index to a 48-byte lookup table (LUT) containing 29 user-programmed PWM values. The flexible LUT-based architecture enables 30 the user to program a smooth nonlinear fan speed vs. temperature transfer 31 function to minimize acoustic fan noise. Two tachometer inputs allow 35 remote high-temperature threshold has been exceeded. [all …]
|
H A D | aquacomputer_d5next.rst | 1 .. SPDX-License-Identifier: GPL-2.0-or-later 3 Kernel driver aquacomputer-d5next 8 * Aquacomputer Aquaero 5/6 fan controllers 12 * Aquacomputer Octo fan controller 13 * Aquacomputer Quadro fan controller 18 * Aquacomputer Poweradjust 3 fan controller 25 ----------- 32 speed (in RPM), power, voltage and current. Temperature offsets and fan speeds 35 For the D5 Next pump, available sensors are pump and fan speed, power, voltage 37 available through debugfs are the serial number, firmware version and power-on [all …]
|
H A D | max31790.rst | 10 Addresses scanned: - 18 ----------- 23 PWM outputs. The desired fan speeds (or PWM duty cycles) are written 24 through the I2C interface. The outputs drive "4-wire" fans directly, 25 or can be used to modulate the fan's power terminals using an external 28 Tachometer inputs monitor fan tachometer logic outputs for precise (+/-1%) 29 monitoring and control of fan RPM as well as detection of fan failure. 35 ------------- 38 fan[1-12]_input RO fan tachometer speed in RPM 39 fan[1-12]_fault RO fan experienced fault [all …]
|
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 ----------------- 46 Enables the monitoring of voltage, fan and temp inputs 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 [all …]
|
/linux/drivers/platform/x86/ |
H A D | gpd-pocket-fan.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * GPD Pocket fan controller driver 9 #include <linux/devm-helpers.h> 33 "Millicelsius values above which the fan speed increases"); 38 "Hysteresis in millicelsius before lowering the fan speed"); 43 "minimum fan speed to allow when system is powered by AC"); 55 static void gpd_pocket_fan_set_speed(struct gpd_pocket_fan_data *fan, int speed) in gpd_pocket_fan_set_speed() argument 57 if (speed == fan->last_speed) in gpd_pocket_fan_set_speed() 60 gpiod_direction_output(fan->gpio0, !!(speed & 1)); in gpd_pocket_fan_set_speed() 61 gpiod_direction_output(fan->gpio1, !!(speed & 2)); in gpd_pocket_fan_set_speed() [all …]
|
/linux/Documentation/devicetree/bindings/hwmon/ |
H A D | npcm750-pwm-fan.txt | 1 Nuvoton NPCM PWM and Fan Tacho controller device 3 The Nuvoton BMC NPCM7XX supports 8 Pulse-width modulation (PWM) 4 controller outputs and 16 Fan tachometer controller inputs. 6 The Nuvoton BMC NPCM8XX supports 12 Pulse-width modulation (PWM) 7 controller outputs and 16 Fan tachometer controller inputs. 9 Required properties for pwm-fan node 10 - #address-cells : should be 1. 11 - #size-cells : should be 0. 12 - compatible : "nuvoton,npcm750-pwm-fan" for Poleg NPCM7XX. 13 : "nuvoton,npcm845-pwm-fan" for Arbel NPCM8XX. [all …]
|
H A D | aspeed-pwm-tacho.txt | 1 ASPEED AST2400/AST2500 PWM and Fan Tacho controller device driver 3 The ASPEED PWM controller can support upto 8 PWM outputs. The ASPEED Fan Tacho 4 controller can support upto 16 Fan tachometer inputs. 6 There can be upto 8 fans supported. Each fan can have one PWM output and 7 one/two Fan tach inputs. 9 Required properties for pwm-tacho node: 10 - #address-cells : should be 1. 12 - #size-cells : should be 1. 14 - #cooling-cells: should be 2. 16 - reg : address and length of the register set for the device. [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
H A D | fan.c | 27 #include <subdev/bios/fan.h> 32 nvkm_fan_update(struct nvkm_fan *fan, bool immediate, int target) in nvkm_fan_update() argument 34 struct nvkm_therm *therm = fan->parent; in nvkm_fan_update() 35 struct nvkm_subdev *subdev = &therm->subdev; in nvkm_fan_update() 36 struct nvkm_timer *tmr = subdev->device->timer; in nvkm_fan_update() 41 /* update target fan speed, restricting to allowed range */ in nvkm_fan_update() 42 spin_lock_irqsave(&fan->lock, flags); in nvkm_fan_update() 44 target = fan->percent; in nvkm_fan_update() 45 target = max_t(u8, target, fan->bios.min_duty); in nvkm_fan_update() 46 target = min_t(u8, target, fan->bios.max_duty); in nvkm_fan_update() [all …]
|
H A D | fanpwm.c | 29 #include <subdev/bios/fan.h> 40 struct nvkm_fanpwm *fan = (void *)therm->fan; in nvkm_fanpwm_get() local 41 struct nvkm_device *device = therm->subdev.device; in nvkm_fanpwm_get() 42 struct nvkm_gpio *gpio = device->gpio; in nvkm_fanpwm_get() 43 int card_type = device->card_type; in nvkm_fanpwm_get() 47 ret = therm->func->pwm_get(therm, fan->func.line, &divs, &duty); in nvkm_fanpwm_get() 50 if (card_type <= NV_40 || (fan->func.log[0] & 1)) in nvkm_fanpwm_get() 51 duty = divs - duty; in nvkm_fanpwm_get() 55 return nvkm_gpio_get(gpio, 0, fan->func.func, fan->func.line) * 100; in nvkm_fanpwm_get() 61 struct nvkm_fanpwm *fan = (void *)therm->fan; in nvkm_fanpwm_set() local [all …]
|
/linux/Documentation/admin-guide/acpi/ |
H A D | fan_performance_states.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 ACPI Fan Performance States 8 fan (for example, PNP0C0B or INT3404), the ACPI fan driver creates additional 10 These attributes list properties of fan performance states. 19 $ ls -l /sys/bus/acpi/devices/INT3404:00/ 22 -r--r--r-- 1 root root 4096 Dec 13 20:38 state0 23 -r--r--r-- 1 root root 4096 Dec 13 20:38 state1 24 -r--r--r-- 1 root root 4096 Dec 13 20:38 state10 25 -r--r--r-- 1 root root 4096 Dec 13 20:38 state11 26 -r--r--r-- 1 root root 4096 Dec 13 20:38 state2 [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | therm.c | 35 if (bit_P.version == 1) in therm_table() 40 nvkm_error(&bios->subdev, in therm_table() 50 *hdr = nvbios_rd08(bios, therm + 1); in therm_table() 53 return therm + nvbios_rd08(bios, therm + 1); in therm_table() 77 return -EINVAL; in nvbios_therm_sensor_parse() 81 sensor_section = -1; in nvbios_therm_sensor_parse() 84 s16 value = nvbios_rd16(bios, entry + 1); in nvbios_therm_sensor_parse() 96 sensor->offset_constant = offset; in nvbios_therm_sensor_parse() 102 sensor->thrs_critical.temp = (value & 0xff0) >> 4; in nvbios_therm_sensor_parse() 103 sensor->thrs_critical.hysteresis = value & 0xf; in nvbios_therm_sensor_parse() [all …]
|
/linux/arch/arm/boot/dts/aspeed/ |
H A D | aspeed-bmc-lenovo-hr855xg2.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2019-present Lenovo 8 /dts-v1/; 10 #include "aspeed-g5.dtsi" 11 #include <dt-bindings/gpio/aspeed-gpio.h> 15 compatible = "lenovo,hr855xg2-bmc", "aspeed,ast2500"; 29 stdout-path = &uart5; 38 reserved-memory { 39 #address-cells = <1>; 40 #size-cells = <1>; [all …]
|
H A D | aspeed-bmc-lenovo-hr630.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2019-present Lenovo 8 /dts-v1/; 10 #include "aspeed-g5.dtsi" 11 #include <dt-bindings/gpio/aspeed-gpio.h> 15 compatible = "lenovo,hr630-bmc", "aspeed,ast2500"; 29 stdout-path = &uart5; 38 reserved-memory { 39 #address-cells = <1>; 40 #size-cells = <1>; [all …]
|
H A D | aspeed-bmc-amd-daytonax.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "aspeed-g5.dtsi" 5 #include <dt-bindings/gpio/aspeed-gpio.h> 6 #include <dt-bindings/interrupt-controller/irq.h> 10 compatible = "amd,daytonax-bmc", "aspeed,ast2500"; 16 reserved-memory { 17 #address-cells = <1>; 18 #size-cells = <1>; 24 compatible = "shared-dma-pool"; [all …]
|
H A D | aspeed-bmc-opp-swift.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 2 /dts-v1/; 3 #include "aspeed-g5.dtsi" 4 #include <dt-bindings/gpio/aspeed-gpio.h> 5 #include <dt-bindings/leds/leds-pca955x.h> 9 compatible = "ibm,swift-bmc", "aspeed,ast2500"; 12 stdout-path = &uart5; 20 reserved-memory { 21 #address-cells = <1>; 22 #size-cells = <1>; [all …]
|
/linux/drivers/hwmon/ |
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> 67 #define G762_REG_FAN_CMD1_FAN_MODE 0x10 /* fan mode: closed/open-loop */ 71 #define G762_REG_FAN_CMD1_PULSE_PER_REV 0x01 /* pulse per fan revolution */ 74 #define G762_REG_FAN_CMD2_GEAR_MODE_1 0x08 /* fan gear mode */ 76 #define G762_REG_FAN_CMD2_FAN_STARTV_1 0x02 /* fan startup voltage */ 79 #define G762_REG_FAN_STA_FAIL 0x02 /* fan fail */ [all …]
|