Home
last modified time | relevance | path

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

123

/linux-5.19.10/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 …]
/linux-5.19.10/drivers/hwmon/
Dpwm-fan.c55 struct pwm_fan_tach *tach = dev_id; in pulse_handler() local
57 atomic_inc(&tach->pulses); in pulse_handler()
70 struct pwm_fan_tach *tach = &ctx->tachs[i]; in sample_timer() local
73 pulses = atomic_read(&tach->pulses); in sample_timer()
74 atomic_sub(pulses, &tach->pulses); in sample_timer()
75 tach->rpm = (unsigned int)(pulses * 1000 * 60) / in sample_timer()
76 (tach->pulses_per_revolution * delta); in sample_timer()
383 struct pwm_fan_tach *tach = &ctx->tachs[i]; in pwm_fan_probe() local
386 tach->irq = platform_get_irq(pdev, i); in pwm_fan_probe()
387 if (tach->irq == -EPROBE_DEFER) in pwm_fan_probe()
[all …]
Dmax6620.c141 u16 tach[4]; member
155 static int max6620_fan_tach_to_rpm(u8 div, u16 tach) in max6620_fan_tach_to_rpm() argument
157 return (60 * div * MAX6620_CLOCK_FREQ) / (tach * MAX6620_PULSE_PER_REV); in max6620_fan_tach_to_rpm()
184 data->tach[i] = (ret << 3) & 0x7f8; in max6620_update_device()
188 data->tach[i] |= (ret >> 5) & 0x7; in max6620_update_device()
293 if (data->tach[channel] == 0) { in max6620_read()
297 *val = max6620_fan_tach_to_rpm(div, data->tach[channel]); in max6620_read()
328 u16 tach; in max6620_write() local
374 tach = max6620_fan_rpm_to_tach(div, val); in max6620_write()
375 val1 = (tach >> 3) & 0xff; in max6620_write()
[all …]
Dadt7475.c210 u16 tach[2][4]; member
260 static inline int tach2rpm(u16 tach) in tach2rpm() argument
262 if (tach == 0 || tach == 0xFFFF) in tach2rpm()
265 return (90000 * 60) / tach; in tach2rpm()
708 out = tach2rpm(data->tach[sattr->nr][sattr->index]); in tach_show()
727 data->tach[MIN][sattr->index] = rpm2tach(val); in tach_store()
730 data->tach[MIN][sattr->index]); in tach_store()
1140 static SENSOR_DEVICE_ATTR_2_RO(fan1_input, tach, INPUT, 0);
1141 static SENSOR_DEVICE_ATTR_2_RW(fan1_min, tach, MIN, 0);
1142 static SENSOR_DEVICE_ATTR_2_RO(fan1_alarm, tach, ALARM, 0);
[all …]
/linux-5.19.10/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-5.19.10/arch/arm/boot/dts/
Daspeed-bmc-lenovo-hr855xg2.dts342 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 …]
Daspeed-bmc-lenovo-hr630.dts337 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 …]
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-facebook-wedge40.dts36 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>;
Daspeed-bmc-vegman-sx20.dts128 aspeed,fan-tach-ch = /bits/ 8 <0x00>;
132 aspeed,fan-tach-ch = /bits/ 8 <0x01>;
136 aspeed,fan-tach-ch = /bits/ 8 <0x02>;
140 aspeed,fan-tach-ch = /bits/ 8 <0x03>;
144 aspeed,fan-tach-ch = /bits/ 8 <0x04>;
148 aspeed,fan-tach-ch = /bits/ 8 <0x05>;
152 aspeed,fan-tach-ch = /bits/ 8 <0x06>;
Daspeed-bmc-amd-ethanolx.dts278 aspeed,fan-tach-ch = /bits/ 8 <0x00>;
283 aspeed,fan-tach-ch = /bits/ 8 <0x01>;
288 aspeed,fan-tach-ch = /bits/ 8 <0x02>;
293 aspeed,fan-tach-ch = /bits/ 8 <0x03>;
298 aspeed,fan-tach-ch = /bits/ 8 <0x04>;
303 aspeed,fan-tach-ch = /bits/ 8 <0x05>;
308 aspeed,fan-tach-ch = /bits/ 8 <0x06>;
313 aspeed,fan-tach-ch = /bits/ 8 <0x07>;
Daspeed-bmc-vegman-n110.dts127 aspeed,fan-tach-ch = /bits/ 8 <0x00 0x06>;
131 aspeed,fan-tach-ch = /bits/ 8 <0x01 0x08>;
135 aspeed,fan-tach-ch = /bits/ 8 <0x02 0x09>;
139 aspeed,fan-tach-ch = /bits/ 8 <0x03 0x0A>;
143 aspeed,fan-tach-ch = /bits/ 8 <0x04 0x0B>;
147 aspeed,fan-tach-ch = /bits/ 8 <0x05>;
Dnuvoton-npcm750-evb.dts284 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>;
Daspeed-bmc-opp-romulus.dts303 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>;
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-vegman-rx20.dts229 aspeed,fan-tach-ch = /bits/ 8 <0x00 0x07>;
233 aspeed,fan-tach-ch = /bits/ 8 <0x01 0x08>;
237 aspeed,fan-tach-ch = /bits/ 8 <0x02 0x09>;
241 aspeed,fan-tach-ch = /bits/ 8 <0x03 0x0A>;
245 aspeed,fan-tach-ch = /bits/ 8 <0x04 0x0B>;
249 aspeed,fan-tach-ch = /bits/ 8 <0x05 0x0C>;
253 aspeed,fan-tach-ch = /bits/ 8 <0x06 0x0D>;
Daspeed-bmc-opp-mowgli.dts240 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>;
Daspeed-bmc-opp-tacoma.dts488 tach-pulses = <2>;
489 maxim,fan-rotor-input = "tach";
491 maxim,fan-dual-tach;
501 tach-pulses = <2>;
502 maxim,fan-rotor-input = "tach";
504 maxim,fan-dual-tach;
514 tach-pulses = <2>;
515 maxim,fan-rotor-input = "tach";
517 maxim,fan-dual-tach;
527 tach-pulses = <2>;
[all …]
Daspeed-bmc-inspur-nf5280m6.dts620 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>;
Daspeed-bmc-ampere-mtjade.dts771 aspeed,fan-tach-ch = /bits/ 8 <0x04>;
776 aspeed,fan-tach-ch = /bits/ 8 <0x05>;
781 aspeed,fan-tach-ch = /bits/ 8 <0x06>;
786 aspeed,fan-tach-ch = /bits/ 8 <0x07>;
791 aspeed,fan-tach-ch = /bits/ 8 <0x08>;
796 aspeed,fan-tach-ch = /bits/ 8 <0x09>;
801 aspeed,fan-tach-ch = /bits/ 8 <0x0a>;
806 aspeed,fan-tach-ch = /bits/ 8 <0x0b>;
811 aspeed,fan-tach-ch = /bits/ 8 <0x0c>;
816 aspeed,fan-tach-ch = /bits/ 8 <0x0d>;
[all …]
Daspeed-bmc-opp-swift.dts349 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";
Daspeed-bmc-asrock-romed8hm3.dts177 aspeed,fan-tach-ch = /bits/ 8 <0x03 0x0b>;
182 aspeed,fan-tach-ch = /bits/ 8 <0x04 0x0c>;
187 aspeed,fan-tach-ch = /bits/ 8 <0x05 0x0d>;
192 aspeed,fan-tach-ch = /bits/ 8 <0x06 0x0e>;
Daspeed-bmc-tyan-s7106.dts183 aspeed,fan-tach-ch = /bits/ 8 <0x00>;
189 aspeed,fan-tach-ch = /bits/ 8 <0x01>;
195 aspeed,fan-tach-ch = /bits/ 8 <0x02>;
200 aspeed,fan-tach-ch = /bits/ 8 <0x03>;
205 aspeed,fan-tach-ch = /bits/ 8 <0x04>;
210 aspeed,fan-tach-ch = /bits/ 8 <0x05>;
216 aspeed,fan-tach-ch = /bits/ 8 <0x06>;
221 aspeed,fan-tach-ch = /bits/ 8 <0x07>;

123