blob: 6a3fc0288a5adb066f12557acad1cd78a11b7853 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
/* Copyright 2022 The ChromiumOS Authors
* 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 = <&pwm2 PWM_CHANNEL_2 PWM_KHZ(25) PWM_POLARITY_NORMAL>;
tach = <&tach1>;
rpm_min = <2500>;
rpm_start = <2500>;
rpm_max = <4100>;
rpm_deviation = <1>;
enable_gpio = <&gpio_fan_enable>;
};
};
fan_steps {
compatible = "cros-ec,fan-steps";
level_0 {
temp_on = <43 47 0>;
temp_off = <99 99 99>;
rpm_target = <0>;
};
level_1 {
temp_on = <46 48 0>;
temp_off = <40 45 99>;
rpm_target = <2600>;
};
level_2 {
temp_on = <49 49 0>;
temp_off = <44 46 99>;
rpm_target = <2800>;
};
level_3 {
temp_on = <53 50 54>;
temp_off = <47 47 51>;
rpm_target = <3100>;
};
level_4 {
temp_on = <56 56 60>;
temp_off = <51 48 52>;
rpm_target = <3300>;
};
level_5 {
temp_on = <60 60 64>;
temp_off = <54 52 56>;
rpm_target = <3600>;
};
level_6 {
temp_on = <100 100 100>;
temp_off = <58 54 58>;
rpm_target = <4000>;
};
};
};
/* pwm for fan */
&pwm2 {
status = "okay";
prescaler-cx = <PWM_PRESCALER_C6>;
pinctrl-0 = <&pwm2_gpa2_default>;
pinctrl-names = "default";
};
/* fan tachometer sensor */
&tach1 {
status = "okay";
channel = <IT8XXX2_TACH_CHANNEL_A>;
pulses-per-round = <2>;
pinctrl-0 = <&tach1a_gpd7_default>;
pinctrl-names = "default";
};
|