From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794559501; b=txVMP2w+OIKLjTdThYBFOwDwlO+v//fGhXOUWd91JcxGJEz9PHVjkY8cXQpDpf7XGM6V UHFLxUKbmCGUqD7DJl84EsS6gmmNNwPRo9Vo4qF/BBL7LWKdwy8yDY/9VefnfCzr8CGXn YAdOTKDa62E6H0YfUP4Q4bKOf0kiaoEayQEcWjX6r7fnFF+Yj1yRbyg6DbhRKYZmln+Jb +wlkjSAus69ItcS89HjLjg6wXMhlc0rqgayWpBsGW8Yk8lYpM3dfvUpEacfeOfmDtuMSI eZfkPT1J4FvlRGr2khEkWyhcXEa3HJ+pf8cglH3sUooAE/DAsFBjGG0sop7N1ibicNA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794559501; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:From:Date: Subject:MIME-Version:Content-Type:Content-Transfer-Encoding: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Proofpoint-Spam-Info: X-Proofpoint-ORIG-GUID:X-Authority-Analysis: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-GUID: X-Proofpoint-Virus-Version:X-Proofpoint-Spam-Details; bh=4B+k4N/WxVciI3gaNDWzFpGczUzeXz/gtMtUvkPRnj8=; b=l3Qj6gVhZ5/lO4m2u7906SLjtMFPKAFqC90zaotCp2XAqSbTR1OioMJrnD1r8+do2MSe s7DgiYHOvjIw9lHjSmCnDH0GmTxLIPfvS4qld1HxDn5P2bZ/vsmib4rkqNFxE47PqDpnL e7v7PkDNauQPqBUbaArOyen03ikb/EmxVoxv/FgaF9dYlhUcEISVP+j9q2M0CMnWg9zDe ZmVCFcbKdkRGB2a2GVyBECr/00Ibt5LArSlRD+JVKVj9XnEjiFsneVyPn22yL5UrXulLR ezLZK0TYtPl6jOBg2vk4lNytb58kFA8vMsRFXDZb6P+a44OxqtjmtrrQfed86JdxfAA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=dom3x4pk; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=b1ysmHWc; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5A69160A5BE2 for ; Fri, 13 Nov 2026 08:45:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5A69160A5BE2 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none 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.a=rsa-sha256 header.s=qcppdkim1 header.b=dom3x4pk; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=b1ysmHWc Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AD8V1Ev4101634 for ; Fri, 13 Nov 2026 08:45:01 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= 4B+k4N/WxVciI3gaNDWzFpGczUzeXz/gtMtUvkPRnj8=; b=dom3x4pkyLZav7kJ NBsEngBMtcc0Djs71P6R/T3Bcrjdc72HpbrHPIJB6Ui8AJre8inGfB648giq3Fl3 UgLySVcffL6nEOYYpiT3og2/pOi8oQ3lphtQwyxelv2H2ThhMuLCsXPktR8HiXCo AHjlXJvP+/YYR38zeN2Uir4OFu9LTOMgkkKOBYLQsEN/twfpDcATKq3/G2jiddWC 1DPPgSDeGUy2y/XDwwPWOTYhIGgAQ9PKJ8Km8f1SHgXXfKlgMC1doKO+B+A1YSDR 6l7bfa2ikEl17AASKG1z9TNUEvJk7j4Ox0TxnMycnaffvNfESpa8h5Wp8GurIoTZ OHYcNQ== Received: from mail-dy1-f199.google.com (mail-dy1-f199.google.com [74.125.82.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hwkfdjd3h-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 13 Nov 2026 08:45:00 +0000 (GMT) Received: by mail-dy1-f199.google.com with SMTP id 5a478bee46e88-30bcb065bfdso992718eec.0 for ; Fri, 13 Nov 2026 00:45:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1794559500; x=1795164300; 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=4B+k4N/WxVciI3gaNDWzFpGczUzeXz/gtMtUvkPRnj8=; b=b1ysmHWcROO0CzlmtI0KZNIFUTypatg2J0hElZn/VTxurAS7/i9TN/6/L/5F0xnM1o djui0CVBJ65/YrpJH1B8ot8QTHoonP3BLt34/PfeqJzeMyBnZHqKnGYBpWMiWZ5WoObo 9A5GfeLatpRZKFlwYmHT7GhCgiqN6hGMZTznmWoMQ4mk7Ix43CSMieSUW8ldXwMKmvYf 3vGo33vQ5FtZdXyZuBNXooIXEdozlfbxq3p+WqIxaInKQdw4Iw9ofM1kqMqYTmNviSKn TTw9Any6iC/hFipy5yA84M1vmj8bH/Z2mFU71khYZtFwo+CvQfqJR8pYhZYjosk7+GI6 h5lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794559500; x=1795164300; 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=4B+k4N/WxVciI3gaNDWzFpGczUzeXz/gtMtUvkPRnj8=; b=sM9MF7Q2B0k3o1KTSAb9gvxFnju/Pm9zx0rtiBpV2Qe5J2JKunvKul8XKx8/G7S7Hp 573+sY7z+aqbPifPZpKrt2+a+AfKbtiVc/Pc0vH1Ckxoo2jiX8SmCiF097UuTqbRSfhQ 9it+6tHt9UcQ/0dNKJ/m2tx+FqM4LiMVdy+uQssBo3BUKqtnQfF5SVKkJAqVamx6mIdN pcNcwdM9FjO5cX4VUW0cnzIB5ExqeS8He4G76cpAJlqmMttRVUA6uzb+fVRSDEMp0GwS Bgv5S17Q22EuicS2VhpogzVxro95ZX3szUKe7i6vzcOi92vZ+YkjY0VgmMrNj2xS66A3 kUVQ== X-Forwarded-Encrypted: i=1; AL+hErENi1UWh1z2AiSaYcl+/8dlVx3aEpJt+E/HAq3eLK5zSKaA4NZXwbOlY1phR4do6s73LXhLXOaEDW7xV2g=@vger.kernel.org X-Gm-Message-State: APuU4Z916yBXTs8zUuFdvXNLlUPaXHblYyCw207F0QS8aJovoxrdGYYC BsA6IwwLwbjJMPU541Vt86i5PVZyW1ctnwANED+G1ut39EJWNfbC62hxmcM11y5FICzC/x/V20w 3n7XoQAj8+9H72Q4Av7P9ZtdRVpe8v0aGGE4PZBt6mxULqC8fXRADd/6uD6PKXhnRlHs= X-Gm-Gg: AYBFou1wTVGTdrRDkr/63hWyGbAF3/3k3hM+ccnq9/aDwAm94kHymWyR0h0Km9g2Ob0 sEZW/RzVy9blELraGGJZ6WLvLmW/Dd9qkqTCZru29rWvSiBOLomKISCByxq0VEVuqLM67qCEbD7 a0DeI44ZAzt5ruM2PJcxoS2PXaKdleXuYQN+9L/Yh7d0P2Wv0p01viYe9O0uxETa9Nz0JlhxVv1 X0XlZQfvhJG4aW5n6OfdiehKrvm+IB9sUQfgLUh1ts06tZHkAzXvZLE1TpbU/CdGMGS1Af/7wR3 WDEBPJqh090TJqRVuGOH7XwR0oe1zO0BiL2gr1UpsqO+xEkBEE7rJ3WdqjEXNSG28G103jQ1odK RnUNFS4dIj7e4yN0tI40mTdefIA+wRPIWz4onY9jw4zId2R+Jvep04IYw0mAPtpFYh/tHfJ1xvB TwmzE= X-Received: by 2002:a05:693c:87d2:10b0:36e:53bc:467d with SMTP id 5a478bee46e88-3796047ef7dmr1517264eec.0.1794559500026; Fri, 13 Nov 2026 00:45:00 -0800 (PST) X-Received: by 2002:a05:693c:87d2:10b0:36e:53bc:467d with SMTP id 5a478bee46e88-3796047ef7dmr1517245eec.0.1794559499442; Fri, 13 Nov 2026 00:44:59 -0800 (PST) Received: from hu-gkohli-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-379563df84fsm9662357eec.20.2026.11.13.00.44.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2026 00:44:59 -0800 (PST) From: Gaurav Kohli Date: Fri, 13 Nov 2026 14:13:49 +0530 Subject: [PATCH v3 6/6] arm64: dts: qcom: hamoa: add thermal hw-bin support X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261113-thermal_bin-v3-6-878df6eef8bc@oss.qualcomm.com> References: <20261113-thermal_bin-v3-0-878df6eef8bc@oss.qualcomm.com> In-Reply-To: <20261113-thermal_bin-v3-0-878df6eef8bc@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=1794559450; l=5534; i=gaurav.kohli@oss.qualcomm.com; s=20260302; h=from:subject:message-id; bh=HcVpcdcZzfHLlTRXvDjqWWHGSNDZWIS0xPcIBTiDguc=; b=hf+U5PczZx/kTtYo/BjrMS8HHButnfof4VbnSGNlrM131+LQsr9/hXS8vVqi6jXkQnX1L+s4c nDHP8vv/ABKDQyzlZCEv/Atdkpm8Ob9kdbJgvp1q81ahGw+aKgxS3xc X-Developer-Key: i=gaurav.kohli@oss.qualcomm.com; a=ed25519; pk=IdNsqe8rWsF6dbpGHfwPEH9zM0nbOdRH72HxUT9qPak= X-Proofpoint-Spam-Info: AW1haW4tMjYxMTEzMDAzNCBTYWx0ZWRfX3e9TEhyvY5q/ vvLmgu3jTsFS0W2CN1QCyOe99Xg0JcmW2xMIvlXVLpazHYmMd5gKNuhxv9gkaThy4G921tVY+xh FXlu9iiMzKNZ3ynO+eyqi9i8AXY/Mhk= X-Proofpoint-ORIG-GUID: 4WpIzVAum2shOCgkD6bNMBdAg0N7QB-n X-Authority-Analysis: v=2.4 cv=DoTDa2/+ c=1 sm=1 tr=0 ts=6af6ce0c cx=c_pps a=cFYjgdjTJScbgFmBucgdfQ==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=EUspDBNiAAAA:8 a=HHdy7Z-N7RtC6Qn240MA:9 a=QEXdDO2ut3YA:10 a=scEy_gLbYbu1JhEsrz4S:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTEzMDAzNCBTYWx0ZWRfX7KAcMM3clsJ1 6PDUUuKI53/pEtjJFr2mxYXZV6Uhnv17yF0Es1sJ0sQ1d5HD9ZBRrYTtudTfBCsCwpNS5foIuLl m1py9b3i8Gum4gtJAQaqMrnbRkkI8NClJR9jFLYRGG8xFkAMo3jZWNmTvtU74WkVqQ/GEv5qUlq fk4jWBerL1XOku9pOVcFl7lbZgX+pPd4uwbiwZ5rx8sFoghxrnQlUKeKUag4KWcgSSuaul2klKI FAL3I/ZwMBcMUCsjqXYRVcvCn2SrmKbVSCEW1sFUNSgN9vdB9wPriXKyVHZL2ZHtAdN3kZx8+jo LAIcBnF12lawp4jlOHsTG4jAaGp1Avtq/eqJbYQOcJf9ynGIZFiXfgyqNzoJKjLbWf8Nvvz1JOc BrxLwsAWmKkmMhipGkAIWBm/Us/PYMU3RZbOkGUWqNDPtZMzLdyW7eN18IWyRrjNvI5+WE6F10w dJp8U+rv1FhR/VUWkgw== X-Proofpoint-GUID: 4WpIzVAum2shOCgkD6bNMBdAg0N7QB-n X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-13_03,2026-11-11_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 lowpriorityscore=0 adultscore=0 priorityscore=1501 malwarescore=0 spamscore=0 impostorscore=0 suspectscore=0 phishscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611130034 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 | 42 +++++++++++++++---- 2 files changed, 34 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 484cb9ee18a2..1124da9817f4 100644 --- a/arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts +++ b/arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts @@ -1478,72 +1478,6 @@ &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>; - }; - }; - }; -}; - &nsp0_alert0 { temperature = <105000>; }; diff --git a/arch/arm64/boot/dts/qcom/hamoa.dtsi b/arch/arm64/boot/dts/qcom/hamoa.dtsi index 443c1a5c212d..e25729ff23c8 100644 --- a/arch/arm64/boot/dts/qcom/hamoa.dtsi +++ b/arch/arm64/boot/dts/qcom/hamoa.dtsi @@ -2767,6 +2767,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>; @@ -2782,6 +2785,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>; @@ -2797,6 +2803,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>; @@ -2812,6 +2821,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>; @@ -8829,6 +8841,12 @@ 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 { @@ -9751,7 +9769,8 @@ map0 { trips { gpuss0_alert0: trip-point0 { - temperature = <95000>; + temperature-bin = <95000>, <105000>; + thermal-hw-bin = <0x1>, <0x2>; hysteresis = <1000>; type = "passive"; }; @@ -9778,7 +9797,8 @@ map0 { trips { gpuss1_alert0: trip-point0 { - temperature = <95000>; + temperature-bin = <95000>, <105000>; + thermal-hw-bin = <0x1>, <0x2>; hysteresis = <1000>; type = "passive"; }; @@ -9805,7 +9825,8 @@ map0 { trips { gpuss2_alert0: trip-point0 { - temperature = <95000>; + temperature-bin = <95000>, <105000>; + thermal-hw-bin = <0x1>, <0x2>; hysteresis = <1000>; type = "passive"; }; @@ -9832,7 +9853,8 @@ map0 { trips { gpuss3_alert0: trip-point0 { - temperature = <95000>; + temperature-bin = <95000>, <105000>; + thermal-hw-bin = <0x1>, <0x2>; hysteresis = <1000>; type = "passive"; }; @@ -9859,7 +9881,8 @@ map0 { trips { gpuss4_alert0: trip-point0 { - temperature = <95000>; + temperature-bin = <95000>, <105000>; + thermal-hw-bin = <0x1>, <0x2>; hysteresis = <1000>; type = "passive"; }; @@ -9886,7 +9909,8 @@ map0 { trips { gpuss5_alert0: trip-point0 { - temperature = <95000>; + temperature-bin = <95000>, <105000>; + thermal-hw-bin = <0x1>, <0x2>; hysteresis = <1000>; type = "passive"; }; @@ -9913,7 +9937,8 @@ map0 { trips { gpuss6_alert0: trip-point0 { - temperature = <95000>; + temperature-bin = <95000>, <105000>; + thermal-hw-bin = <0x1>, <0x2>; hysteresis = <1000>; type = "passive"; }; @@ -9940,7 +9965,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