Home
last modified time | relevance | path

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

/Linux-v4.19/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-v4.19/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-v4.19/arch/arm/boot/dts/
Daspeed-bmc-opp-romulus.dts240 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>;
Daspeed-bmc-quanta-q71l.dts359 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>;
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-portwell-neptune.dts152 aspeed,fan-tach-ch = /bits/ 8 <0x00>;
157 aspeed,fan-tach-ch = /bits/ 8 <0x01>;
Daspeed-bmc-opp-zaius.dts416 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/
Dsmsc47b39756 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)
Dlm93122 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
Dmax3178553 2: Automatic PWM (tach-feedback RPM fan-control)
Dasc762172 Finally, we have added a tach disable function that turns off the tach
/Linux-v4.19/drivers/hwmon/
Dmax31790.c71 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()
Dmax6650.c124 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()
Dadt7475.c209 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()
DKconfig353 tristate "ASPEED AST2400/AST2500 PWM and Fan tach driver"