From patchwork Thu Apr 10 14:00:18 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gaurav Kohli X-Patchwork-Id: 14046564 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 55CE91BD9DD; Thu, 10 Apr 2025 14:00:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744293657; cv=none; b=DmrSAoiNjD+qu+9q0FDh76lcr/IL0TJfMoaHM/yNRULsl01MWBxDgo7av6i480YxsYYTdNcaYzKBFSVDu6DbxLY+iYtz6iUjXEobF8lHHUea6G53Nn+wAmdQ+5rxItGB0OBs4UoWiwL6P+67My1IqrMNTzfI2UjSJpIQoYMOLGk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744293657; c=relaxed/simple; bh=ZGbqzKVJD6WoFMiKe9SlHIwC17CQ5h6RLRgOhAFzgNw=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=r/g3OYvHn3M1uVEkzwA5TYiw9kSOyflrnx8qofuIPphQSP3xg22kQT11ftwpV5SJLQNS6xtePxJl/tP+ekZnvS76mJaHJpVNbiabzN7q4kqMPtZrhGRDHszruVTAuYOMR9kZ73kGZWy5JmjQcnFTlElb0K4QE2nABAkeIzpg85s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=WGkn71YE; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="WGkn71YE" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 53A75N8q008265; Thu, 10 Apr 2025 14:00:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= HZqpYeMVcBrxFYiXH10xne0AVUEMd4NzJsuvDdhRRRY=; b=WGkn71YE9cUOAFsQ xofiM/GT4mxxazkw1HgjreyfCJ8YBvTzwlSKGRmH6IlY9vy2Kyd8tWzc3pWMLI5I hfxtUX6rg7HASOgqiwFF2sEgcTXpqaDebDAL1ofo5KNZhfEQOU4vahY6xCaXKBAF 5/GfnNDHavV7p7SS1Ivgeu3EI8wCQ7Dj3U3DFIQBtP7rssGObVgNenxrIpsuf7iL FEjyzj7ZrNRLg92sH9V7BchZkq3eonBL/CoXj0a5QpOnyYU/nRvUpCkcWF5fV2Vz ubPh6DZ8JJSvgoS94ozFNdXw75y3tYfReH6oiEjip5XXYp2jJfnVkoekX6L+HjUF MlAv0g== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 45twd078bu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Apr 2025 14:00:47 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA03.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 53AE0fsU015578 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Apr 2025 14:00:41 GMT Received: from hu-gkohli-hyd.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Thu, 10 Apr 2025 07:00:37 -0700 From: Gaurav Kohli To: , , , , , , , , CC: , , , , Subject: [PATCH v1 1/2] dt-bindings: thermal: tsens: Add QCS615 compatible Date: Thu, 10 Apr 2025 19:30:18 +0530 Message-ID: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: t0VIAinaH8GITIl_AiUibT71Fb27sfLz X-Authority-Analysis: v=2.4 cv=Q4vS452a c=1 sm=1 tr=0 ts=67f7cf0f cx=c_pps a=JYp8KDb2vCoCEuGobkYCKw==:117 a=JYp8KDb2vCoCEuGobkYCKw==:17 a=GEpy-HfZoHoA:10 a=XR8D0OoHHMoA:10 a=COk6AnOGAAAA:8 a=Pr_X6dJPkNF1GrwpdJQA:9 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-GUID: t0VIAinaH8GITIl_AiUibT71Fb27sfLz X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1095,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-04-10_03,2025-04-08_04,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 impostorscore=0 lowpriorityscore=0 spamscore=0 clxscore=1011 phishscore=0 bulkscore=0 adultscore=0 malwarescore=0 mlxscore=0 suspectscore=0 mlxlogscore=999 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2502280000 definitions=main-2504100102 Add compatibility string for the thermal sensors on QCS615 platform. Signed-off-by: Gaurav Kohli Acked-by: Rob Herring (Arm) --- 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 f9d8012c8cf5..de9b667a79d3 100644 --- a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml +++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml @@ -52,6 +52,7 @@ properties: - qcom,msm8996-tsens - qcom,msm8998-tsens - qcom,qcm2290-tsens + - qcom,qcs615-tsens - qcom,sa8255p-tsens - qcom,sa8775p-tsens - qcom,sar2130p-tsens From patchwork Thu Apr 10 14:00:19 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gaurav Kohli X-Patchwork-Id: 14046565 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 CB38A77102; Thu, 10 Apr 2025 14:00:56 +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=1744293658; cv=none; b=bewKkvBflmnkpzFovGPI0Ko4pVOsrkwG95vcIwTkrTr6pEksmnUi4y49/k+oCiOWBbGuaWvo7tVXJ2cvt3fCH8NwfiiphIx0PkyIh/uwvOhP6Dc97OdRmdqMLjTR9a4gZo5B+aDwalpfqbbSAf8GWuc101NCuAnCYyeLF96Qy/E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744293658; c=relaxed/simple; bh=Y8u57cU/qv1oWxvjKsOomDROclM3u76BU23Ri6SkweE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Bjl9Vk+FBW/gvsUZ1T62P19lPyVJv8TsOJjulxV6yDu0Ll0ilci3k9fIykW4aq0mmbzZg4viFFTO8mhre0OH/Lxa8Lw1uWfpnh5gWTPI31udjAnP9OumIzqHmjlxKsZpxbc5DmiRyVQtq3eYRRHeVQ2CaraKr3MV3WRHOofY36A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=DdJnIiA3; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="DdJnIiA3" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 53A75ivW030709; Thu, 10 Apr 2025 14:00:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= s8scFOGlwHhwPnFiWIKp8fbkq0FZvhAurHyRzpRUADQ=; b=DdJnIiA3+lahdBRc 0I+ZfPMpvYvJz7SPiAtRRpnU1xnTt/SI1Bisy1ACCVECY27BXfwyVzCONkCNzzZh FyKXQlzDjOngfDUKe0c3joWOJeOOr5TMLPt1p/wxsi/yLsatNERNhJH06GDUh8z2 N6RXpNYZA6E4ysX2lJ1FD43sJLllar+QKiivdWkXy9517oGdN7XU+pKLQ4mYmKEW QatZj4Ev9K0BgHG4yPJQdwzrHyDxpIptXPMbKVSUT51brTLJcrmyAWJHj1r3VtN6 rbaG32FucCRKUK5gaAIOJqhlM0LLAGpdCLovV5/y1vpfXIp7oiZ9KZrgy3ilK6WH yJyp3w== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 45twftpxfq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Apr 2025 14:00:47 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA04.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 53AE0kOr031399 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Apr 2025 14:00:46 GMT Received: from hu-gkohli-hyd.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Thu, 10 Apr 2025 07:00:42 -0700 From: Gaurav Kohli To: , , , , , , , , CC: , , , , Subject: [PATCH v1 2/2] arm64: dts: qcom: Enable TSENS support for QCS615 SoC Date: Thu, 10 Apr 2025 19:30:19 +0530 Message-ID: <76e0ce0e312f691abae7ce0fd422f73306166926.1744292503.git.quic_gkohli@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Authority-Analysis: v=2.4 cv=B5+50PtM c=1 sm=1 tr=0 ts=67f7cf0f cx=c_pps a=JYp8KDb2vCoCEuGobkYCKw==:117 a=JYp8KDb2vCoCEuGobkYCKw==:17 a=GEpy-HfZoHoA:10 a=XR8D0OoHHMoA:10 a=COk6AnOGAAAA:8 a=NZtI_tAI-osbjVYog2oA:9 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-GUID: DhR6cxYWczxUhtW4kVa3_rEusR1pfWhk X-Proofpoint-ORIG-GUID: DhR6cxYWczxUhtW4kVa3_rEusR1pfWhk X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1095,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-04-10_03,2025-04-08_04,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=781 suspectscore=0 malwarescore=0 bulkscore=0 phishscore=0 spamscore=0 priorityscore=1501 adultscore=0 impostorscore=0 lowpriorityscore=0 mlxscore=0 clxscore=1011 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2502280000 definitions=main-2504100102 Add TSENS and thermal devicetree node for QCS615 SoC. Signed-off-by: Gaurav Kohli --- arch/arm64/boot/dts/qcom/qcs615.dtsi | 281 +++++++++++++++++++++++++++ 1 file changed, 281 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs615.dtsi b/arch/arm64/boot/dts/qcom/qcs615.dtsi index edfb796d8dd3..f0d8aed7da29 100644 --- a/arch/arm64/boot/dts/qcom/qcs615.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs615.dtsi @@ -3668,6 +3668,17 @@ usb_2_dwc3: usb@a800000 { maximum-speed = "high-speed"; }; }; + + tsens0: tsens@c222000 { + compatible = "qcom,qcs615-tsens", "qcom,tsens-v2"; + reg = <0x0 0xc263000 0x0 0x1ff>, + <0x0 0xc222000 0x0 0x8>; + interrupts = , + ; + #qcom,sensors = <16>; + interrupt-names = "uplow", "critical"; + #thermal-sensor-cells = <1>; + }; }; arch_timer: timer { @@ -3677,4 +3688,274 @@ arch_timer: timer { , ; }; + + thermal-zones { + aoss-thermal { + thermal-sensors = <&tsens0 0>; + + trips { + + trip-point0 { + temperature = <110000>; + hysteresis = <5000>; + type = "passive"; + }; + }; + }; + + cpuss-0-thermal { + thermal-sensors = <&tsens0 1>; + + trips { + + trip-point0 { + temperature = <115000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <118000>; + hysteresis = <5000>; + type = "passive"; + }; + }; + + }; + + cpuss-1-thermal { + thermal-sensors = <&tsens0 2>; + + trips { + + trip-point0 { + temperature = <115000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <118000>; + hysteresis = <5000>; + type = "passive"; + }; + }; + + }; + + cpuss-2-thermal { + thermal-sensors = <&tsens0 3>; + + trips { + + trip-point0 { + temperature = <115000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <118000>; + hysteresis = <5000>; + type = "passive"; + }; + }; + }; + + cpuss-3-thermal { + thermal-sensors = <&tsens0 4>; + + trips { + + trip-point0 { + temperature = <115000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <118000>; + hysteresis = <5000>; + type = "passive"; + }; + }; + }; + + cpu-1-0-thermal { + thermal-sensors = <&tsens0 5>; + + trips { + + trip-point0 { + temperature = <115000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <118000>; + hysteresis = <5000>; + type = "passive"; + }; + }; + }; + + cpu-1-1-thermal { + thermal-sensors = <&tsens0 6>; + + trips { + + trip-point0 { + temperature = <115000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <118000>; + hysteresis = <5000>; + type = "passive"; + }; + }; + + }; + + cpu-1-2-thermal { + thermal-sensors = <&tsens0 7>; + + trips { + + trip-point0 { + temperature = <115000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <118000>; + hysteresis = <5000>; + type = "passive"; + }; + }; + }; + + cpu-1-3-thermal { + thermal-sensors = <&tsens0 8>; + + trips { + + trip-point0 { + temperature = <115000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <118000>; + hysteresis = <5000>; + type = "passive"; + }; + }; + + }; + + gpu-thermal { + thermal-sensors = <&tsens0 9>; + + trips { + + trip-point0 { + temperature = <105000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <110000>; + hysteresis = <5000>; + type = "passive"; + }; + }; + + }; + + q6-hvx-thermal { + thermal-sensors = <&tsens0 10>; + + trips { + + trip-point0 { + temperature = <105000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <110000>; + hysteresis = <5000>; + type = "passive"; + }; + }; + }; + + mdm-core-thermal { + thermal-sensors = <&tsens0 11>; + + trips { + trip-point0 { + temperature = <110000>; + hysteresis = <10000>; + type = "passive"; + }; + }; + }; + + camera-thermal { + thermal-sensors = <&tsens0 12>; + + trips { + trip-point0 { + temperature = <110000>; + hysteresis = <5000>; + type = "passive"; + }; + }; + }; + + wlan-thermal { + thermal-sensors = <&tsens0 13>; + + trips { + trip-point0 { + temperature = <110000>; + hysteresis = <5000>; + type = "passive"; + }; + }; + }; + + display-thermal { + thermal-sensors = <&tsens0 14>; + + trips { + trip-point0 { + temperature = <110000>; + hysteresis = <5000>; + type = "passive"; + }; + }; + }; + + video-thermal { + thermal-sensors = <&tsens0 15>; + + trips { + trip-point0 { + temperature = <110000>; + hysteresis = <5000>; + type = "passive"; + }; + }; + }; + }; };