Commit 014bbc99 authored by Bjorn Andersson's avatar Bjorn Andersson Committed by Bjorn Andersson
Browse files

arm64: dts: qcom: sc8280xp: Introduce additional tsens instances



The SC8280XP contains two additional tsens instances, providing among
other things thermal measurements for the GPU.

Add these and a GPU thermal-zone.

Reviewed-by: default avatarKonrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: default avatarJohan Hovold <johan+linaro@kernel.org>
Signed-off-by: default avatarBjorn Andersson <quic_bjorande@quicinc.com>
Link: https://lore.kernel.org/r/20240206-sc8280xp-tsens2_3-v3-1-4577b3b38ea8@quicinc.com


[bjorn: s/cpu-crit/gpu-crit/]
Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent 31ca6241
Loading
Loading
Loading
Loading
+37 −0
Original line number Diff line number Diff line
@@ -4415,6 +4415,28 @@ pdc: interrupt-controller@b220000 {
			interrupt-controller;
		};

		tsens2: thermal-sensor@c251000 {
			compatible = "qcom,sc8280xp-tsens", "qcom,tsens-v2";
			reg = <0 0x0c251000 0 0x1ff>,
			      <0 0x0c224000 0 0x8>;
			#qcom,sensors = <11>;
			interrupts-extended = <&pdc 122 IRQ_TYPE_LEVEL_HIGH>,
					      <&pdc 124 IRQ_TYPE_LEVEL_HIGH>;
			interrupt-names = "uplow", "critical";
			#thermal-sensor-cells = <1>;
		};

		tsens3: thermal-sensor@c252000 {
			compatible = "qcom,sc8280xp-tsens", "qcom,tsens-v2";
			reg = <0 0x0c252000 0 0x1ff>,
			      <0 0x0c225000 0 0x8>;
			#qcom,sensors = <5>;
			interrupts-extended = <&pdc 123 IRQ_TYPE_LEVEL_HIGH>,
					      <&pdc 125 IRQ_TYPE_LEVEL_HIGH>;
			interrupt-names = "uplow", "critical";
			#thermal-sensor-cells = <1>;
		};

		tsens0: thermal-sensor@c263000 {
			compatible = "qcom,sc8280xp-tsens", "qcom,tsens-v2";
			reg = <0 0x0c263000 0 0x1ff>, /* TM */
@@ -5760,6 +5782,21 @@ cpu-crit {
			};
		};

		gpu-thermal {
			polling-delay-passive = <0>;
			polling-delay = <0>;

			thermal-sensors = <&tsens2 2>;

			trips {
				gpu-crit {
					temperature = <110000>;
					hysteresis = <1000>;
					type = "critical";
				};
			};
		};

		mem-thermal {
			polling-delay-passive = <250>;
			polling-delay = <1000>;