/Linux-v5.15/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
D | gt215.c | 32 u32 tach = nvkm_rd32(device, 0x00e728) & 0x0000ffff; in gt215_therm_fan_sense() local 35 return tach * 60 / 2; in gt215_therm_fan_sense() 43 struct dcb_gpio_func *tach = &therm->fan->tach; in gt215_therm_init() local 49 if (tach->func != DCB_GPIO_UNUSED) { in gt215_therm_init() 51 nvkm_mask(device, 0x00e720, 0x001f0000, tach->line << 16); in gt215_therm_init()
|
D | fan.c | 130 u64 start, end, tach; in nvkm_therm_fan_sense() local 135 if (therm->fan->tach.func == DCB_GPIO_UNUSED) in nvkm_therm_fan_sense() 143 prev = nvkm_gpio_get(gpio, 0, therm->fan->tach.func, in nvkm_therm_fan_sense() 144 therm->fan->tach.line); in nvkm_therm_fan_sense() 149 cur = nvkm_gpio_get(gpio, 0, therm->fan->tach.func, in nvkm_therm_fan_sense() 150 therm->fan->tach.line); in nvkm_therm_fan_sense() 161 tach = (u64)60000000000ULL; in nvkm_therm_fan_sense() 162 do_div(tach, (end - start)); in nvkm_therm_fan_sense() 163 return tach; in nvkm_therm_fan_sense() 260 &therm->fan->tach); in nvkm_therm_fan_ctor() [all …]
|
/Linux-v5.15/drivers/hwmon/ |
D | pwm-fan.c | 65 struct pwm_fan_tach *tach = dev_id; in pulse_handler() local 67 atomic_inc(&tach->pulses); in pulse_handler() 80 struct pwm_fan_tach *tach = &ctx->tachs[i]; in sample_timer() local 83 pulses = atomic_read(&tach->pulses); in sample_timer() 84 atomic_sub(pulses, &tach->pulses); in sample_timer() 85 tach->rpm = (unsigned int)(pulses * 1000 * 60) / in sample_timer() 86 (tach->pulses_per_revolution * delta); in sample_timer() 395 struct pwm_fan_tach *tach = &ctx->tachs[i]; in pwm_fan_probe() local 398 tach->irq = platform_get_irq(pdev, i); in pwm_fan_probe() 399 if (tach->irq == -EPROBE_DEFER) in pwm_fan_probe() [all …]
|
D | adt7475.c | 208 u16 tach[2][4]; member 258 static inline int tach2rpm(u16 tach) in tach2rpm() argument 260 if (tach == 0 || tach == 0xFFFF) in tach2rpm() 263 return (90000 * 60) / tach; in tach2rpm() 706 out = tach2rpm(data->tach[sattr->nr][sattr->index]); in tach_show() 725 data->tach[MIN][sattr->index] = rpm2tach(val); in tach_store() 728 data->tach[MIN][sattr->index]); in tach_store() 1138 static SENSOR_DEVICE_ATTR_2_RO(fan1_input, tach, INPUT, 0); 1139 static SENSOR_DEVICE_ATTR_2_RW(fan1_min, tach, MIN, 0); 1140 static SENSOR_DEVICE_ATTR_2_RO(fan1_alarm, tach, ALARM, 0); [all …]
|
D | max31790.c | 65 u16 tach[NR_CHANNEL * 2]; member 98 data->tach[i] = rv; in max31790_update_device() 107 data->tach[NR_CHANNEL + i] = rv; in max31790_update_device() 177 if (data->tach[channel] == FAN_COUNT_REG_MAX) in max31790_read_fan() 180 rpm = RPM_FROM_REG(data->tach[channel], sr); in max31790_read_fan()
|
/Linux-v5.15/Documentation/devicetree/bindings/hwmon/ |
D | aspeed-pwm-tacho.txt | 7 one/two Fan tach inputs. 33 one/two Fan tach inputs. 45 - aspeed,fan-tach-ch : should specify the Fan tach input channel. 47 Fan tach channel 0 and 15 indicating Fan tach channel 15. 48 Atleast one Fan tach input channel is required. 66 aspeed,fan-tach-ch = /bits/ 8 <0x00>; 71 aspeed,fan-tach-ch = /bits/ 8 <0x01 0x02>;
|
D | npcm750-pwm-fan.txt | 26 Each fan subnode must have one PWM channel and atleast one Fan tach channel. 36 - fan-tach-ch : specify the Fan tach input channel. 38 the fan tach channel number that used. 40 At least one Fan tach input channel is required 72 fan-tach-ch = /bits/ 8 <0x00 0x01>; 77 fan-tach-ch = /bits/ 8 <0x02 0x03>; 81 fan-tach-ch = /bits/ 8 <0x04>;
|
/Linux-v5.15/arch/arm/boot/dts/ |
D | aspeed-bmc-lenovo-hr855xg2.dts | 342 aspeed,fan-tach-ch = /bits/ 8 <0x00>; 347 aspeed,fan-tach-ch = /bits/ 8 <0x01>; 352 aspeed,fan-tach-ch = /bits/ 8 <0x02>; 357 aspeed,fan-tach-ch = /bits/ 8 <0x03>; 362 aspeed,fan-tach-ch = /bits/ 8 <0x04>; 367 aspeed,fan-tach-ch = /bits/ 8 <0x05>; 372 aspeed,fan-tach-ch = /bits/ 8 <0x06>; 377 aspeed,fan-tach-ch = /bits/ 8 <0x07>; 382 aspeed,fan-tach-ch = /bits/ 8 <0x08>; 387 aspeed,fan-tach-ch = /bits/ 8 <0x09>; [all …]
|
D | aspeed-bmc-lenovo-hr630.dts | 337 aspeed,fan-tach-ch = /bits/ 8 <0x00>; 342 aspeed,fan-tach-ch = /bits/ 8 <0x01>; 347 aspeed,fan-tach-ch = /bits/ 8 <0x02>; 352 aspeed,fan-tach-ch = /bits/ 8 <0x03>; 357 aspeed,fan-tach-ch = /bits/ 8 <0x04>; 362 aspeed,fan-tach-ch = /bits/ 8 <0x05>; 367 aspeed,fan-tach-ch = /bits/ 8 <0x06>; 372 aspeed,fan-tach-ch = /bits/ 8 <0x07>; 377 aspeed,fan-tach-ch = /bits/ 8 <0x08>; 382 aspeed,fan-tach-ch = /bits/ 8 <0x09>; [all …]
|
D | aspeed-bmc-microsoft-olympus.dts | 179 aspeed,fan-tach-ch = /bits/ 8 <0x00>; 184 aspeed,fan-tach-ch = /bits/ 8 <0x01>; 189 aspeed,fan-tach-ch = /bits/ 8 <0x02>; 194 aspeed,fan-tach-ch = /bits/ 8 <0x03>; 199 aspeed,fan-tach-ch = /bits/ 8 <0x04>; 204 aspeed,fan-tach-ch = /bits/ 8 <0x05>;
|
D | aspeed-bmc-facebook-wedge40.dts | 36 aspeed,fan-tach-ch = /bits/ 8 <0x00 0x01>; 41 aspeed,fan-tach-ch = /bits/ 8 <0x02 0x03>; 46 aspeed,fan-tach-ch = /bits/ 8 <0x04 0x05>; 51 aspeed,fan-tach-ch = /bits/ 8 <0x06 0x07>;
|
D | aspeed-bmc-amd-ethanolx.dts | 273 aspeed,fan-tach-ch = /bits/ 8 <0x00>; 278 aspeed,fan-tach-ch = /bits/ 8 <0x01>; 283 aspeed,fan-tach-ch = /bits/ 8 <0x02>; 288 aspeed,fan-tach-ch = /bits/ 8 <0x03>; 293 aspeed,fan-tach-ch = /bits/ 8 <0x04>; 298 aspeed,fan-tach-ch = /bits/ 8 <0x05>; 303 aspeed,fan-tach-ch = /bits/ 8 <0x06>; 308 aspeed,fan-tach-ch = /bits/ 8 <0x07>;
|
D | nuvoton-npcm750-evb.dts | 284 fan-tach-ch = /bits/ 8 <0x00 0x01>; 289 fan-tach-ch = /bits/ 8 <0x02 0x03>; 294 fan-tach-ch = /bits/ 8 <0x04 0x05>; 299 fan-tach-ch = /bits/ 8 <0x06 0x07>; 304 fan-tach-ch = /bits/ 8 <0x08 0x09>; 309 fan-tach-ch = /bits/ 8 <0x0A 0x0B>; 314 fan-tach-ch = /bits/ 8 <0x0C 0x0D>; 319 fan-tach-ch = /bits/ 8 <0x0E 0x0F>;
|
D | aspeed-bmc-ampere-mtjade.dts | 494 aspeed,fan-tach-ch = /bits/ 8 <0x04>; 499 aspeed,fan-tach-ch = /bits/ 8 <0x05>; 504 aspeed,fan-tach-ch = /bits/ 8 <0x06>; 509 aspeed,fan-tach-ch = /bits/ 8 <0x07>; 514 aspeed,fan-tach-ch = /bits/ 8 <0x08>; 519 aspeed,fan-tach-ch = /bits/ 8 <0x09>; 524 aspeed,fan-tach-ch = /bits/ 8 <0x0a>; 529 aspeed,fan-tach-ch = /bits/ 8 <0x0b>; 534 aspeed,fan-tach-ch = /bits/ 8 <0x0c>; 539 aspeed,fan-tach-ch = /bits/ 8 <0x0d>; [all …]
|
D | aspeed-bmc-opp-romulus.dts | 303 aspeed,fan-tach-ch = /bits/ 8 <0x08>; 308 aspeed,fan-tach-ch = /bits/ 8 <0x09>; 313 aspeed,fan-tach-ch = /bits/ 8 <0x0a>; 318 aspeed,fan-tach-ch = /bits/ 8 <0x0b>; 323 aspeed,fan-tach-ch = /bits/ 8 <0x0c>; 328 aspeed,fan-tach-ch = /bits/ 8 <0x0d>; 333 aspeed,fan-tach-ch = /bits/ 8 <0x0e>;
|
D | aspeed-bmc-quanta-q71l.dts | 419 aspeed,fan-tach-ch = /bits/ 8 <0x00>; 424 aspeed,fan-tach-ch = /bits/ 8 <0x01>; 429 aspeed,fan-tach-ch = /bits/ 8 <0x02>; 434 aspeed,fan-tach-ch = /bits/ 8 <0x03>; 439 aspeed,fan-tach-ch = /bits/ 8 <0x04>; 444 aspeed,fan-tach-ch = /bits/ 8 <0x05>; 449 aspeed,fan-tach-ch = /bits/ 8 <0x06>; 454 aspeed,fan-tach-ch = /bits/ 8 <0x07>;
|
D | aspeed-bmc-opp-mowgli.dts | 240 aspeed,fan-tach-ch = /bits/ 8 <0x00>; 245 aspeed,fan-tach-ch = /bits/ 8 <0x01>; 250 aspeed,fan-tach-ch = /bits/ 8 <0x02>; 255 aspeed,fan-tach-ch = /bits/ 8 <0x03>; 260 aspeed,fan-tach-ch = /bits/ 8 <0x04>; 265 aspeed,fan-tach-ch = /bits/ 8 <0x05>; 270 aspeed,fan-tach-ch = /bits/ 8 <0x06>; 275 aspeed,fan-tach-ch = /bits/ 8 <0x07>; 280 aspeed,fan-tach-ch = /bits/ 8 <0x08>; 285 aspeed,fan-tach-ch = /bits/ 8 <0x09>;
|
D | aspeed-bmc-opp-tacoma.dts | 489 tach-pulses = <2>; 490 maxim,fan-rotor-input = "tach"; 492 maxim,fan-dual-tach; 502 tach-pulses = <2>; 503 maxim,fan-rotor-input = "tach"; 505 maxim,fan-dual-tach; 515 tach-pulses = <2>; 516 maxim,fan-rotor-input = "tach"; 518 maxim,fan-dual-tach; 528 tach-pulses = <2>; [all …]
|
D | aspeed-bmc-inspur-nf5280m6.dts | 620 aspeed,fan-tach-ch = /bits/ 8 <0x00 0x01>; 625 aspeed,fan-tach-ch = /bits/ 8 <0x02 0x03>; 630 aspeed,fan-tach-ch = /bits/ 8 <0x04 0x05>; 635 aspeed,fan-tach-ch = /bits/ 8 <0x06 0x07>; 640 aspeed,fan-tach-ch = /bits/ 8 <0x08 0x09>; 645 aspeed,fan-tach-ch = /bits/ 8 <0x0a 0x0b>; 650 aspeed,fan-tach-ch = /bits/ 8 <0x0c 0x0d>; 655 aspeed,fan-tach-ch = /bits/ 8 <0x0e 0x0f>;
|
D | aspeed-bmc-opp-swift.dts | 349 tach-pulses = <2>; 350 maxim,fan-rotor-input = "tach"; 361 tach-pulses = <2>; 362 maxim,fan-rotor-input = "tach"; 373 tach-pulses = <2>; 374 maxim,fan-rotor-input = "tach"; 385 tach-pulses = <2>; 386 maxim,fan-rotor-input = "tach"; 397 tach-pulses = <2>; 398 maxim,fan-rotor-input = "tach";
|
D | aspeed-bmc-opp-lanyang.dts | 99 aspeed,fan-tach-ch = /bits/ 8 <0x00>; 104 aspeed,fan-tach-ch = /bits/ 8 <0x01>; 109 aspeed,fan-tach-ch = /bits/ 8 <0x02>; 114 aspeed,fan-tach-ch = /bits/ 8 <0x03>;
|
D | aspeed-bmc-inspur-fp5280g2.dts | 865 aspeed,fan-tach-ch = /bits/ 8 <0x00 0x01>; 870 aspeed,fan-tach-ch = /bits/ 8 <0x02 0x03>; 875 aspeed,fan-tach-ch = /bits/ 8 <0x04 0x05>; 880 aspeed,fan-tach-ch = /bits/ 8 <0x06 0x07>; 885 aspeed,fan-tach-ch = /bits/ 8 <0x08 0x09>; 890 aspeed,fan-tach-ch = /bits/ 8 <0x0a 0x0b>; 895 aspeed,fan-tach-ch = /bits/ 8 <0x0c 0x0d>; 900 aspeed,fan-tach-ch = /bits/ 8 <0x0e 0x0f>;
|
D | aspeed-bmc-opp-mihawk.dts | 327 aspeed,fan-tach-ch = /bits/ 8 <0x00>; 332 aspeed,fan-tach-ch = /bits/ 8 <0x01>; 337 aspeed,fan-tach-ch = /bits/ 8 <0x02>; 342 aspeed,fan-tach-ch = /bits/ 8 <0x03>; 347 aspeed,fan-tach-ch = /bits/ 8 <0x04>; 352 aspeed,fan-tach-ch = /bits/ 8 <0x05>; 357 aspeed,fan-tach-ch = /bits/ 8 <0x06>; 362 aspeed,fan-tach-ch = /bits/ 8 <0x07>; 367 aspeed,fan-tach-ch = /bits/ 8 <0x08>; 372 aspeed,fan-tach-ch = /bits/ 8 <0x09>; [all …]
|
D | nuvoton-npcm750-runbmc-olympus.dts | 848 fan-tach-ch = /bits/ 8 <0x00 0x01>; 853 fan-tach-ch = /bits/ 8 <0x02 0x03>; 858 fan-tach-ch = /bits/ 8 <0x04 0x05>; 863 fan-tach-ch = /bits/ 8 <0x06 0x07>; 868 fan-tach-ch = /bits/ 8 <0x08 0x09>; 873 fan-tach-ch = /bits/ 8 <0x0A 0x0B>; 878 fan-tach-ch = /bits/ 8 <0x0C 0x0D>; 883 fan-tach-ch = /bits/ 8 <0x0E 0x0F>;
|
/Linux-v5.15/Documentation/hwmon/ |
D | smsc47b397.rst | 69 Reading tach information. 83 Reading the tach LSB locks the tach MSB. 86 How to convert the tach reading to RPM 89 The tach reading (TCount) is given by: (Tach MSB * 256) + (Tach LSB)
|