Commit 06a928fb authored by Biju Das's avatar Biju Das Committed by Simon Horman

arm64: dts: renesas: r8a774a1: Create thermal zone to support IPA

Setup a thermal zone driven by SoC temperature sensor. Create passive trip
points and bind them to CPUFreq cooling device that supports power
extension.

Based on work by Dien Pham <dien.pham.ry@renesas.com> for r8a7796 SoC.
Signed-off-by: default avatarBiju Das <biju.das@bp.renesas.com>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent 5f524949
...@@ -138,6 +138,7 @@ a57_0: cpu@0 { ...@@ -138,6 +138,7 @@ a57_0: cpu@0 {
clocks = <&cpg CPG_CORE R8A774A1_CLK_Z>; clocks = <&cpg CPG_CORE R8A774A1_CLK_Z>;
operating-points-v2 = <&cluster0_opp>; operating-points-v2 = <&cluster0_opp>;
capacity-dmips-mhz = <1024>; capacity-dmips-mhz = <1024>;
#cooling-cells = <2>;
}; };
a57_1: cpu@1 { a57_1: cpu@1 {
...@@ -150,6 +151,7 @@ a57_1: cpu@1 { ...@@ -150,6 +151,7 @@ a57_1: cpu@1 {
clocks = <&cpg CPG_CORE R8A774A1_CLK_Z>; clocks = <&cpg CPG_CORE R8A774A1_CLK_Z>;
operating-points-v2 = <&cluster0_opp>; operating-points-v2 = <&cluster0_opp>;
capacity-dmips-mhz = <1024>; capacity-dmips-mhz = <1024>;
#cooling-cells = <2>;
}; };
a53_0: cpu@100 { a53_0: cpu@100 {
...@@ -159,6 +161,7 @@ a53_0: cpu@100 { ...@@ -159,6 +161,7 @@ a53_0: cpu@100 {
power-domains = <&sysc R8A774A1_PD_CA53_CPU0>; power-domains = <&sysc R8A774A1_PD_CA53_CPU0>;
next-level-cache = <&L2_CA53>; next-level-cache = <&L2_CA53>;
enable-method = "psci"; enable-method = "psci";
#cooling-cells = <2>;
clocks = <&cpg CPG_CORE R8A774A1_CLK_Z2>; clocks = <&cpg CPG_CORE R8A774A1_CLK_Z2>;
operating-points-v2 = <&cluster1_opp>; operating-points-v2 = <&cluster1_opp>;
capacity-dmips-mhz = <560>; capacity-dmips-mhz = <560>;
...@@ -2437,6 +2440,7 @@ sensor_thermal1: sensor-thermal1 { ...@@ -2437,6 +2440,7 @@ sensor_thermal1: sensor-thermal1 {
polling-delay-passive = <250>; polling-delay-passive = <250>;
polling-delay = <1000>; polling-delay = <1000>;
thermal-sensors = <&tsc 0>; thermal-sensors = <&tsc 0>;
sustainable-power = <3874>;
trips { trips {
sensor1_crit: sensor1-crit { sensor1_crit: sensor1-crit {
...@@ -2451,6 +2455,7 @@ sensor_thermal2: sensor-thermal2 { ...@@ -2451,6 +2455,7 @@ sensor_thermal2: sensor-thermal2 {
polling-delay-passive = <250>; polling-delay-passive = <250>;
polling-delay = <1000>; polling-delay = <1000>;
thermal-sensors = <&tsc 1>; thermal-sensors = <&tsc 1>;
sustainable-power = <3874>;
trips { trips {
sensor2_crit: sensor2-crit { sensor2_crit: sensor2-crit {
...@@ -2459,21 +2464,39 @@ sensor2_crit: sensor2-crit { ...@@ -2459,21 +2464,39 @@ sensor2_crit: sensor2-crit {
type = "critical"; type = "critical";
}; };
}; };
}; };
sensor_thermal3: sensor-thermal3 { sensor_thermal3: sensor-thermal3 {
polling-delay-passive = <250>; polling-delay-passive = <250>;
polling-delay = <1000>; polling-delay = <1000>;
thermal-sensors = <&tsc 2>; thermal-sensors = <&tsc 2>;
sustainable-power = <3874>;
trips { trips {
target: trip-point1 {
temperature = <100000>;
hysteresis = <1000>;
type = "passive";
};
sensor3_crit: sensor3-crit { sensor3_crit: sensor3-crit {
temperature = <120000>; temperature = <120000>;
hysteresis = <1000>; hysteresis = <1000>;
type = "critical"; type = "critical";
}; };
}; };
cooling-maps {
map0 {
trip = <&target>;
cooling-device = <&a57_0 0 2>;
contribution = <1024>;
};
map1 {
trip = <&target>;
cooling-device = <&a53_0 0 2>;
contribution = <1024>;
};
};
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment