/openbmc/linux/arch/arm/boot/dts/aspeed/ |
H A D | aspeed-bmc-amd-daytonax.dts | 233 aspeed,fan-tach-ch = /bits/ 8 <0x00>; 238 aspeed,fan-tach-ch = /bits/ 8 <0x01>; 243 aspeed,fan-tach-ch = /bits/ 8 <0x02>; 248 aspeed,fan-tach-ch = /bits/ 8 <0x03>; 253 aspeed,fan-tach-ch = /bits/ 8 <0x04>; 258 aspeed,fan-tach-ch = /bits/ 8 <0x05>; 263 aspeed,fan-tach-ch = /bits/ 8 <0x06>; 268 aspeed,fan-tach-ch = /bits/ 8 <0x07>; 273 aspeed,fan-tach-ch = /bits/ 8 <0x08>; 278 aspeed,fan-tach-ch = /bits/ 8 <0x09>; [all …]
|
H A D | aspeed-bmc-ibm-rainier-4u.dts | 24 /delete-property/ maxim,fan-dual-tach; 28 /delete-property/ maxim,fan-dual-tach; 32 /delete-property/ maxim,fan-dual-tach; 36 /delete-property/ maxim,fan-dual-tach; 40 /delete-property/ maxim,fan-dual-tach; 44 /delete-property/ maxim,fan-dual-tach;
|
H A 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 …]
|
H A 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 …]
|
H A 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>;
|
H A D | aspeed-bmc-facebook-wedge40.dts | 36 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>;
|
H A D | aspeed-bmc-vegman-sx20.dts | 128 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>;
|
H A D | aspeed-bmc-amd-ethanolx.dts | 299 aspeed,fan-tach-ch = /bits/ 8 <0x00>; 304 aspeed,fan-tach-ch = /bits/ 8 <0x01>; 309 aspeed,fan-tach-ch = /bits/ 8 <0x02>; 314 aspeed,fan-tach-ch = /bits/ 8 <0x03>; 319 aspeed,fan-tach-ch = /bits/ 8 <0x04>; 324 aspeed,fan-tach-ch = /bits/ 8 <0x05>; 329 aspeed,fan-tach-ch = /bits/ 8 <0x06>; 334 aspeed,fan-tach-ch = /bits/ 8 <0x07>;
|
H A D | aspeed-bmc-vegman-n110.dts | 127 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>;
|
H A D | aspeed-bmc-opp-romulus.dts | 299 aspeed,fan-tach-ch = /bits/ 8 <0x08>; 304 aspeed,fan-tach-ch = /bits/ 8 <0x09>; 309 aspeed,fan-tach-ch = /bits/ 8 <0x0a>; 314 aspeed,fan-tach-ch = /bits/ 8 <0x0b>; 319 aspeed,fan-tach-ch = /bits/ 8 <0x0c>; 324 aspeed,fan-tach-ch = /bits/ 8 <0x0d>; 329 aspeed,fan-tach-ch = /bits/ 8 <0x0e>;
|
H A 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>;
|
H A D | aspeed-bmc-opp-witherspoon.dts | 369 tach-pulses = <2>; 370 maxim,fan-rotor-input = "tach"; 372 maxim,fan-dual-tach; 382 tach-pulses = <2>; 383 maxim,fan-rotor-input = "tach"; 385 maxim,fan-dual-tach; 395 tach-pulses = <2>; 396 maxim,fan-rotor-input = "tach"; 398 maxim,fan-dual-tach; 408 tach-pulses = <2>; [all …]
|
/openbmc/phosphor-mrw-tools/ |
H A D | gen_fan_zone_yaml.pl | 60 for my $tach (sort @{$connections->{CONN}}) 64 next if (exists $tachs{$tach->{SOURCE}}{$tach->{DEST}}); 65 $tachs{$tach->{SOURCE}}{$tach->{DEST}} = 1; 69 my $fru = Util::getEnclosingFru($targets, $tach->{SOURCE}); 72 my $sensor = getSensor($tach->{DEST}); 76 my $part = $targets->getTargetParent($tach->{SOURCE});
|
H A D | gen_presence_yaml.pl | 54 for my $tach (sort @{$connections->{CONN}}) 58 next if (exists $tachs{$tach->{SOURCE}}{$tach->{DEST}}); 59 $tachs{$tach->{SOURCE}}{$tach->{DEST}} = 1; 61 my $fru = Util::getEnclosingFru($targets, $tach->{SOURCE}); 68 my $sensor = getSensor($tach->{DEST});
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
H A 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()
|
H A 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 …]
|
/openbmc/phosphor-fan-presence/docs/presence/ |
H A D | methods.md | 12 - ["tach"](#tach) 15 ### "tach" 17 Requires an array of `sensors` of each fan tach D-Bus sensor name to be used to 18 determine fan presence. This is the name of the fan tach sensor located under 22 "type": "tach", 51 "type": "tach",
|
H A D | README.md | 16 The `phosphor-fan-presence-tach` application is controlled by a configuration 66 The `phosphor-fan-presence-tach` application then traverses the supported 78 and `phosphor-fan-presence-tach` application terminates preventing the machine 97 The `phosphor-fan-presence-tach` application will search for the config file at 177 "comments": "Also use the tach for presence detection", 178 "type": "tach", 210 The config file is loaded when the `phosphor-fan-presence-tach` application 216 `systemctl kill -s HUP phosphor-fan-presence-tach@0.service` 220 `journalctl -u phosphor-fan-presence-tach@0.service | grep Loading`
|
/openbmc/linux/Documentation/devicetree/bindings/hwmon/ |
H A 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 At least one Fan tach input channel is required. 66 aspeed,fan-tach-ch = /bits/ 8 <0x00>; 71 aspeed,fan-tach-ch = /bits/ 8 <0x01 0x02>;
|
H A D | npcm750-pwm-fan.txt | 30 Each fan subnode must have one PWM channel and at least one Fan tach channel. 40 - fan-tach-ch : specify the Fan tach input channel. 42 the fan tach channel number that used. 44 At least one Fan tach input channel is required 76 fan-tach-ch = /bits/ 8 <0x00 0x01>; 81 fan-tach-ch = /bits/ 8 <0x02 0x03>; 85 fan-tach-ch = /bits/ 8 <0x04>;
|
/openbmc/linux/drivers/hwmon/ |
H A D | pwm-fan.c | 67 struct pwm_fan_tach *tach = dev_id; in pulse_handler() local 69 atomic_inc(&tach->pulses); in pulse_handler() 82 struct pwm_fan_tach *tach = &ctx->tachs[i]; in sample_timer() local 85 pulses = atomic_read(&tach->pulses); in sample_timer() 86 atomic_sub(pulses, &tach->pulses); in sample_timer() 87 tach->rpm = (unsigned int)(pulses * 1000 * 60) / in sample_timer() 88 (tach->pulses_per_revolution * delta); in sample_timer() 575 struct pwm_fan_tach *tach = &ctx->tachs[i]; in pwm_fan_probe() local 578 tach->irq = platform_get_irq(pdev, i); in pwm_fan_probe() 579 if (tach->irq == -EPROBE_DEFER) in pwm_fan_probe() [all …]
|
H A D | max6620.c | 141 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 …]
|
/openbmc/openbmc/meta-phosphor/recipes-phosphor/fans/ |
H A D | phosphor-fan_git.bb | 19 # ${PN}-presence-tach specific configuration 71 SYSTEMD_SERVICE:${PN}-presence-tach += "${TMPL_TACH}" 72 SYSTEMD_LINK:${PN}-presence-tach += "${@compose_list(d, 'FMT_TACH', 'OBMC_CHASSIS_ZERO_ONLY')}" 74 SYSTEMD_LINK:${PN}-presence-tach += "${@bb.utils.contains('PACKAGECONFIG', 'json', \ 107 FILES:${PN}-presence-tach = "${bindir}/phosphor-fan-presence-tach" 109 FILES:${PN}-presence-tach += "${@bb.utils.contains('PACKAGECONFIG', 'json', \ 133 ${PN}-presence-tach \ 140 TMPL_TACH = "phosphor-fan-presence-tach@.service" 141 INSTFMT_TACH = "phosphor-fan-presence-tach@{0}.service"
|
/openbmc/linux/arch/arm/boot/dts/nuvoton/ |
H A D | nuvoton-npcm750-evb.dts | 285 fan-tach-ch = /bits/ 8 <0x00 0x01>; 290 fan-tach-ch = /bits/ 8 <0x02 0x03>; 295 fan-tach-ch = /bits/ 8 <0x04 0x05>; 300 fan-tach-ch = /bits/ 8 <0x06 0x07>; 305 fan-tach-ch = /bits/ 8 <0x08 0x09>; 310 fan-tach-ch = /bits/ 8 <0x0A 0x0B>; 315 fan-tach-ch = /bits/ 8 <0x0C 0x0D>; 320 fan-tach-ch = /bits/ 8 <0x0E 0x0F>;
|
/openbmc/linux/Documentation/devicetree/bindings/hwmon/pmbus/ |
H A D | max31785.txt | 39 controller. Must be either "tach" for tachometer 47 - tach-pulses : Tachometer pulses per revolution. Valid values are 76 - maxim,fan-dual-tach : Enable dual tachometer functionality 112 tach-pulses = <1>; 118 maxim,fan-rotor-input = "tach"; 119 maxim,fan-dual-tach; 132 tach-pulses = <1>; 136 maxim,fan-rotor-input = "tach";
|