riscv: dts: starfive: visionfive-2: Add thermal-zones
authorEmil Renner Berthing <kernel@esmil.dk>
Sun, 6 Jun 2021 20:31:18 +0000 (22:31 +0200)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 24 Jul 2023 23:24:41 +0000 (08:24 +0900)
Add thermal-zones for StarFive VisionFive 2 board.

Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi

index c26cc76..b4808fe 100644 (file)
                reg = <0x0 0x40000000 0x1 0x0>;
        };
 
+       thermal-zones {
+               cpu-thermal {
+                       polling-delay-passive = <250>;
+                       polling-delay = <15000>;
+
+                       thermal-sensors = <&sfctemp>;
+
+                       cooling-maps {
+                       };
+
+                       trips {
+                               cpu_alert0: cpu_alert0 {
+                                       /* milliCelsius */
+                                       temperature = <75000>;
+                                       hysteresis = <2000>;
+                                       type = "passive";
+                               };
+
+                               cpu_crit: cpu_crit {
+                                       /* milliCelsius */
+                                       temperature = <90000>;
+                                       hysteresis = <2000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+       };
+
        gpio-restart {
                compatible = "gpio-restart";
                gpios = <&sysgpio 35 GPIO_ACTIVE_HIGH>;