]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
riscv: sophgo: dts: add cooling maps for Milk-V Pioneer
authorChen Wang <unicorn_wang@outlook.com>
Wed, 12 Feb 2025 09:42:23 +0000 (17:42 +0800)
committerInochi Amaoto <inochiama@gmail.com>
Tue, 18 Feb 2025 02:11:37 +0000 (10:11 +0800)
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>
arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts

index 74c997ed8283a2c8c31a80dc33389d1e6f2d7374..34645a5f6038389cd00d4940947c6bb71d39ec6f 100644 (file)
                                        type = "hot";
                                };
                        };
+
+                       cooling-maps {
+                               map0 {
+                                       trip = <&soc_active1>;
+                                       cooling-device = <&pwmfan 0 1>;
+                               };
+
+                               map1 {
+                                       trip = <&soc_active2>;
+                                       cooling-device = <&pwmfan 1 2>;
+                               };
+
+                               map2 {
+                                       trip = <&soc_active3>;
+                                       cooling-device = <&pwmfan 2 3>;
+                               };
+
+                               map3 {
+                                       trip = <&soc_hot>;
+                                       cooling-device = <&pwmfan 3 4>;
+                               };
+                       };
                };
 
                board-thermal {
                                        type = "active";
                                };
                        };
+
+                       cooling-maps {
+                               map4 {
+                                       trip = <&board_active>;
+                                       cooling-device = <&pwmfan 3 4>;
+                               };
+                       };
                };
        };
 };