* [PATCH v5 0/2] Enable TSENS and thermal zone for QCS615 SoC
@ 2025-06-25 4:36 Gaurav Kohli
2025-06-25 4:36 ` [PATCH v5 1/2] dt-bindings: thermal: tsens: Add QCS615 compatible Gaurav Kohli
2025-06-25 4:36 ` [PATCH v5 2/2] arm64: dts: qcom: qcs615: Enable TSENS support for QCS615 SoC Gaurav Kohli
0 siblings, 2 replies; 5+ messages in thread
From: Gaurav Kohli @ 2025-06-25 4:36 UTC (permalink / raw)
To: amitk, daniel.lezcano, rui.zhang, lukasz.luba, robh, krzk+dt,
andersson, konradybcio
Cc: devicetree, linux-kernel, linux-arm-msm, quic_manafm, Gaurav Kohli
Adding compatible string in TSENS dt-bindings, device node
for TSENS controller and Thermal zone support.
---
Changes in v5:
- Fix git patch edit error.
- Link to v4: https://lore.kernel.org/linux-devicetree/20250624064945.764245-1-quic_gkohli@quicinc.com/
Changes in v4:
- Fix naming of thermal sensor.
- Link to v3: https://lore.kernel.org/linux-devicetree/20250613112402.2203617-1-quic_gkohli@quicinc.com/
Changes in v3:
- Add critical for all trips.
- Link to v2: https://lore.kernel.org/linux-devicetree/cover.1744955863.git.gkohli@qti.qualcomm.com/
Changes in v2:
- Drop the passive trip point and add critical for CPU thermal zones.
- Rearrange the tsens dt node and fix the address part.
- Fix the commit subject with target name.
- Link to v1: https://lore.kernel.org/linux-devicetree/cover.1744292503.git.quic_gkohli@quicinc.com/
---
Gaurav Kohli (2):
dt-bindings: thermal: tsens: Add QCS615 compatible
arm64: dts: qcom: qcs615: Enable TSENS support for QCS615 SoC
.../bindings/thermal/qcom-tsens.yaml | 1 +
arch/arm64/boot/dts/qcom/qcs615.dtsi | 205 ++++++++++++++++++
2 files changed, 206 insertions(+)
--
2.34.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v5 1/2] dt-bindings: thermal: tsens: Add QCS615 compatible
2025-06-25 4:36 [PATCH v5 0/2] Enable TSENS and thermal zone for QCS615 SoC Gaurav Kohli
@ 2025-06-25 4:36 ` Gaurav Kohli
2025-06-25 4:36 ` [PATCH v5 2/2] arm64: dts: qcom: qcs615: Enable TSENS support for QCS615 SoC Gaurav Kohli
1 sibling, 0 replies; 5+ messages in thread
From: Gaurav Kohli @ 2025-06-25 4:36 UTC (permalink / raw)
To: amitk, daniel.lezcano, rui.zhang, lukasz.luba, robh, krzk+dt,
andersson, konradybcio
Cc: devicetree, linux-kernel, linux-arm-msm, quic_manafm, Gaurav Kohli
Add compatibility string for the thermal sensors on QCS615 platform.
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Gaurav Kohli <quic_gkohli@quicinc.com>
---
Documentation/devicetree/bindings/thermal/qcom-tsens.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml
index 0e653bbe9884..c8cc67b65f73 100644
--- a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml
+++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml
@@ -53,6 +53,7 @@ properties:
- qcom,msm8996-tsens
- qcom,msm8998-tsens
- qcom,qcm2290-tsens
+ - qcom,qcs615-tsens
- qcom,sa8255p-tsens
- qcom,sa8775p-tsens
- qcom,sar2130p-tsens
--
2.34.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v5 2/2] arm64: dts: qcom: qcs615: Enable TSENS support for QCS615 SoC
2025-06-25 4:36 [PATCH v5 0/2] Enable TSENS and thermal zone for QCS615 SoC Gaurav Kohli
2025-06-25 4:36 ` [PATCH v5 1/2] dt-bindings: thermal: tsens: Add QCS615 compatible Gaurav Kohli
@ 2025-06-25 4:36 ` Gaurav Kohli
2025-06-27 15:12 ` Konrad Dybcio
2025-06-27 15:14 ` Konrad Dybcio
1 sibling, 2 replies; 5+ messages in thread
From: Gaurav Kohli @ 2025-06-25 4:36 UTC (permalink / raw)
To: amitk, daniel.lezcano, rui.zhang, lukasz.luba, robh, krzk+dt,
andersson, konradybcio
Cc: devicetree, linux-kernel, linux-arm-msm, quic_manafm, Gaurav Kohli
Add TSENS and thermal devicetree node for QCS615 SoC.
Signed-off-by: Gaurav Kohli <quic_gkohli@quicinc.com>
---
arch/arm64/boot/dts/qcom/qcs615.dtsi | 205 +++++++++++++++++++++++++++
1 file changed, 205 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qcs615.dtsi b/arch/arm64/boot/dts/qcom/qcs615.dtsi
index bb8b6c3ebd03..c20e98f8399f 100644
--- a/arch/arm64/boot/dts/qcom/qcs615.dtsi
+++ b/arch/arm64/boot/dts/qcom/qcs615.dtsi
@@ -3692,6 +3692,17 @@ usb_2_dwc3: usb@a800000 {
maximum-speed = "high-speed";
};
};
+
+ tsens0: thermal-sensor@c222000 {
+ compatible = "qcom,qcs615-tsens", "qcom,tsens-v2";
+ reg = <0x0 0x0c263000 0x0 0x1ff>,
+ <0x0 0x0c222000 0x0 0x8>;
+ interrupts = <GIC_SPI 506 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 508 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "uplow", "critical";
+ #qcom,sensors = <16>;
+ #thermal-sensor-cells = <1>;
+ };
};
arch_timer: timer {
@@ -3701,4 +3712,198 @@ arch_timer: timer {
<GIC_PPI 3 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
<GIC_PPI 0 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>;
};
+
+ thermal-zones {
+ aoss-thermal {
+ thermal-sensors = <&tsens0 0>;
+
+ trips {
+ aoss-critical {
+ temperature = <115000>;
+ hysteresis = <1000>;
+ type = "critical";
+ };
+ };
+ };
+
+ cpuss-0-thermal {
+ thermal-sensors = <&tsens0 1>;
+
+ trips {
+ cpuss0-critical {
+ temperature = <115000>;
+ hysteresis = <1000>;
+ type = "critical";
+ };
+ };
+ };
+
+ cpuss-1-thermal {
+ thermal-sensors = <&tsens0 2>;
+
+ trips {
+ cpuss1-critical {
+ temperature = <115000>;
+ hysteresis = <1000>;
+ type = "critical";
+ };
+ };
+ };
+
+ cpuss-2-thermal {
+ thermal-sensors = <&tsens0 3>;
+
+ trips {
+ cpuss2-critical {
+ temperature = <115000>;
+ hysteresis = <1000>;
+ type = "critical";
+ };
+ };
+ };
+
+ cpuss-3-thermal {
+ thermal-sensors = <&tsens0 4>;
+
+ trips {
+ cpuss3-critical {
+ temperature = <115000>;
+ hysteresis = <1000>;
+ type = "critical";
+ };
+ };
+ };
+
+ cpu-1-0-thermal {
+ thermal-sensors = <&tsens0 5>;
+
+ trips {
+ cpu-critical {
+ temperature = <115000>;
+ hysteresis = <1000>;
+ type = "critical";
+ };
+ };
+ };
+
+ cpu-1-1-thermal {
+ thermal-sensors = <&tsens0 6>;
+
+ trips {
+ cpu-critical {
+ temperature = <115000>;
+ hysteresis = <1000>;
+ type = "critical";
+ };
+ };
+ };
+
+ cpu-1-2-thermal {
+ thermal-sensors = <&tsens0 7>;
+
+ trips {
+ cpu-critical {
+ temperature = <115000>;
+ hysteresis = <1000>;
+ type = "critical";
+ };
+ };
+ };
+
+ cpu-1-3-thermal {
+ thermal-sensors = <&tsens0 8>;
+
+ trips {
+ cpu-critical {
+ temperature = <115000>;
+ hysteresis = <1000>;
+ type = "critical";
+ };
+ };
+ };
+
+ gpu-thermal {
+ thermal-sensors = <&tsens0 9>;
+
+ trips {
+ gpu-critical {
+ temperature = <115000>;
+ hysteresis = <1000>;
+ type = "critical";
+ };
+ };
+ };
+
+ q6-hvx-thermal {
+ thermal-sensors = <&tsens0 10>;
+
+ trips {
+ q6-hvx-critical {
+ temperature = <115000>;
+ hysteresis = <1000>;
+ type = "critical";
+ };
+ };
+ };
+
+ mdm-core-thermal {
+ thermal-sensors = <&tsens0 11>;
+
+ trips {
+ mdm-core-critical {
+ temperature = <115000>;
+ hysteresis = <1000>;
+ type = "critical";
+ };
+ };
+ };
+
+ camera-thermal {
+ thermal-sensors = <&tsens0 12>;
+
+ trips {
+ camera-critical {
+ temperature = <115000>;
+ hysteresis = <1000>;
+ type = "critical";
+ };
+ };
+ };
+
+ wlan-thermal {
+ thermal-sensors = <&tsens0 13>;
+
+ trips {
+ wlan-critical {
+ temperature = <115000>;
+ hysteresis = <1000>;
+ type = "critical";
+ };
+ };
+ };
+
+ display-thermal {
+ thermal-sensors = <&tsens0 14>;
+
+ trips {
+ display-critical {
+ temperature = <115000>;
+ hysteresis = <1000>;
+ type = "critical";
+ };
+ };
+ };
+
+ video-thermal {
+ thermal-sensors = <&tsens0 15>;
+
+ trips {
+ video-critical {
+ temperature = <115000>;
+ hysteresis = <1000>;
+ type = "critical";
+ };
+ };
+ };
+ };
};
--
2.34.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v5 2/2] arm64: dts: qcom: qcs615: Enable TSENS support for QCS615 SoC
2025-06-25 4:36 ` [PATCH v5 2/2] arm64: dts: qcom: qcs615: Enable TSENS support for QCS615 SoC Gaurav Kohli
@ 2025-06-27 15:12 ` Konrad Dybcio
2025-06-27 15:14 ` Konrad Dybcio
1 sibling, 0 replies; 5+ messages in thread
From: Konrad Dybcio @ 2025-06-27 15:12 UTC (permalink / raw)
To: Gaurav Kohli, amitk, daniel.lezcano, rui.zhang, lukasz.luba,
robh, krzk+dt, andersson, konradybcio
Cc: devicetree, linux-kernel, linux-arm-msm, quic_manafm
On 6/25/25 6:36 AM, Gaurav Kohli wrote:
> Add TSENS and thermal devicetree node for QCS615 SoC.
>
> Signed-off-by: Gaurav Kohli <quic_gkohli@quicinc.com>
> ---
> arch/arm64/boot/dts/qcom/qcs615.dtsi | 205 +++++++++++++++++++++++++++
> 1 file changed, 205 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/qcs615.dtsi b/arch/arm64/boot/dts/qcom/qcs615.dtsi
> index bb8b6c3ebd03..c20e98f8399f 100644
> --- a/arch/arm64/boot/dts/qcom/qcs615.dtsi
> +++ b/arch/arm64/boot/dts/qcom/qcs615.dtsi
> @@ -3692,6 +3692,17 @@ usb_2_dwc3: usb@a800000 {
> maximum-speed = "high-speed";
> };
> };
> +
> + tsens0: thermal-sensor@c222000 {
> + compatible = "qcom,qcs615-tsens", "qcom,tsens-v2";
> + reg = <0x0 0x0c263000 0x0 0x1ff>,
> + <0x0 0x0c222000 0x0 0x8>;
These '<'s are unaligned, please make sure your editor's tab width
is set to 8, do the maximum amount of tabs before it goes overboard
and fill the rest with spaces
With that:
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v5 2/2] arm64: dts: qcom: qcs615: Enable TSENS support for QCS615 SoC
2025-06-25 4:36 ` [PATCH v5 2/2] arm64: dts: qcom: qcs615: Enable TSENS support for QCS615 SoC Gaurav Kohli
2025-06-27 15:12 ` Konrad Dybcio
@ 2025-06-27 15:14 ` Konrad Dybcio
1 sibling, 0 replies; 5+ messages in thread
From: Konrad Dybcio @ 2025-06-27 15:14 UTC (permalink / raw)
To: Gaurav Kohli, amitk, daniel.lezcano, rui.zhang, lukasz.luba,
robh, krzk+dt, andersson, konradybcio
Cc: devicetree, linux-kernel, linux-arm-msm, quic_manafm
On 6/25/25 6:36 AM, Gaurav Kohli wrote:
> Add TSENS and thermal devicetree node for QCS615 SoC.
>
> Signed-off-by: Gaurav Kohli <quic_gkohli@quicinc.com>
> ---
> arch/arm64/boot/dts/qcom/qcs615.dtsi | 205 +++++++++++++++++++++++++++
> 1 file changed, 205 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/qcs615.dtsi b/arch/arm64/boot/dts/qcom/qcs615.dtsi
> index bb8b6c3ebd03..c20e98f8399f 100644
> --- a/arch/arm64/boot/dts/qcom/qcs615.dtsi
> +++ b/arch/arm64/boot/dts/qcom/qcs615.dtsi
> @@ -3692,6 +3692,17 @@ usb_2_dwc3: usb@a800000 {
> maximum-speed = "high-speed";
> };
> };
> +
> + tsens0: thermal-sensor@c222000 {
@c263000 (first reg entry)
> + compatible = "qcom,qcs615-tsens", "qcom,tsens-v2";
> + reg = <0x0 0x0c263000 0x0 0x1ff>,
size = 0x1000
> + <0x0 0x0c222000 0x0 0x8>;
size = 0x1000 as well
Konrad
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-06-27 15:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-25 4:36 [PATCH v5 0/2] Enable TSENS and thermal zone for QCS615 SoC Gaurav Kohli
2025-06-25 4:36 ` [PATCH v5 1/2] dt-bindings: thermal: tsens: Add QCS615 compatible Gaurav Kohli
2025-06-25 4:36 ` [PATCH v5 2/2] arm64: dts: qcom: qcs615: Enable TSENS support for QCS615 SoC Gaurav Kohli
2025-06-27 15:12 ` Konrad Dybcio
2025-06-27 15:14 ` Konrad Dybcio
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®