summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/nvidia/tegra210.dtsi
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2020-04-09 19:34:29 +0200
committerThierry Reding <treding@nvidia.com>2020-05-20 15:26:08 +0200
commite12325f699e6fb396870e9479007fb0069574235 (patch)
tree3f9e843d9c973398303ed5a7897b948dd36c8217 /arch/arm64/boot/dts/nvidia/tegra210.dtsi
parentcd9350c55b5b76a758eadd057891f1c4c4986fce (diff)
arm64: tegra: Hook up EMC cooling device
The external memory controller can be used as a cooling device for the LPDDR chips. Hook it up to the "mem" thermal zone of the SOCTHERM block so that temperature polling can be enabled on the EMC when a given temperature is exceeded. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'arch/arm64/boot/dts/nvidia/tegra210.dtsi')
-rw-r--r--arch/arm64/boot/dts/nvidia/tegra210.dtsi28
1 files changed, 23 insertions, 5 deletions
diff --git a/arch/arm64/boot/dts/nvidia/tegra210.dtsi b/arch/arm64/boot/dts/nvidia/tegra210.dtsi
index 3fa92dd8350b..a550e7b828e6 100644
--- a/arch/arm64/boot/dts/nvidia/tegra210.dtsi
+++ b/arch/arm64/boot/dts/nvidia/tegra210.dtsi
@@ -895,7 +895,7 @@
#iommu-cells = <1>;
};
- external-memory-controller@7001b000 {
+ emc: external-memory-controller@7001b000 {
compatible = "nvidia,tegra210-emc";
reg = <0x0 0x7001b000 0x0 0x1000>,
<0x0 0x7001e000 0x0 0x1000>,
@@ -904,6 +904,7 @@
clock-names = "emc";
interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
nvidia,memory-controller = <&mc>;
+ #cooling-cells = <2>;
};
sata@70020000 {
@@ -1561,6 +1562,18 @@
<&soctherm TEGRA124_SOCTHERM_SENSOR_MEM>;
trips {
+ dram_nominal: mem-nominal-trip {
+ temperature = <50000>;
+ hysteresis = <1000>;
+ type = "passive";
+ };
+
+ dram_throttle: mem-throttle-trip {
+ temperature = <70000>;
+ hysteresis = <1000>;
+ type = "active";
+ };
+
mem-shutdown-trip {
temperature = <103000>;
hysteresis = <0>;
@@ -1569,10 +1582,15 @@
};
cooling-maps {
- /*
- * There are currently no cooling maps,
- * because there are no cooling devices.
- */
+ dram-passive {
+ cooling-device = <&emc 0 0>;
+ trip = <&dram_nominal>;
+ };
+
+ dram-active {
+ cooling-device = <&emc 1 1>;
+ trip = <&dram_throttle>;
+ };
};
};