Home
last modified time | relevance | path

Searched refs:tach (Results 1 – 25 of 27) sorted by relevance

12

/Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
Dgt215.c32 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()
Dfan.c130 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 …]
Dgf119.c127 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()
Dpriv.h52 struct dcb_gpio_func tach; member
/Linux-v5.4/Documentation/devicetree/bindings/hwmon/
Daspeed-pwm-tacho.txt7 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>;
Dnpcm750-pwm-fan.txt26 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.4/arch/arm/boot/dts/
Daspeed-bmc-lenovo-hr855xg2.dts339 aspeed,fan-tach-ch = /bits/ 8 <0x00>;
344 aspeed,fan-tach-ch = /bits/ 8 <0x01>;
349 aspeed,fan-tach-ch = /bits/ 8 <0x02>;
354 aspeed,fan-tach-ch = /bits/ 8 <0x03>;
359 aspeed,fan-tach-ch = /bits/ 8 <0x04>;
364 aspeed,fan-tach-ch = /bits/ 8 <0x05>;
369 aspeed,fan-tach-ch = /bits/ 8 <0x06>;
374 aspeed,fan-tach-ch = /bits/ 8 <0x07>;
379 aspeed,fan-tach-ch = /bits/ 8 <0x08>;
384 aspeed,fan-tach-ch = /bits/ 8 <0x09>;
[all …]
Daspeed-bmc-lenovo-hr630.dts334 aspeed,fan-tach-ch = /bits/ 8 <0x00>;
339 aspeed,fan-tach-ch = /bits/ 8 <0x01>;
344 aspeed,fan-tach-ch = /bits/ 8 <0x02>;
349 aspeed,fan-tach-ch = /bits/ 8 <0x03>;
354 aspeed,fan-tach-ch = /bits/ 8 <0x04>;
359 aspeed,fan-tach-ch = /bits/ 8 <0x05>;
364 aspeed,fan-tach-ch = /bits/ 8 <0x06>;
369 aspeed,fan-tach-ch = /bits/ 8 <0x07>;
374 aspeed,fan-tach-ch = /bits/ 8 <0x08>;
379 aspeed,fan-tach-ch = /bits/ 8 <0x09>;
[all …]
Daspeed-bmc-microsoft-olympus.dts179 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>;
Daspeed-bmc-opp-romulus.dts269 aspeed,fan-tach-ch = /bits/ 8 <0x08>;
274 aspeed,fan-tach-ch = /bits/ 8 <0x09>;
279 aspeed,fan-tach-ch = /bits/ 8 <0x0a>;
284 aspeed,fan-tach-ch = /bits/ 8 <0x0b>;
289 aspeed,fan-tach-ch = /bits/ 8 <0x0c>;
294 aspeed,fan-tach-ch = /bits/ 8 <0x0d>;
299 aspeed,fan-tach-ch = /bits/ 8 <0x0e>;
Daspeed-bmc-quanta-q71l.dts419 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>;
Daspeed-bmc-opp-mihawk.dts292 aspeed,fan-tach-ch = /bits/ 8 <0x00>;
297 aspeed,fan-tach-ch = /bits/ 8 <0x01>;
302 aspeed,fan-tach-ch = /bits/ 8 <0x02>;
307 aspeed,fan-tach-ch = /bits/ 8 <0x03>;
312 aspeed,fan-tach-ch = /bits/ 8 <0x04>;
317 aspeed,fan-tach-ch = /bits/ 8 <0x05>;
322 aspeed,fan-tach-ch = /bits/ 8 <0x06>;
327 aspeed,fan-tach-ch = /bits/ 8 <0x07>;
332 aspeed,fan-tach-ch = /bits/ 8 <0x08>;
337 aspeed,fan-tach-ch = /bits/ 8 <0x09>;
[all …]
Daspeed-bmc-opp-swift.dts348 tach-pulses = <2>;
349 maxim,fan-rotor-input = "tach";
360 tach-pulses = <2>;
361 maxim,fan-rotor-input = "tach";
372 tach-pulses = <2>;
373 maxim,fan-rotor-input = "tach";
384 tach-pulses = <2>;
385 maxim,fan-rotor-input = "tach";
396 tach-pulses = <2>;
397 maxim,fan-rotor-input = "tach";
Daspeed-bmc-inspur-fp5280g2.dts806 aspeed,fan-tach-ch = /bits/ 8 <0x00 0x01>;
811 aspeed,fan-tach-ch = /bits/ 8 <0x02 0x03>;
816 aspeed,fan-tach-ch = /bits/ 8 <0x04 0x05>;
821 aspeed,fan-tach-ch = /bits/ 8 <0x06 0x07>;
826 aspeed,fan-tach-ch = /bits/ 8 <0x08 0x09>;
831 aspeed,fan-tach-ch = /bits/ 8 <0x0a 0x0b>;
836 aspeed,fan-tach-ch = /bits/ 8 <0x0c 0x0d>;
841 aspeed,fan-tach-ch = /bits/ 8 <0x0e 0x0f>;
Daspeed-bmc-opp-lanyang.dts99 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>;
Daspeed-bmc-inspur-on5263m5.dts134 aspeed,fan-tach-ch = /bits/ 8 <0x00 0x01>;
139 aspeed,fan-tach-ch = /bits/ 8 <0x02 0x03>;
Daspeed-bmc-portwell-neptune.dts152 aspeed,fan-tach-ch = /bits/ 8 <0x00>;
157 aspeed,fan-tach-ch = /bits/ 8 <0x01>;
Daspeed-bmc-opp-zaius.dts521 aspeed,fan-tach-ch = /bits/ 8 <0x00>;
526 aspeed,fan-tach-ch = /bits/ 8 <0x01>;
531 aspeed,fan-tach-ch = /bits/ 8 <0x02>;
536 aspeed,fan-tach-ch = /bits/ 8 <0x03>;
Daspeed-bmc-facebook-tiogapass.dts457 aspeed,fan-tach-ch = /bits/ 8 <0x00>;
462 aspeed,fan-tach-ch = /bits/ 8 <0x02>;
/Linux-v5.4/drivers/hwmon/
Dadt7475.c206 u16 tach[2][4]; member
256 static inline int tach2rpm(u16 tach) in tach2rpm() argument
258 if (tach == 0 || tach == 0xFFFF) in tach2rpm()
261 return (90000 * 60) / tach; in tach2rpm()
703 out = tach2rpm(data->tach[sattr->nr][sattr->index]); in tach_show()
722 data->tach[MIN][sattr->index] = rpm2tach(val); in tach_store()
725 data->tach[MIN][sattr->index]); in tach_store()
1135 static SENSOR_DEVICE_ATTR_2_RO(fan1_input, tach, INPUT, 0);
1136 static SENSOR_DEVICE_ATTR_2_RW(fan1_min, tach, MIN, 0);
1137 static SENSOR_DEVICE_ATTR_2_RO(fan1_alarm, tach, ALARM, 0);
[all …]
Dmax31790.c62 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()
Dmax6650.c112 u8 tach[4]; member
172 data->tach[i] = reg; in max6650_update_device()
563 *val = DIV_ROUND_CLOSEST(data->tach[channel] * 120, in max6650_read()
/Linux-v5.4/Documentation/hwmon/
Dsmsc47b397.rst69 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)
Dlm93.rst132 achieved despite the signal corruption. In smart tach mode all
135 Smart tach mode is enabled by the driver by writing 1 or 2 (associating the
137 will disable the function for that fan. Note that Smart tach mode cannot be
279 four tach input pins. GPIO0-GPIO3 correspond to (fan) tach 1-4, respectively.
299 fan<n>_smart_tach enable or disable smart tach mode
Dmax31785.rst58 2: Automatic PWM (tach-feedback RPM fan-control)

12