From: Emil Renner Berthing Date: Sun, 6 Jun 2021 20:31:18 +0000 (+0200) Subject: riscv: dts: starfive: visionfive-2: Add thermal-zones X-Git-Tag: accepted/tizen/unified/riscv/20230725.071352~173 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=429ccdea7e78b536af4c17591edd7facb34f0268;p=platform%2Fkernel%2Flinux-starfive.git riscv: dts: starfive: visionfive-2: Add thermal-zones Add thermal-zones for StarFive VisionFive 2 board. Signed-off-by: Emil Renner Berthing Signed-off-by: Hal Feng --- diff --git a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi index c26cc769b02d..b4808fe6d013 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi @@ -33,6 +33,34 @@ 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>;