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 1033747F78D for ; Fri, 2 Oct 2026 10:47:59 +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=1790938082; cv=none; b=jREadFsmNLnnUJXGc48ImfvGJ3GCv2Z5GXz7zaD3E+CQDGIlnMw+CzvsLbkNRL39IPL+oDWytZaBFFa/TzYOLGeMA1ODSL1TsqjYVfQgFXdD8d8B3aqneWdAxt04tZB4oTz6w39IW5+S98MKo0/ld2tW8A4W4U6bJgCXEm8I5mA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790938082; c=relaxed/simple; bh=j4Bs3hnA8BSZ3VQLE84UFAh7sza/5IZfI8xwIDhVRIY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UKv12tDTMqYoo+X5nSe/AKccuuJQQn7almOHvFteMS2YogJPeWwuw/RO4w+Z8oIpQYkvh1GcaA0xW5/hnq0Y36rCWwF8X73DW5DQjED23xA7mtjRwIBYgLHHv33a1IeA6cpfZNYs0JSis3hRQJf8iY2tHVBf2jAFKH7PiKzwtqE= 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=Fz9IWWIb; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=GdWpaELv; 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="Fz9IWWIb"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="GdWpaELv" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6929nQZb2061960 for ; Fri, 2 Oct 2026 10:47:59 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= FabfbMMb1AZ72evxr32ilHn9HxRsvfEwkS+N5T0xFvg=; b=Fz9IWWIbW8ApwBQR Yu/SwiNSYTjzbEu925oZWKtKVdPsMireFYn8TOVANd3g+ZEBgKaa4x3TWBTw2EtR ssbqO1RKXsrWr8dMlAq0ym30dvxO3ymbKqTrWW8ehw6N9CfZg3UUQ0QdkeWqs4bZ nH/ZzaTH0xYKH+Ayiejo/lNQXX9Viqr6rA5Bui8LYoAKuy5sIX1E7acKQ2Flpzx8 DmBpCWKiNRvBOw7wipp5Ay4KUc4S+7VrVy8yFt4NG7Nc6KMBmNthG6gIy9tgds2i g8qZToAAyruP2TIC06VCtm4Dg0tM/WUkMkuQjq4xT27KWPy+kTTYirGIsd5yVOms pjScbw== Received: from mail-dl1-f70.google.com (mail-dl1-f70.google.com [74.125.82.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4h256ms561-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 02 Oct 2026 10:47:59 +0000 (GMT) Received: by mail-dl1-f70.google.com with SMTP id a92af1059eb24-14364a88479so229242c88.1 for ; Fri, 02 Oct 2026 03:47:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1790938078; x=1791542878; 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=FabfbMMb1AZ72evxr32ilHn9HxRsvfEwkS+N5T0xFvg=; b=GdWpaELvinuQTz5YSA5fUACb1RZUVNRi4cvHLZhg/FbXBuRQq5HsekHUtnkURYWaI4 /fkJYRUryV9ljQmibZqQgFG5CyWJolINuYZwVFa7CSvfmDXV0PSkKhyUxJIGI8Z9cDrC Ec+PJmX0aOnxU9EYy0jdSSvMMifh/LK4DMeV1peFD8VCLuzyKufSRRRJBU2mNO4buIIb vS2l3Xqzv+zNzYFee3Ntd/5k6cnwQPc8SPG65J9cEZedO1C8Jqh9v8CUr4w53yeZa3E8 ZTPaQC7mr3ZhFZnHBpex9h3qD0fdiBvRFcnSlZw0omVBuGcjotbZbrZE1/PzArfuInA+ 1Fow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790938078; x=1791542878; 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=FabfbMMb1AZ72evxr32ilHn9HxRsvfEwkS+N5T0xFvg=; b=tWgZHW+sG9ZvVFeFLne0KBzDXSCC/nfbjE6C+y+jBbxLbX3B3gJElA8k8rpBm9IJXg V6fukLYwhnB/skhctfvXt4a4R4WvpbRSFtDV+7NqfDTVpBni2uN+OZYGw7Cg7JAHE06n 9Z2ZHPjDnYenw+3buBwGlwwwZVB8APHkWnm+V7l2hg3gskgin3J7KMuDLPSgULz6KT+w uoaKlJuXd/bKFKGrTGeSP6+7n0Q4bgNNv5hPtrvLMBy59ZYfK+jGx/CCU7m9sMb5n06e u5bmZtZHyDO7aBAnbLxzD49+t0jEZ7tj9sbbaFDgYS0Gmg9PXnD1cogW7wGNimk9aJeb j9fw== X-Gm-Message-State: AFuF++mPps+r5iJu07SFzNonmaaVnodC/uttS7s191B0r0ECVIpff+uD 0G5tNES60RN1DgKtJUeE4hMyHcw28SRq4ZWzwT7I0YbE99WNjcpxJiqlgIqfbACGdpHXVMyIKfv LJCohIc9Iw5Ld1aFW3fJ2nVUibKNGOjvC42OGBbYNZnc/j4pbzEW6LdJJtxhjHQ== X-Gm-Gg: AYBFou1j8sQHm+Z5FAD/JMH1a4YCPjyHzP5HpxNXm9htUMqO4NCJMgElVkcVDaTXrRN qr3Rcd/hZwf0DRhHay2qirjAP8vY7lkMUsWL6ltsPb1FAsVuRMKTmayCIe1S6BugMVBEinPaLkc C+aFMDPqwRU4d1qI2LcGmSN1729ccg+agEJhdTC4JxOmlkc3yABDebFag33J4R24qYD2GCznwtM orssI6nPNG7b2y3GRyDfWc+VFW1iyEvIZPrNCxVMRSNVmxPk+js5AbQlNP737VbUsD2hrN89BXG mqWX/FbdbI4C3SkksQ1TJ0oZUBjynAN+4rY+sOVCtEFON8igEJSW8/bvsKl+EMBWmrOtIYQVuKr J9WFvz9/R306xTNMXQ8bXDTPbKjjG X-Received: by 2002:a05:7022:5f05:b0:147:5261:ee2e with SMTP id a92af1059eb24-14f5c4e7dd0mr2581194c88.21.1790938078318; Fri, 02 Oct 2026 03:47:58 -0700 (PDT) X-Received: by 2002:a05:7022:5f05:b0:147:5261:ee2e with SMTP id a92af1059eb24-14f5c4e7dd0mr2580911c88.21.1790938073015; Fri, 02 Oct 2026 03:47:53 -0700 (PDT) Received: from hu-gkohli-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-14f45fedd43sm10645191c88.4.2026.10.02.03.47.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Oct 2026 03:47:52 -0700 (PDT) From: Gaurav Kohli Date: Fri, 02 Oct 2026 16:17:01 +0530 Subject: [PATCH 6/6] arm64: dts: qcom: hamoa: add thermal hw-bin support Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261002-thermal_bin-v1-6-5a29be7e8ec5@oss.qualcomm.com> References: <20261002-thermal_bin-v1-0-5a29be7e8ec5@oss.qualcomm.com> In-Reply-To: <20261002-thermal_bin-v1-0-5a29be7e8ec5@oss.qualcomm.com> To: "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , Shuah Khan , Randy Dunlap , Amit Kucheria , Thara Gopinath , Bjorn Andersson , Konrad Dybcio , Abel Vesa Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-msm@vger.kernel.org, Gaurav Kohli , Amit Kucheria X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1790938020; l=5474; i=gaurav.kohli@oss.qualcomm.com; s=20260302; h=from:subject:message-id; bh=hBHOH9hUzmE9sx8Bc9LFZcHM9fMwkr7GcgBcqYRsJ9U=; b=yTAMuPTitFFLtCEPtbLMhr9RlXIRbRCGP4/QyAK/xFtzIYPCQQYaQ1NPhB1mjrr+mQ/Z2OLlJ Hkf827x7FWrAGX9CIggAfYNVhWxYg8fJ1WqU0oljEZT21h4NoVdoDTh X-Developer-Key: i=gaurav.kohli@oss.qualcomm.com; a=ed25519; pk=IdNsqe8rWsF6dbpGHfwPEH9zM0nbOdRH72HxUT9qPak= X-Proofpoint-Spam-Info: AW1haW4tMjYxMDAyMDA0MiBTYWx0ZWRfX0fSXWSNYMNxh iEUemF9dwJgsYQXX/SKIGtoRb8I65OHOJBb1QaT3jIWHuIz+K062JtGDGyw+frcrRipbI62XBkE 1mLo102PfmVZ8GqXKs31ngfiH7jfOtI= X-Proofpoint-ORIG-GUID: UNYmtGVdGSskyNg-XE4B64yHa_K6GoZ5 X-Authority-Analysis: v=2.4 cv=b80ncdGx c=1 sm=1 tr=0 ts=6abf8bdf cx=c_pps a=SvEPeNj+VMjHSW//kvnxuw==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=HHdy7Z-N7RtC6Qn240MA:9 a=QEXdDO2ut3YA:10 a=Kq8ClHjjuc5pcCNDwlU0:22 X-Proofpoint-GUID: UNYmtGVdGSskyNg-XE4B64yHa_K6GoZ5 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDAyMDA0MiBTYWx0ZWRfX4+UB5s75vgpx GMqR7yW1VZ1PcUXNSwJAKTdril4QHzzmvElhoBiqlbsqMkxhao2PUdVhcH1unbI1/EewbmbRcgz 5anGcmyfxIZlbWb7chGqP0N53UCDMOCA36gSLPm58knqv4K/yWqP3WztSucp+Y/NM9K8nJ8AtPB 6K2OM+jRms1Kt0XJew3yPeSOY8ubfxkh5whJ84q5mJbRS6vomZDxk8bJMdvgofpunWtKc0tA28o 3KmqsIlq/XSlZcBaQQW4K7pinbzwv6OOG0CZP8io+2q+zd3M6YH8bzdSrge8e3SbDrEM3CMyE8d h3Vla5xBqq7ZAm1ZcRP54jmRr/OWoIY7HeDh8psYctgyDa6bmLBtwgCXDqZOCuCBCjnjRuw4e+6 u3Nf0bXYbeJj2FA+jguB65ndVDAMe6g12vgttehxuZJE64wmpjh9Ck6Lh3T1C+XazxsT/pabI+G Ui1htyT4i9MncxIrOPA== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-02_03,2026-10-01_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 priorityscore=1501 spamscore=0 bulkscore=0 adultscore=0 phishscore=0 lowpriorityscore=0 clxscore=1015 impostorscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2610020042 From: Amit Kucheria hamoa-based SoCs expose their manufacturing bin in a single i-temp bit of a qfprom fuse. Add the i-temp nvmem cell to the qfprom node and wire the tsens controllers to it so the tsens driver can feed the bin to the thermal core. Use that bin for the GPU passive trip points so industrial-temp parts keep the higher 105C threshold without a board-specific override. Signed-off-by: Amit Kucheria Co-developed-by: Gaurav Kohli Signed-off-by: Gaurav Kohli --- arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts | 66 ------------------------------ arch/arm64/boot/dts/qcom/hamoa.dtsi | 41 +++++++++++++++---- 2 files changed, 33 insertions(+), 74 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts b/arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts index 776bded3a312..03d753a0ab74 100644 --- a/arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts +++ b/arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts @@ -1553,69 +1553,3 @@ &usb_mp_hsphy0 { &usb_mp_hsphy1 { phys = <&eusb6_repeater>; }; - -&thermal_zones { - gpuss-0-thermal { - trips { - trip-point0 { - temperature = <105000>; - }; - }; - }; - - gpuss-1-thermal { - trips { - trip-point0 { - temperature = <105000>; - }; - }; - }; - - gpuss-2-thermal { - trips { - trip-point0 { - temperature = <105000>; - }; - }; - }; - - gpuss-3-thermal { - trips { - trip-point0 { - temperature = <105000>; - }; - }; - }; - - gpuss-4-thermal { - trips { - trip-point0 { - temperature = <105000>; - }; - }; - }; - - gpuss-5-thermal { - trips { - trip-point0 { - temperature = <105000>; - }; - }; - }; - - gpuss-6-thermal { - trips { - trip-point0 { - temperature = <105000>; - }; - }; - }; - - gpuss-7-thermal { - trips { - trip-point0 { - temperature = <105000>; - }; - }; - }; -}; diff --git a/arch/arm64/boot/dts/qcom/hamoa.dtsi b/arch/arm64/boot/dts/qcom/hamoa.dtsi index fcd88e5f5d7e..c81f4bbd5b90 100644 --- a/arch/arm64/boot/dts/qcom/hamoa.dtsi +++ b/arch/arm64/boot/dts/qcom/hamoa.dtsi @@ -2766,6 +2766,9 @@ tsens0: thermal-sensor@c271000 { interrupt-names = "uplow", "critical"; + nvmem-cells = <&i_temp>; + nvmem-cell-names = "i-temp"; + #qcom,sensors = <16>; #thermal-sensor-cells = <1>; @@ -2781,6 +2784,9 @@ tsens1: thermal-sensor@c272000 { interrupt-names = "uplow", "critical"; + nvmem-cells = <&i_temp>; + nvmem-cell-names = "i-temp"; + #qcom,sensors = <16>; #thermal-sensor-cells = <1>; @@ -2796,6 +2802,9 @@ tsens2: thermal-sensor@c273000 { interrupt-names = "uplow", "critical"; + nvmem-cells = <&i_temp>; + nvmem-cell-names = "i-temp"; + #qcom,sensors = <16>; #thermal-sensor-cells = <1>; @@ -2811,6 +2820,9 @@ tsens3: thermal-sensor@c274000 { interrupt-names = "uplow", "critical"; + nvmem-cells = <&i_temp>; + nvmem-cell-names = "i-temp"; + #qcom,sensors = <16>; #thermal-sensor-cells = <1>; @@ -8809,6 +8821,11 @@ gpu_speed_bin: gpu-speed-bin@119 { reg = <0x119 0x2>; bits = <7 8>; }; + i_temp: i-temp@180 { + reg = <0x180 0x4>; + /* bits = : 1 bit at offset 0 */ + bits = <0 1>; + }; }; pmu@24091000 { @@ -9669,7 +9686,8 @@ map0 { trips { gpuss0_alert0: trip-point0 { - temperature = <95000>; + temperature-bin = <95000 105000>; + thermal-hw-bin = <0x1>, <0x2>; hysteresis = <1000>; type = "passive"; }; @@ -9696,7 +9714,8 @@ map0 { trips { gpuss1_alert0: trip-point0 { - temperature = <95000>; + temperature-bin = <95000 105000>; + thermal-hw-bin = <0x1>, <0x2>; hysteresis = <1000>; type = "passive"; }; @@ -9723,7 +9742,8 @@ map0 { trips { gpuss2_alert0: trip-point0 { - temperature = <95000>; + temperature-bin = <95000 105000>; + thermal-hw-bin = <0x1>, <0x2>; hysteresis = <1000>; type = "passive"; }; @@ -9750,7 +9770,8 @@ map0 { trips { gpuss3_alert0: trip-point0 { - temperature = <95000>; + temperature-bin = <95000 105000>; + thermal-hw-bin = <0x1>, <0x2>; hysteresis = <1000>; type = "passive"; }; @@ -9777,7 +9798,8 @@ map0 { trips { gpuss4_alert0: trip-point0 { - temperature = <95000>; + temperature-bin = <95000 105000>; + thermal-hw-bin = <0x1>, <0x2>; hysteresis = <1000>; type = "passive"; }; @@ -9804,7 +9826,8 @@ map0 { trips { gpuss5_alert0: trip-point0 { - temperature = <95000>; + temperature-bin = <95000 105000>; + thermal-hw-bin = <0x1>, <0x2>; hysteresis = <1000>; type = "passive"; }; @@ -9831,7 +9854,8 @@ map0 { trips { gpuss6_alert0: trip-point0 { - temperature = <95000>; + temperature-bin = <95000 105000>; + thermal-hw-bin = <0x1>, <0x2>; hysteresis = <1000>; type = "passive"; }; @@ -9858,7 +9882,8 @@ map0 { trips { gpuss7_alert0: trip-point0 { - temperature = <95000>; + temperature-bin = <95000 105000>; + thermal-hw-bin = <0x1>, <0x2>; hysteresis = <1000>; type = "passive"; }; -- 2.34.1