diff --git a/arch/arm/boot/dts/rv1126.dtsi b/arch/arm/boot/dts/rv1126.dtsi index e8b0fb74d461..03409cd01347 100644 --- a/arch/arm/boot/dts/rv1126.dtsi +++ b/arch/arm/boot/dts/rv1126.dtsi @@ -12,6 +12,7 @@ #include #include #include +#include #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 = ; power-domains = <&power RV1126_PD_NPU>; status = "disabled";