/Linux-v5.10/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 …]
|
D | gf119.c | 127 if (therm->fan->tach.func != DCB_GPIO_UNUSED) { in gf119_therm_init() 128 nvkm_mask(device, 0x00d79c, 0x000000ff, therm->fan->tach.line); in gf119_therm_init()
|
/Linux-v5.10/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.10/arch/arm/boot/dts/ |
D | aspeed-bmc-amd-ethanolx.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>; 209 aspeed,fan-tach-ch = /bits/ 8 <0x06>; 214 aspeed,fan-tach-ch = /bits/ 8 <0x07>;
|
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-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-facebook-wedge40.dts | 150 aspeed,fan-tach-ch = /bits/ 8 <0x00 0x01>; 155 aspeed,fan-tach-ch = /bits/ 8 <0x02 0x03>; 160 aspeed,fan-tach-ch = /bits/ 8 <0x04 0x05>; 165 aspeed,fan-tach-ch = /bits/ 8 <0x06 0x07>;
|
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-tacoma.dts | 482 tach-pulses = <2>; 483 maxim,fan-rotor-input = "tach"; 485 maxim,fan-dual-tach; 495 tach-pulses = <2>; 496 maxim,fan-rotor-input = "tach"; 498 maxim,fan-dual-tach; 508 tach-pulses = <2>; 509 maxim,fan-rotor-input = "tach"; 511 maxim,fan-dual-tach; 521 tach-pulses = <2>; [all …]
|
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-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 | 832 aspeed,fan-tach-ch = /bits/ 8 <0x00 0x01>; 837 aspeed,fan-tach-ch = /bits/ 8 <0x02 0x03>; 842 aspeed,fan-tach-ch = /bits/ 8 <0x04 0x05>; 847 aspeed,fan-tach-ch = /bits/ 8 <0x06 0x07>; 852 aspeed,fan-tach-ch = /bits/ 8 <0x08 0x09>; 857 aspeed,fan-tach-ch = /bits/ 8 <0x0a 0x0b>; 862 aspeed,fan-tach-ch = /bits/ 8 <0x0c 0x0d>; 867 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 | aspeed-bmc-inspur-on5263m5.dts | 137 aspeed,fan-tach-ch = /bits/ 8 <0x00 0x01>; 142 aspeed,fan-tach-ch = /bits/ 8 <0x02 0x03>;
|
D | aspeed-bmc-portwell-neptune.dts | 158 aspeed,fan-tach-ch = /bits/ 8 <0x00>; 163 aspeed,fan-tach-ch = /bits/ 8 <0x01>;
|
D | aspeed-bmc-facebook-yosemitev2.dts | 225 aspeed,fan-tach-ch = /bits/ 8 <0x00>; 229 aspeed,fan-tach-ch = /bits/ 8 <0x01>;
|
/Linux-v5.10/drivers/hwmon/ |
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 | 62 u16 tach[NR_CHANNEL * 2]; member 95 data->tach[i] = rv; in max31790_update_device() 104 data->tach[NR_CHANNEL + i] = rv; in max31790_update_device() 174 rpm = RPM_FROM_REG(data->tach[channel], sr); in max31790_read_fan()
|
D | axi-fan-control.c | 92 const u32 tach = axi_ioread(ADI_REG_TACH_MEASUR, ctl); in axi_fan_control_get_fan_rpm() local 94 if (tach == 0) in axi_fan_control_get_fan_rpm() 105 return DIV_ROUND_CLOSEST(60 * ctl->clk_rate, ctl->ppr * tach); in axi_fan_control_get_fan_rpm()
|
/Linux-v5.10/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)
|