blob: 0b4c56e4c32e04b063b2ab3c3a255bca321a2f8a (
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
30
31
32
33
34
35
36
37
38
39
|
/* 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.
*/
/ {
fans {
compatible = "cros-ec,fans";
fan_0 {
pwms = <&pwm0 0 PWM_KHZ(25) PWM_POLARITY_NORMAL>;
rpm_min = <3100>;
rpm_start = <3100>;
rpm_max = <8000>;
tach = <&tach1>;
pgood_gpio = <&gpio_s0_pgood>;
};
};
};
/* Tachemeter for fan speed measurement */
&tach1 {
status = "okay";
pinctrl-0 = <&ta1_1_in_gp40>;
pinctrl-names = "default";
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 */
};
&pwm0_gpc3 {
drive-open-drain;
};
&pwm0 {
status = "okay";
pinctrl-0 = <&pwm0_gpc3>;
pinctrl-names = "default";
};
|