blob: e8fcc7194c181c212009e8f591ba46f852182feb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/* 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 = <1900>;
rpm_start = <1900>;
rpm_max = <5900>;
tach = <&tach1>;
enable_gpio = <&gpio_en_pp5000_fan>;
};
};
};
/* Tachemeter for fan speed measurement */
&tach1 {
status = "okay";
pinctrl-0 = <&alt3_ta1_sl1>; /* Use TA1 as input pin */
port = <NPCX_TACH_PORT_A>; /* port-A is selected */
sample-clk = <NPCX_TACH_FREQ_LFCLK>; /* Use LFCLK as sampling clock */
pulses-per-round = <2>; /* number of pulses per round of encoder */
};
|