/Linux-v4.19/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()
|
D | priv.h | 52 struct dcb_gpio_func tach; member
|
/Linux-v4.19/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-v4.19/arch/arm/boot/dts/ |
D | aspeed-bmc-opp-romulus.dts | 240 aspeed,fan-tach-ch = /bits/ 8 <0x08>; 245 aspeed,fan-tach-ch = /bits/ 8 <0x09>; 250 aspeed,fan-tach-ch = /bits/ 8 <0x0a>; 255 aspeed,fan-tach-ch = /bits/ 8 <0x0b>; 260 aspeed,fan-tach-ch = /bits/ 8 <0x0c>; 265 aspeed,fan-tach-ch = /bits/ 8 <0x0d>; 270 aspeed,fan-tach-ch = /bits/ 8 <0x0e>;
|
D | aspeed-bmc-quanta-q71l.dts | 359 aspeed,fan-tach-ch = /bits/ 8 <0x00>; 364 aspeed,fan-tach-ch = /bits/ 8 <0x01>; 369 aspeed,fan-tach-ch = /bits/ 8 <0x02>; 374 aspeed,fan-tach-ch = /bits/ 8 <0x03>; 379 aspeed,fan-tach-ch = /bits/ 8 <0x04>; 384 aspeed,fan-tach-ch = /bits/ 8 <0x05>; 389 aspeed,fan-tach-ch = /bits/ 8 <0x06>; 394 aspeed,fan-tach-ch = /bits/ 8 <0x07>;
|
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-portwell-neptune.dts | 152 aspeed,fan-tach-ch = /bits/ 8 <0x00>; 157 aspeed,fan-tach-ch = /bits/ 8 <0x01>;
|
D | aspeed-bmc-opp-zaius.dts | 416 aspeed,fan-tach-ch = /bits/ 8 <0x00>; 421 aspeed,fan-tach-ch = /bits/ 8 <0x01>; 426 aspeed,fan-tach-ch = /bits/ 8 <0x02>; 431 aspeed,fan-tach-ch = /bits/ 8 <0x03>;
|
/Linux-v4.19/Documentation/hwmon/ |
D | smsc47b397 | 56 Reading tach information. 66 Reading the tach LSB locks the tach MSB. 69 How to convert the tach reading to RPM. 70 The tach reading (TCount) is given by: (Tach MSB * 256) + (Tach LSB)
|
D | lm93 | 122 achieved despite the signal corruption. In smart tach mode all 125 Smart tach mode is enabled by the driver by writing 1 or 2 (associating the 127 will disable the function for that fan. Note that Smart tach mode cannot be 255 four tach input pins. GPIO0-GPIO3 correspond to (fan) tach 1-4, respectively. 284 fan<n>_smart_tach enable or disable smart tach mode
|
D | max31785 | 53 2: Automatic PWM (tach-feedback RPM fan-control)
|
D | asc7621 | 72 Finally, we have added a tach disable function that turns off the tach
|
/Linux-v4.19/drivers/hwmon/ |
D | max31790.c | 71 u16 tach[NR_CHANNEL * 2]; member 104 data->tach[i] = rv; in max31790_update_device() 113 data->tach[NR_CHANNEL + i] = rv; in max31790_update_device() 183 rpm = RPM_FROM_REG(data->tach[channel], sr); in max31790_read_fan()
|
D | max6650.c | 124 u8 tach[4]; member 164 data->tach[i] = i2c_smbus_read_byte_data(client, in max6650_update_device() 228 rpm = ((data->tach[attr->index] * 120) / DIV_FROM_REG(data->count)); in get_fan()
|
D | adt7475.c | 209 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() 704 out = tach2rpm(data->tach[sattr->nr][sattr->index]); in show_tach() 723 data->tach[MIN][sattr->index] = rpm2tach(val); in set_tach() 726 data->tach[MIN][sattr->index]); in set_tach() 1502 data->tach[MIN][i] = ret; in adt7475_update_limits() 1891 data->tach[INPUT][i] = ret; in adt7475_update_measure()
|
D | Kconfig | 353 tristate "ASPEED AST2400/AST2500 PWM and Fan tach driver"
|