arm64: dts: rockchip: Add GPU cooling device for RK3399
diff mbox series

Message ID cb905e17526d846d6d35fb86fbd3c8ba4af4cdaf.1574974673.git.robin.murphy@arm.com
State New
Headers show
Series
  • arm64: dts: rockchip: Add GPU cooling device for RK3399
Related show

Commit Message

Robin Murphy Nov. 28, 2019, 8:59 p.m. UTC
As for RK3288, now that we have a binding for the GPU we can
hook up the missing cooling device for the thermal zone.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
---
 arch/arm64/boot/dts/rockchip/rk3399.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)

Comments

Heiko Stuebner Jan. 13, 2020, 9:57 a.m. UTC | #1
Am Donnerstag, 28. November 2019, 21:59:27 CET schrieb Robin Murphy:
> As for RK3288, now that we have a binding for the GPU we can
> hook up the missing cooling device for the thermal zone.
> 
> Signed-off-by: Robin Murphy <robin.murphy@arm.com>

applied for 5.6
(and already in arm-soc)

Thanks
Heiko

Patch
diff mbox series

diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
index cede1ad81be2..7c2953c052cf 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
@@ -827,6 +827,14 @@ 
 					type = "critical";
 				};
 			};
+
+			cooling-maps {
+				map0 {
+					trip = <&gpu_alert0>;
+					cooling-device =
+						<&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+				};
+			};
 		};
 	};
 
@@ -1886,6 +1894,7 @@ 
 			     <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH 0>;
 		interrupt-names = "gpu", "job", "mmu";
 		clocks = <&cru ACLK_GPU>;
+		#cooling-cells = <2>;
 		power-domains = <&power RK3399_PD_GPU>;
 		status = "disabled";
 	};