ARM: dts: rockchip: rv1126: Add cooling devices

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I6e6728be799899dac60e975759fe7ae7f68a9fbc
This commit is contained in:
Finley Xiao
2020-06-15 21:21:05 +08:00
committed by Tao Huang
parent 6769034d02
commit 2b78ae6654

View File

@@ -12,6 +12,7 @@
#include <dt-bindings/soc/rockchip,boot-mode.h>
#include <dt-bindings/soc/rockchip-system-status.h>
#include <dt-bindings/suspend/rockchip-rv1126.h>
#include <dt-bindings/thermal/thermal.h>
#include "rv1126-dram-default-timing.dtsi"
/ {
@@ -52,6 +53,8 @@
enable-method = "psci";
clocks = <&cru ARMCLK>;
operating-points-v2 = <&cpu0_opp_table>;
dynamic-power-coefficient = <60>;
#cooling-cells = <2>;
cpu-idle-states = <&CPU_SLEEP>;
};
@@ -62,6 +65,7 @@
enable-method = "psci";
clocks = <&cru ARMCLK>;
operating-points-v2 = <&cpu0_opp_table>;
dynamic-power-coefficient = <60>;
cpu-idle-states = <&CPU_SLEEP>;
};
@@ -72,6 +76,7 @@
enable-method = "psci";
clocks = <&cru ARMCLK>;
operating-points-v2 = <&cpu0_opp_table>;
dynamic-power-coefficient = <60>;
cpu-idle-states = <&CPU_SLEEP>;
};
@@ -82,6 +87,7 @@
enable-method = "psci";
clocks = <&cru ARMCLK>;
operating-points-v2 = <&cpu0_opp_table>;
dynamic-power-coefficient = <60>;
cpu-idle-states = <&CPU_SLEEP>;
};
@@ -345,9 +351,57 @@
cpu_thermal: cpu-thermal {
polling-delay-passive = <20>; /* milliseconds */
polling-delay = <1000>; /* milliseconds */
sustainable-power = <977>; /* milliwatts */
sustainable-power = <875>; /* milliwatts */
k_pu = <75>;
k_po = <175>;
k_i = <0>;
thermal-sensors = <&cpu_tsadc 0>;
trips {
threshold: trip-point-0 {
/* millicelsius */
temperature = <75000>;
/* millicelsius */
hysteresis = <2000>;
type = "passive";
};
target: trip-point-1 {
/* millicelsius */
temperature = <85000>;
/* millicelsius */
hysteresis = <2000>;
type = "passive";
};
soc_crit: soc-crit {
/* millicelsius */
temperature = <115000>;
/* millicelsius */
hysteresis = <2000>;
type = "critical";
};
};
cooling-maps {
map0 {
trip = <&target>;
cooling-device =
<&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
contribution = <1024>;
};
map1 {
trip = <&target>;
cooling-device =
<&npu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
contribution = <1024>;
};
map2 {
trip = <&target>;
cooling-device =
<&rkvenc THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
contribution = <1060>;
};
};
};
npu_thermal: npu-thermal {
@@ -1801,6 +1855,8 @@
assigned-clocks = <&cru ACLK_VENC>, <&cru CLK_VENC_CORE>;
assigned-clock-rates = <297000000>, <594000000>;
operating-points-v2 = <&rkvenc_opp_table>;
dynamic-power-coefficient = <1418>;
#cooling-cells = <2>;
iommus = <&rkvenc_mmu>;
node-name = "rkvenc";
rockchip,srv = <&mpp_srv>;
@@ -1988,6 +2044,8 @@
assigned-clocks = <&cru CLK_CORE_NPU>;
assigned-clock-rates = <396000000>;
operating-points-v2 = <&npu_opp_table>;
dynamic-power-coefficient = <1343>;
#cooling-cells = <2>;
interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
power-domains = <&power RV1126_PD_NPU>;
status = "disabled";