Skip to content

Commit e12325f

Browse files
committed
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 <[email protected]>
1 parent cd9350c commit e12325f

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

arch/arm64/boot/dts/nvidia/tegra210.dtsi

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@
895895
#iommu-cells = <1>;
896896
};
897897

898-
external-memory-controller@7001b000 {
898+
emc: external-memory-controller@7001b000 {
899899
compatible = "nvidia,tegra210-emc";
900900
reg = <0x0 0x7001b000 0x0 0x1000>,
901901
<0x0 0x7001e000 0x0 0x1000>,
@@ -904,6 +904,7 @@
904904
clock-names = "emc";
905905
interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
906906
nvidia,memory-controller = <&mc>;
907+
#cooling-cells = <2>;
907908
};
908909

909910
sata@70020000 {
@@ -1561,6 +1562,18 @@
15611562
<&soctherm TEGRA124_SOCTHERM_SENSOR_MEM>;
15621563

15631564
trips {
1565+
dram_nominal: mem-nominal-trip {
1566+
temperature = <50000>;
1567+
hysteresis = <1000>;
1568+
type = "passive";
1569+
};
1570+
1571+
dram_throttle: mem-throttle-trip {
1572+
temperature = <70000>;
1573+
hysteresis = <1000>;
1574+
type = "active";
1575+
};
1576+
15641577
mem-shutdown-trip {
15651578
temperature = <103000>;
15661579
hysteresis = <0>;
@@ -1569,10 +1582,15 @@
15691582
};
15701583

15711584
cooling-maps {
1572-
/*
1573-
* There are currently no cooling maps,
1574-
* because there are no cooling devices.
1575-
*/
1585+
dram-passive {
1586+
cooling-device = <&emc 0 0>;
1587+
trip = <&dram_nominal>;
1588+
};
1589+
1590+
dram-active {
1591+
cooling-device = <&emc 1 1>;
1592+
trip = <&dram_throttle>;
1593+
};
15761594
};
15771595
};
15781596

0 commit comments

Comments
 (0)