arm64: tegra: Add thermal zones on Tegra194
authorThierry Reding <treding@nvidia.com>
Fri, 23 Nov 2018 12:18:38 +0000 (13:18 +0100)
committerThierry Reding <treding@nvidia.com>
Mon, 3 Dec 2018 15:31:32 +0000 (16:31 +0100)
The NVIDIA Tegra194 SoC defines six thermal zones. Define all of them in
device tree.

Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra194.dtsi

index 0ce8efb..4c0067c 100644 (file)
@@ -5,6 +5,7 @@
 #include <dt-bindings/mailbox/tegra186-hsp.h>
 #include <dt-bindings/reset/tegra194-reset.h>
 #include <dt-bindings/power/tegra194-powergate.h>
+#include <dt-bindings/thermal/tegra194-bpmp-thermal.h>
 
 / {
        compatible = "nvidia,tegra194";
                method = "smc";
        };
 
+       thermal-zones {
+               cpu {
+                       thermal-sensors = <&{/bpmp/thermal}
+                                          TEGRA194_BPMP_THERMAL_ZONE_CPU>;
+                       status = "disabled";
+               };
+
+               gpu {
+                       thermal-sensors = <&{/bpmp/thermal}
+                                          TEGRA194_BPMP_THERMAL_ZONE_GPU>;
+                       status = "disabled";
+               };
+
+               aux {
+                       thermal-sensors = <&{/bpmp/thermal}
+                                          TEGRA194_BPMP_THERMAL_ZONE_AUX>;
+                       status = "disabled";
+               };
+
+               pllx {
+                       thermal-sensors = <&{/bpmp/thermal}
+                                          TEGRA194_BPMP_THERMAL_ZONE_PLLX>;
+                       status = "disabled";
+               };
+
+               ao {
+                       thermal-sensors = <&{/bpmp/thermal}
+                                          TEGRA194_BPMP_THERMAL_ZONE_AO>;
+                       status = "disabled";
+               };
+
+               tj {
+                       thermal-sensors = <&{/bpmp/thermal}
+                                          TEGRA194_BPMP_THERMAL_ZONE_TJ_MAX>;
+                       status = "disabled";
+               };
+       };
+
        timer {
                compatible = "arm,armv8-timer";
                interrupts = <GIC_PPI 13