/* Copyright 2021 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ / { named-fans { compatible = "named-fans"; fan_0 { label = "FAN_0"; pwm = <&pwm_fan>; rpm_min = <1000>; rpm_start = <1000>; rpm_max = <5200>; tach = <&tach1>; pgood_gpio = <&gpio_pgood_fan>; }; }; }; /* Tachometer for fan speed measurement */ &tach1 { status = "okay"; pinctrl-0 = <&alt3_ta1_sl1>; /* Use TA1 as input pin */ port = ; /* port-A is selected */ sample-clk = ; /* Use LFCLK as sampling clock */ pulses-per-round = <2>; /* number of pulses per round of encoder */ };