From af3f5c76a2e0a37138edcb7f30a72c3125765f75 Mon Sep 17 00:00:00 2001 From: Ram Chandrasekar Date: Tue, 3 Nov 2020 15:06:28 -0800 Subject: [PATCH 1/2] dt-bindings: Add DDR cooling device Add DDR cooling device to vote for DDR frequency. Change-Id: Id719cb06ec6dafdff21281391e5fa3d475c83910 --- bindings/thermal/qti-ddr-cdev.txt | 42 +++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 bindings/thermal/qti-ddr-cdev.txt diff --git a/bindings/thermal/qti-ddr-cdev.txt b/bindings/thermal/qti-ddr-cdev.txt new file mode 100644 index 000000000000..c081531b11d5 --- /dev/null +++ b/bindings/thermal/qti-ddr-cdev.txt @@ -0,0 +1,42 @@ +QTI DDR cooling device. + +The DDR cooling device will be used to place a DDR frequency vote. This +cooling device will be used in those cases where all the subsystem's are +thermally throttled and DDR has to be operated with a minimum performance +level. This cooling device vote can ensure the same. + +Properties: +- compatible: + Usage: required + Value type: + Definition: should be "qcom,ddr-cooling-device" + +Cooling device node: +- qcom,ddr-freq: + Usage: required + Value type: + Definition: List of available DDR frequencies. + +-#cooling-cells: + Usage: required + Value type: + Definition: Must be 2. Needed for of_thermal as cooling device + identifier. Please refer to + for more + details. +Example: + qcom,ddr-cdev { + compatible = "qcom,ddr-cooling-device"; + qcom,ddr-freq = <200000>, + <451000>, + <547000>, + <681000>, + <768000>, + <1017000>, + <1555000>, + <1708000>, + <2092000>, + <2736000>, + <3196000>; + #cooling-cells = <2>; + }; From 054bc305fdee46943d04f4e9082dc162d9e50ef7 Mon Sep 17 00:00:00 2001 From: Ram Chandrasekar Date: Tue, 3 Nov 2020 15:07:09 -0800 Subject: [PATCH 2/2] ARM: dts: msm: Add DDR cooling device for Lahaina Add DDR cooling device for Lahaina to vote for DDR bandwidth when the DDR temp reaches 90C. Change-Id: I83106de17b587e5b59f0a8b7cd1fe1dad5af15b2 --- qcom/lahaina-thermal.dtsi | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/qcom/lahaina-thermal.dtsi b/qcom/lahaina-thermal.dtsi index 27210b21b047..fb753c87f2dd 100644 --- a/qcom/lahaina-thermal.dtsi +++ b/qcom/lahaina-thermal.dtsi @@ -53,6 +53,25 @@ reg = <0x00635000 0x1000>; interrupts = ; }; + + ddr_cdev: qcom,ddr-cdev { + compatible = "qcom,ddr-cooling-device"; + #cooling-cells = <2>; + qcom,ddr-freq = <762000>, + <1720000>, + <2086000>, + <2597000>, + <2929000>, + <3879000>, + <5161000>, + <5931000>, + <6515000>, + <7980000>, + <8136000>, + <10437000>, + <12191000>; + interconnects = <&mc_virt MASTER_LLCC &mc_virt SLAVE_EBI1>; + }; }; &cpufreq_hw { @@ -751,7 +770,7 @@ thermal-governor = "step_wise"; trips { pop_trip: pop-trip { - temperature = <95000>; + temperature = <90000>; hysteresis = <0>; type = "passive"; }; @@ -764,6 +783,11 @@ <&apc1_cluster THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; + + pop_cdev1 { + trip = <&pop_trip>; + cooling-device = <&ddr_cdev 5 5>; + }; }; };