]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: qcs8300: Enable TSENS support for QCS8300 SoC
authorGaurav Kohli <quic_gkohli@quicinc.com>
Fri, 22 Aug 2025 04:23:16 +0000 (09:53 +0530)
committerBjorn Andersson <andersson@kernel.org>
Sat, 3 Jan 2026 14:49:57 +0000 (08:49 -0600)
Add TSENS and thermal devicetree node for QCS8300 SoC.

Signed-off-by: Gaurav Kohli <quic_gkohli@quicinc.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250822042316.1762153-3-quic_gkohli@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/monaco.dtsi

index 816fa2af8a9a663b8ad176f93d2f18284a08c3d1..468ec781487b846d982c3249877d7d186687acce 100644 (file)
                                          <235 723 5>;
                };
 
+               tsens2: thermal-sensor@c251000 {
+                       compatible = "qcom,qcs8300-tsens", "qcom,tsens-v2";
+                       reg = <0x0 0x0c251000 0x0 0x1000>,
+                             <0x0 0x0c224000 0x0 0x1000>;
+                       interrupts = <GIC_SPI 572 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 609 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-names = "uplow", "critical";
+                       #qcom,sensors = <10>;
+                       #thermal-sensor-cells = <1>;
+               };
+
+               tsens3: thermal-sensor@c252000 {
+                       compatible = "qcom,qcs8300-tsens", "qcom,tsens-v2";
+                       reg = <0x0 0x0c252000 0x0 0x1000>,
+                             <0x0 0x0c225000 0x0 0x1000>;
+                       interrupts = <GIC_SPI 573 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 610 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-names = "uplow", "critical";
+                       #qcom,sensors = <10>;
+                       #thermal-sensor-cells = <1>;
+               };
+
+               tsens0: thermal-sensor@c263000 {
+                       compatible = "qcom,qcs8300-tsens", "qcom,tsens-v2";
+                       reg = <0x0 0x0c263000 0x0 0x1000>,
+                             <0x0 0x0c222000 0x0 0x1000>;
+                       interrupts = <GIC_SPI 506 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 508 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-names = "uplow", "critical";
+                       #qcom,sensors = <10>;
+                       #thermal-sensor-cells = <1>;
+               };
+
+               tsens1: thermal-sensor@c265000 {
+                       compatible = "qcom,qcs8300-tsens", "qcom,tsens-v2";
+                       reg = <0x0 0x0c265000 0x0 0x1000>,
+                             <0x0 0x0c223000 0x0 0x1000>;
+                       interrupts = <GIC_SPI 507 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 509 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-names = "uplow", "critical";
+                       #qcom,sensors = <10>;
+                       #thermal-sensor-cells = <1>;
+               };
+
                aoss_qmp: power-management@c300000 {
                        compatible = "qcom,qcs8300-aoss-qmp", "qcom,aoss-qmp";
                        reg = <0x0 0x0c300000 0x0 0x400>;
                };
        };
 
+       thermal_zones: thermal-zones {
+               aoss-0-thermal {
+                       thermal-sensors = <&tsens0 0>;
+
+                       trips {
+                               aoss0-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               cpu-0-0-0-thermal {
+                       thermal-sensors = <&tsens0 1>;
+
+                       trips {
+                               cpu-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               cpu-0-1-0-thermal {
+                       thermal-sensors = <&tsens0 2>;
+
+                       trips {
+                               cpu-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               cpu-0-2-0-thermal {
+                       thermal-sensors = <&tsens0 3>;
+
+                       trips {
+                               cpu-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               cpu-0-3-0-thermal {
+                       thermal-sensors = <&tsens0 4>;
+
+                       trips {
+                               cpu-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               gpuss-0-thermal {
+                       thermal-sensors = <&tsens0 5>;
+
+                       trips {
+                               gpuss0-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               audio-thermal {
+                       thermal-sensors = <&tsens0 6>;
+
+                       trips {
+                               audio-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               camss-0-thermal {
+                       thermal-sensors = <&tsens0 7>;
+
+                       trips {
+                               camss-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               pcie-0-thermal {
+                       thermal-sensors = <&tsens0 8>;
+
+                       trips {
+                               pcie-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               cpuss-0-0-thermal {
+                       thermal-sensors = <&tsens0 9>;
+
+                       trips {
+                               cpuss0-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               aoss-1-thermal {
+                       thermal-sensors = <&tsens1 0>;
+
+                       trips {
+                               aoss1-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               cpu-0-0-1-thermal {
+                       thermal-sensors = <&tsens1 1>;
+
+                       trips {
+                               cpu-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               cpu-0-1-1-thermal {
+                       thermal-sensors = <&tsens1 2>;
+
+                       trips {
+                               cpu-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               cpu-0-2-1-thermal {
+                       thermal-sensors = <&tsens1 3>;
+
+                       trips {
+                               cpu-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               cpu-0-3-1-thermal {
+                       thermal-sensors = <&tsens1 4>;
+
+                       trips {
+                               cpu-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               gpuss-1-thermal {
+                       thermal-sensors = <&tsens1 5>;
+
+                       trips {
+                               gpuss1-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               video-thermal {
+                       thermal-sensors = <&tsens1 6>;
+
+                       trips {
+                               video-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               camss-1-thermal {
+                       thermal-sensors = <&tsens1 7>;
+
+                       trips {
+                               camss1-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               pcie-1-thermal {
+                       thermal-sensors = <&tsens1 8>;
+
+                       trips {
+                               pcie-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               cpuss-0-1-thermal {
+                       thermal-sensors = <&tsens1 9>;
+
+                       trips {
+                               cpuss0-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               aoss-2-thermal {
+                       thermal-sensors = <&tsens2 0>;
+
+                       trips {
+                               aoss2-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               cpu-1-0-0-thermal {
+                       thermal-sensors = <&tsens2 1>;
+
+                       trips {
+                               cpu-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               cpu-1-1-0-thermal {
+                       thermal-sensors = <&tsens2 2>;
+
+                       trips {
+                               cpu-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               cpu-1-2-0-thermal {
+                       thermal-sensors = <&tsens2 3>;
+
+                       trips {
+                               cpu-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               cpu-1-3-0-thermal {
+                       thermal-sensors = <&tsens2 4>;
+
+                       trips {
+                               cpu-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               nsp-0-0-0-thermal {
+                       thermal-sensors = <&tsens2 5>;
+
+                       trips {
+                               nsp-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               nsp-0-1-0-thermal {
+                       thermal-sensors = <&tsens2 6>;
+
+                       trips {
+                               nsp-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               nsp-0-2-0-thermal {
+                       thermal-sensors = <&tsens2 7>;
+
+                       trips {
+                               nsp-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               ddrss-0-thermal {
+                       thermal-sensors = <&tsens2 8>;
+
+                       trips {
+                               ddrss-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               cpuss-1-0-thermal {
+                       thermal-sensors = <&tsens2 9>;
+
+                       trips {
+                               cpuss1-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               aoss-3-thermal {
+                       thermal-sensors = <&tsens3 0>;
+
+                       trips {
+                               aoss3-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               cpu-1-0-1-thermal {
+                       thermal-sensors = <&tsens3 1>;
+
+                       trips {
+                               cpu-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               cpu-1-1-1-thermal {
+                       thermal-sensors = <&tsens3 2>;
+
+                       trips {
+                               cpu-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               cpu-1-2-1-thermal {
+                       thermal-sensors = <&tsens3 3>;
+
+                       trips {
+                               cpu-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               cpu-1-3-1-thermal {
+                       thermal-sensors = <&tsens3 4>;
+
+                       trips {
+                               cpu-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               nsp-0-0-1-thermal {
+                       thermal-sensors = <&tsens3 5>;
+
+                       trips {
+                               nsp-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               nsp-0-1-1-thermal {
+                       thermal-sensors = <&tsens3 6>;
+
+                       trips {
+                               nsp-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               nsp-0-2-1-thermal {
+                       thermal-sensors = <&tsens3 7>;
+
+                       trips {
+                               nsp-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               ddrss-1-thermal {
+                       thermal-sensors = <&tsens3 8>;
+
+                       trips {
+                               ddrss-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               cpuss-1-1-thermal {
+                       thermal-sensors = <&tsens3 9>;
+
+                       trips {
+                               cpuss1-critical {
+                                       temperature = <125000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+       };
+
        timer {
                compatible = "arm,armv8-timer";
                interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,