Skip to content

Commit f047a92

Browse files
unicornxinochisa
authored andcommitted
riscv: sophgo: dts: add cooling maps for Milk-V Pioneer
The normal operating temperature range of SG2042 is -20 degrees Celsius ~ 85 degrees Celsius. Simultaneously monitor soc temperature and board temperature to improve redundancy and safety. Signed-off-by: Chen Wang <unicorn_wang@outlook.com> Link: https://lore.kernel.org/r/5a36a2784d97ed7b1e06777cb0c3c14fe9185e99.1739351437.git.unicorn_wang@outlook.com Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
1 parent 62cdf0a commit f047a92

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,28 @@
111111
type = "hot";
112112
};
113113
};
114+
115+
cooling-maps {
116+
map0 {
117+
trip = <&soc_active1>;
118+
cooling-device = <&pwmfan 0 1>;
119+
};
120+
121+
map1 {
122+
trip = <&soc_active2>;
123+
cooling-device = <&pwmfan 1 2>;
124+
};
125+
126+
map2 {
127+
trip = <&soc_active3>;
128+
cooling-device = <&pwmfan 2 3>;
129+
};
130+
131+
map3 {
132+
trip = <&soc_hot>;
133+
cooling-device = <&pwmfan 3 4>;
134+
};
135+
};
114136
};
115137

116138
board-thermal {
@@ -125,6 +147,13 @@
125147
type = "active";
126148
};
127149
};
150+
151+
cooling-maps {
152+
map4 {
153+
trip = <&board_active>;
154+
cooling-device = <&pwmfan 3 4>;
155+
};
156+
};
128157
};
129158
};
130159
};

0 commit comments

Comments
 (0)