From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 848194DC558 for ; Thu, 2 Jul 2026 09:51:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782985901; cv=none; b=bybbpIX1q/Jz5YzeDh9iTMLjgCylDtt/iIczOUBu2T2gnNeSeiXTOd5RECg/1or1SLhSSyA/HUjoe+rNif3y+Jc/p9P4l2MV9X8f0B3YaqiIZRLTEwz7CPFpNRd7+pzsZMFexgu3CGfdtcEerkm5rHeDQUHnLENPLGkW5UDPfuU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782985901; c=relaxed/simple; bh=DTChb5IJt941YLuPwOvT9s6H6kmZ9UZ3rgh//PZhp6c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KNwegRUWt3CP3ak0A82hqaqJXOW/nCh7cvv4KB0Ovgfnx7GfJS7L36ezYMoHVbyeWAdL1kebGeyUFBU4aptn+iHnShWfH3tJ2L/keXNRqyrHlmyoqRfsKIOcEkeSBlmnd1/7QOyS73qsRBnFofhx/Sn18ugG/fvhWYk0O383QkQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=gkCkccv2; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=gCiSFA/X; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="gkCkccv2"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="gCiSFA/X" Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6629nRTC4139546 for ; Thu, 2 Jul 2026 09:51:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= njo8S7KOyTAFfsibteCMNYMS81jSHIvrnNzHSL/N6Yw=; b=gkCkccv2PA6afvSY OrMxaxCA+fDtqWxIVXmrFxAH+t1yZzD99eyXU3uaFZxOnUc+dqoE7fxjngnocehN 08CLd332k2GZGI3QI1rvxYqftpLfj+zZXlC4vxB0wVt821Mn28i5a8+TzGVVjSSo 4cCfEYXdul2LpRtNOzBl28gsQmkNlqO4oH27NbOWeAvym7seZdBeKltn3kDdMIEZ J+LlUSTIRizgu+GTbL7guPmNE0dKMuALzj+N+R6OFeiNbdD0nv1PEZmER8W1x17D 08VvFxoKk3jcZFPCjC2co3Dk7SAQnHaOpIeeOS85NmukC8lhinfVbIQk6zLgRDY4 hZcGDg== Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f5npr80bu-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 02 Jul 2026 09:51:39 +0000 (GMT) Received: by mail-pf1-f198.google.com with SMTP id d2e1a72fcca58-845bc2e658aso1824714b3a.3 for ; Thu, 02 Jul 2026 02:51:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1782985899; x=1783590699; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=njo8S7KOyTAFfsibteCMNYMS81jSHIvrnNzHSL/N6Yw=; b=gCiSFA/XH52X+/IHVDiKXkmgqUPnBgvNJd/QVnAt26UrZPT49Wq3QpqdTu9oTu2AaO XRmaHT0dx9G0sBSggwcECxbb+w0zqKkhYVd2fjmdNXRRvDJTWwxoVwvX8W1wZCrNWD0v HUKswknZmhes98FsOK5BCaupjS3IMXk2BdaW8sFrGncn5aFJm1KIMUd8eeSeQRhL7Xfj CwypAQxN5ZR+/r6gF5d/qaScgcZh8FYKE4u0are7keBXi4cLwoCuL1CYA2b3RXaq2HD+ jS81ud2/nwilzT2lPV0mlLt3IuGkGalOpRu372bKIU8v6tUUxBFq/WQB1hgGrdYSmAex R+aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782985899; x=1783590699; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=njo8S7KOyTAFfsibteCMNYMS81jSHIvrnNzHSL/N6Yw=; b=pmb/FXVEN1ZVPHe1JP8tXmE86ImjNuXtBg8INxe/HzXk/6JSZRoojir5hD4qV1TQar s2Ieg3EP0+FzmM9Uxh372UDp7/zPCmusE/unAg6CvEoFX9nLSurtItpLwARmT8GQVvxo TCkmzPh8aOk9JGzoptxt83FSgcWRkzHqutGXjU8VfvACBvB4ycL3MQ4WvTkk9Jvv67D7 pWoBLfQQsYytZpt2tVLYA2kIKRBpVDcaTdKWD9PmNV0PkKTQZ18W24hftArFWBGUVfad N2WoTQMe+57da0YR0P0IRG7MXvHpsp70pRyrSMkAGAgsvqJGVsQEyKgfoxWTKmtA7+/l 2j4Q== X-Forwarded-Encrypted: i=1; AHgh+RoF8OMpR7ja3W4RCTpbz5+qs+bdxT5hsr+jqY3umJZvR7y7Td7yjEbNKSlrehSvaGdL+eAPbrs0Mz9n9QI=@vger.kernel.org X-Gm-Message-State: AOJu0Yy9m9t/yWkPlPMEIpKuJ/83oqIzxQ6f5owzrPdzfJa3obYwG8kx SW1RDUdFgk9qXy2fJoDdQmdqQi8KswvodZTpmvehSYs0gXGLKihpFJsGjvYc5p0QY87neeesr2v c8LlN7b2gQ0z2luuIhJf2Cq2CuujP3PaRjPXKPaAvuB5/PmXShdxkzmuYIMp07VJdGHo= X-Gm-Gg: AfdE7ck6p+/evjObj3mufhPrS22V1fXGfIjV15hmWKuL2Ic/VOD0yAhCLLtBuCIUoZ5 AxqGQn2IWM7zbiSK6U/SnawOmZtiE32lF7UhUNukoZDYL8SZYUk6gIb9RgNAkD/tnFXBZoisZmC bOhltueWl+gkQD81pr8i/EuPVcrKxp+axMQdpjtehh55vCJqvQK2YiRkSLnPXSFlN1mGqPp/Hh9 nHY3K+zfE50HlW4ZE0xLgk0M/6elC/LQqjmzfTnZ5Qb5AL8xOy31nSSMSWRooXbSZ6JSzoKFMDK fNfjAJxCI5+n6ogHHnXbn8Pt81U78QxvMXzM8yfdD1eqMS1ldY8rLFuAJqFpekDX027cKhKmkQM GuGo7UiCdifGr5qKnxzp32QMaKQ== X-Received: by 2002:a05:6a00:b486:b0:845:d729:4477 with SMTP id d2e1a72fcca58-847c5081d3dmr4314671b3a.27.1782985899037; Thu, 02 Jul 2026 02:51:39 -0700 (PDT) X-Received: by 2002:a05:6a00:b486:b0:845:d729:4477 with SMTP id d2e1a72fcca58-847c5081d3dmr4314630b3a.27.1782985898342; Thu, 02 Jul 2026 02:51:38 -0700 (PDT) Received: from [10.213.101.118] ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-847cb78ee2esm1110051b3a.24.2026.07.02.02.51.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2026 02:51:38 -0700 (PDT) From: Komal Bajaj Date: Thu, 02 Jul 2026 15:20:50 +0530 Subject: [PATCH v5 08/11] arm64: dts: qcom: shikra: Enable TSENS and thermal zones Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20260702-shikra-dt-m1-v5-8-f911ac92720c@oss.qualcomm.com> References: <20260702-shikra-dt-m1-v5-0-f911ac92720c@oss.qualcomm.com> In-Reply-To: <20260702-shikra-dt-m1-v5-0-f911ac92720c@oss.qualcomm.com> To: Vinod Koul , Frank Li , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Krzysztof Kozlowski , Georgi Djakov , Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Komal Bajaj , Gaurav Kohli , Dmitry Baryshkov , Konrad Dybcio X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1782985846; l=6381; i=komal.bajaj@oss.qualcomm.com; s=20250710; h=from:subject:message-id; bh=c7IkaekY6O5VmCRVXe8bHxUYf8Y4vnUM7egoEzFTAkY=; b=DuRUX1TXnEZI0l8cF0EmB+JiRPD9vQ3GR7/56gWyj7DcGMFRuCmevqkOk14wJn1a6MNtCGzFr MMTEycwJ1V2CuxOtzF8Ze80sg5cHFUV0D1nae2fKWqA1kEAudiNVMH2 X-Developer-Key: i=komal.bajaj@oss.qualcomm.com; a=ed25519; pk=wKh8mgDh+ePUZ4IIvpBhQOqf16/KvuQHvSvHK20LXNU= X-Proofpoint-ORIG-GUID: yX6R7T_gy7iYC5htyj1qLNyHsRi72M2m X-Proofpoint-Spam-Info: AW1haW4tMjYwNzAyMDEwMSBTYWx0Z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us-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-07-02_01,2026-06-26_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 phishscore=0 suspectscore=0 malwarescore=0 adultscore=0 clxscore=1015 impostorscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607020101 From: Gaurav Kohli The shikra includes one TSENS instance, with a total of 14 thermal sensors distributed across various locations on the SoC. The TSENS max/reset threshold is configured to 120°C in the hardware. Enable all TSENS instances, and define the thermal zones with a hot trip at 110°C and critical trip at 115°C. Signed-off-by: Gaurav Kohli Reviewed-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio Signed-off-by: Komal Bajaj --- arch/arm64/boot/dts/qcom/shikra.dtsi | 267 +++++++++++++++++++++++++++++++++++ 1 file changed, 267 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/shikra.dtsi b/arch/arm64/boot/dts/qcom/shikra.dtsi index 12e4281f7b35..3abd0a686d0e 100644 --- a/arch/arm64/boot/dts/qcom/shikra.dtsi +++ b/arch/arm64/boot/dts/qcom/shikra.dtsi @@ -12,6 +12,7 @@ #include #include #include +#include / { interrupt-parent = <&intc>; @@ -998,6 +999,18 @@ spmi_bus: spmi@1c40000 { qcom,ee = <0>; }; + tsens0: thermal-sensor@4411000 { + compatible = "qcom,shikra-tsens", "qcom,tsens-v2"; + reg = <0x0 0x04411000 0x0 0x1000>, + <0x0 0x04410000 0x0 0x1000>; + interrupts = , + ; + interrupt-names = "uplow", + "critical"; + #qcom,sensors = <14>; + #thermal-sensor-cells = <1>; + }; + rpm_msg_ram: sram@45f0000 { compatible = "qcom,rpm-msg-ram", "mmio-sram"; reg = <0x0 0x045f0000 0x0 0x7000>; @@ -2195,6 +2208,260 @@ cpufreq_hw: cpufreq@fd91000 { }; }; + thermal_zones: thermal-zones { + aoss0-thermal { + thermal-sensors = <&tsens0 0>; + + trips { + trip-point0 { + temperature = <110000>; + hysteresis = <5000>; + type = "hot"; + }; + + aoss0-critical { + temperature = <115000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + + cpu-0-0-thermal { + thermal-sensors = <&tsens0 1>; + + trips { + trip-point0 { + temperature = <110000>; + hysteresis = <5000>; + type = "hot"; + }; + + cpu00-critical { + temperature = <115000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + + cpu-0-1-thermal { + thermal-sensors = <&tsens0 2>; + + trips { + trip-point0 { + temperature = <110000>; + hysteresis = <5000>; + type = "hot"; + }; + + cpu01-critical { + temperature = <115000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + + cpu-1-0-thermal { + thermal-sensors = <&tsens0 3>; + + trips { + trip-point0 { + temperature = <110000>; + hysteresis = <5000>; + type = "hot"; + }; + + cpu10-critical { + temperature = <115000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + + cpu-1-1-thermal { + thermal-sensors = <&tsens0 4>; + + trips { + trip-point0 { + temperature = <110000>; + hysteresis = <5000>; + type = "hot"; + }; + + cpu11-critical { + temperature = <115000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + + cpuss0-thermal { + thermal-sensors = <&tsens0 5>; + + trips { + trip-point0 { + temperature = <110000>; + hysteresis = <5000>; + type = "hot"; + }; + + cpuss0-critical { + temperature = <115000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + + gpuss-thermal { + thermal-sensors = <&tsens0 6>; + + trips { + trip-point0 { + temperature = <110000>; + hysteresis = <5000>; + type = "hot"; + }; + + gpuss-critical { + temperature = <115000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + + nsp-thermal { + thermal-sensors = <&tsens0 7>; + + trips { + trip-point0 { + temperature = <110000>; + hysteresis = <5000>; + type = "hot"; + }; + + nsp-critical { + temperature = <115000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + + mdmss0-thermal { + thermal-sensors = <&tsens0 8>; + + trips { + trip-point0 { + temperature = <110000>; + hysteresis = <5000>; + type = "hot"; + }; + + mdmss0-critical { + temperature = <115000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + + mdmss1-thermal { + thermal-sensors = <&tsens0 9>; + + trips { + trip-point0 { + temperature = <110000>; + hysteresis = <5000>; + type = "hot"; + }; + + mdmss1-critical { + temperature = <115000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + + camera-thermal { + thermal-sensors = <&tsens0 10>; + + trips { + trip-point0 { + temperature = <110000>; + hysteresis = <5000>; + type = "hot"; + }; + + camera-critical { + temperature = <115000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + + video-thermal { + thermal-sensors = <&tsens0 11>; + + trips { + trip-point0 { + temperature = <110000>; + hysteresis = <5000>; + type = "hot"; + }; + + video-critical { + temperature = <115000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + + cpu-0-2-thermal { + thermal-sensors = <&tsens0 12>; + + trips { + trip-point0 { + temperature = <110000>; + hysteresis = <5000>; + type = "hot"; + }; + + cpu02-critical { + temperature = <115000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + + cpuss1-thermal { + thermal-sensors = <&tsens0 13>; + + trips { + trip-point0 { + temperature = <110000>; + hysteresis = <5000>; + type = "hot"; + }; + + cpuss1-critical { + temperature = <115000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + }; + timer { compatible = "arm,armv8-timer"; -- 2.34.1