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 90F134A3D33 for ; Fri, 11 Sep 2026 16:41:47 +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=1789144911; cv=none; b=Oj2hpaYTxnP9bOWvV9jgYe+rVh4+ekPiGIzHRcV+3yXxcdCQ70gPKfZm5hp2XD/havN/7B2sceZAY1E1Q4j6xmzbbm/DksmwSX43WhZDYlPlx9TPmSlSFAU0/RRappqnGd+R6Y300dk1sU6nLVNm+jspF1oOCrEndyyIiio3W14= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789144911; c=relaxed/simple; bh=QCon49Ot8O/e2pM7+8CojRw7D66D4IEK4MsBLQANqrY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=E96f9JEFgwhI+I3Vqj9ruQVsUxqM6J4FIp/nwXamLsbD+BlU4nUJ/8KL17wwITls1VrkIM0V7bZO3Zty5X25vNd1WCUNkyIhyHZe2AyLTPM9xN0UxoGLQqGnnV5wRybKfvUrXgUIcUIf66DN0RN1AQLR1yAeY1eLEpHQJqG9TOA= 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=CL96jNwE; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=WYoWVH3M; 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="CL96jNwE"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="WYoWVH3M" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68BEm1Pi1370479 for ; Fri, 11 Sep 2026 16:41:43 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= RbsLMOeJpYAGtp5sTYvCoYNNSc8CfAGSW5oeUPz/10Q=; b=CL96jNwEngNQGV39 WmtPZjm2Z1Rl5LfhdfaYV1rfU3pdBIzqzl4lZDWxu6WEOKvYdOpihsKAcKmulyGc 6TJmu73yGyJjsUBnrXjZvJvPAwPaSM/qZynbNKV/kuhJdXI6ayIo+HDDOJSOb1KI t3tASXcDLopGba4CULScpT4aWtb0PscBSJijwfO5TdxBEf6U1xcDqzZrjM/tfLSJ rvIDCAJT3Sq/VE8MYzTjBIBlmWACD+IRKUJI0TMhK4BFfBIlwbcd8/xTHoygaUq8 oRj5WpCPXMu9U6gCT8vDU+4VXT3al/h0RSFbVUCRE3GailnOI07oA8wvhbADZsju rrPKJg== Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gmbf8jsm2-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 11 Sep 2026 16:41:43 +0000 (GMT) Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-2dd1631d291so12919975ad.1 for ; Fri, 11 Sep 2026 09:41:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1789144903; x=1789749703; 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=RbsLMOeJpYAGtp5sTYvCoYNNSc8CfAGSW5oeUPz/10Q=; b=WYoWVH3Mom4rWvJDN1WivedmrMiaE4K68OCvT6hxgimSBL/LCkkdrxgGPDI3MmASan 2mv9w7AsBzzlm4/aSgOahtW0UfotL/3Gig4eskensZvHkRqvfkhvA2JJfds4RuM9taUs tXRAm//RPwNt1Y9lYlDa2L/G773a8CVYgzXeo5m21gIC+nVtZVAH9w6l7s/MmGzd0D8A EPpwwZ2zenA6/nKQYGo7SePiA2Zy/g5NvtPu+6XNS3TDSXbid2oR6NHcXYTH9Zkb9+MO lP5fO/Ybn1jh5OCXhyw1P8ZjI8rHMSqdeY1XSZDX44/K9z/bwEp8Sj0lTZ+K6TQzzGGw DKKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789144903; x=1789749703; 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=RbsLMOeJpYAGtp5sTYvCoYNNSc8CfAGSW5oeUPz/10Q=; b=ekZf2Rg14uPxPgGT8F6QEvSy0SO34/1FbZhq3bOhxz29iQtr0bB4W5t3HTwU/84jcF ITv+RjxsAhms+1Jqt4clC5gWp/r5q1sjlKxobj2yZsxMErIPPfAiIUAWXO/Nlkak56iv 0NxNFnvuxq+dx/AH8WhZjd+Xv/ue5KxADMgUf3xgLbL7cQvDYgQfc6qZU8+f0dXEE5zJ PStsm8k8X14j081sBJjvg3hqbTQHU9h/EkwwbKeQSY+9aX+JMJ7TApb++5O4GjES1RJi izfjG8c2JPkAT6F459Ebu/raSFU/dr9Njqc90kc82gDyK7jQZz1SOuqVuiQjPMplRDF2 hU4Q== X-Gm-Message-State: AFuF++kRjoMxsuB5riSwfSMT6wiKF0n8jZTpqHbiOEjw+hcs90qoZFTf JRTGYHO+3UoZoE1O3NF2cqXW/6qXRvajUa1GE6gv2gJMyMELasTSm1S0J0fpeKfLNl+RcbMab8C IB+NRp6JJWorglPjY90zrRf/2Suih5QoabMEodbV6KcPIPN03/vLoP6HfIDfcb7HRKkTeKGlurm 9c X-Gm-Gg: AYBFou2n0UvMxW/GfA3YJD9Y+eSjaRzS24sKR7SlKm+ydd02MUQ62xj+KipAAd+Dyvn zoRhyGY9GADgJvB8p4bjYQl8oL/YHwZPLa5tc/oE5lnl2DgLW6hNazuXL5LxgbbXPd4SdzVlPya R9NEAu5xVCzWNG4TuGdcWhzh/poMR1N1appoAfRKusqlub3c3Eh+KZXAohlA+dzEqAJYf+HVv+Y HCbNeX4/QLTxNvNY6ko2PCa22DEPSicq0Lm1T3ef+O1Ob9LXfuMfB/RnGsgWnfYefTIPdlNUtp2 xPammx/LyEIJ71PBtKSnhs7Qt53P6ceRrbhvlNYkvK5IUOymYLpyXVHZ4eNJqNpgD8Obvk9anM9 LX3UFSRZ4huH8nrgbkgI= X-Received: by 2002:a17:90b:384d:b0:38e:250b:122f with SMTP id 98e67ed59e1d1-39d9c1b4a9dmr7808064a91.16.1789144902762; Fri, 11 Sep 2026 09:41:42 -0700 (PDT) X-Received: by 2002:a17:90b:384d:b0:38e:250b:122f with SMTP id 98e67ed59e1d1-39d9c1b4a9dmr7807988a91.16.1789144901838; Fri, 11 Sep 2026 09:41:41 -0700 (PDT) Received: from [10.213.109.130] ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-39d9b2a8076sm1618171a91.1.2026.09.11.09.41.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2026 09:41:41 -0700 (PDT) From: Jishnu Prakash Date: Fri, 11 Sep 2026 22:10:42 +0530 Subject: [PATCH v6 4/4] arm64: dts: qcom: Add PMIC thermal support for Shikra IQ2390S SoM platform Precedence: bulk X-Mailing-List: linux-arm-msm@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: <20260911-shikra_adc_support-v6-4-e4b2da5cd55c@oss.qualcomm.com> References: <20260911-shikra_adc_support-v6-0-e4b2da5cd55c@oss.qualcomm.com> In-Reply-To: <20260911-shikra_adc_support-v6-0-e4b2da5cd55c@oss.qualcomm.com> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kamal Wadhwa , Rakesh Kota , Jishnu Prakash , Konrad Dybcio X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1789144881; l=3566; i=jishnu.prakash@oss.qualcomm.com; s=20251014; h=from:subject:message-id; bh=QCon49Ot8O/e2pM7+8CojRw7D66D4IEK4MsBLQANqrY=; b=uXjRvEzrRS5DLiice8qtLaEkec0RtzA+pW+MuOApF62UkdnaYgIEoS4VI6oDfI0tFu1DUIkk4 78R1lFCgm1pBYcuroea/OZLGAI10jaxJHPI/aCexywQbaJoYNFIImlU X-Developer-Key: i=jishnu.prakash@oss.qualcomm.com; a=ed25519; pk=g89pXdLVwRjdTeQ+uX1QzvBO346E3hQAc1N7fcTXgmk= X-Proofpoint-GUID: ESaLYwSc2j7BDZDmHnpyOqWOmrkSYkJB X-Proofpoint-ORIG-GUID: ESaLYwSc2j7BDZDmHnpyOqWOmrkSYkJB X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTExMDIzMyBTYWx0ZWRfX4z+h2NDMDajw ee1M0Ty6Ko71omGj6qz0QFK4Nmi/tjawIOpL9CUMEW+8yRtzlrdunsQKAIOg/BHJecrkqgH5SOn pyW8cDDwtpTMBhcpKREeZNeIfypIgYH7dJsdkabToALNRXE7uBg51aAuE3nA6vCD28OfHJLP6Ve VHF4vBjYhfINcf/RRlnM7bursv13jzJjuiz2FP+oqgYPReEyNaBtdsI7HXO70SYYa8HAJoZ8h45 WJJ/ZKyIlO01zwkbfFDhaUmzu6NQU/WEDTn0PqXnIof4uW0Pe74txT8fYi6V+YFDAbNIul1EVdV Wnc3WrmHLTPtd7A31SzLPnZgaV4V3zzSGF/OqK9okP0P9ygE0laIXK3mAq9LHNj6ZNFkX4dbNnq xGZUsJpFgtRsKA6EEgx0aObhw2x8jgNP93wAwxxrmbIR7/9YXaicciopzCRJNCIaYwsGd1M+Nl+ jNO6RXvcji/nVIjRokQ== X-Proofpoint-Spam-Info: AW1haW4tMjYwOTExMDIzMyBTYWx0ZWRfX+smNXMy6DfZz jCZXcxmwuqNLNbTu4QEzmHchUE4fsuZYvetMcv4DqYjKsctIvEYE8EvfCZ+2HrMWJycjd9Ewzn9 b2kK+AdKbD3yR7iz/2/WdeTFiXFXIEc= X-Authority-Analysis: v=2.4 cv=UJFIjyfy c=1 sm=1 tr=0 ts=6aa42f47 cx=c_pps a=JL+w9abYAAE89/QcEU+0QA==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=EUspDBNiAAAA:8 a=eSwfGQiZR0SxMorl76cA:9 a=QEXdDO2ut3YA:10 a=324X-CrmTo6CU4MGRt3R:22 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-09-11_05,2026-09-11_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 phishscore=0 bulkscore=0 spamscore=0 adultscore=0 malwarescore=0 suspectscore=0 impostorscore=0 clxscore=1015 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609110233 Add ADC channels for system thermistors, used for thermal mitigation. Add ADC_TM nodes for pa/quiet/msm thermistors and also thermal zones for them. Co-developed-by: Rakesh Kota Signed-off-by: Rakesh Kota Reviewed-by: Konrad Dybcio Signed-off-by: Jishnu Prakash --- arch/arm64/boot/dts/qcom/shikra-iqs-som.dtsi | 113 +++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/shikra-iqs-som.dtsi b/arch/arm64/boot/dts/qcom/shikra-iqs-som.dtsi index e119ace54e58..a6769364c192 100644 --- a/arch/arm64/boot/dts/qcom/shikra-iqs-som.dtsi +++ b/arch/arm64/boot/dts/qcom/shikra-iqs-som.dtsi @@ -4,6 +4,7 @@ */ #include +#include #include #include "shikra.dtsi" @@ -31,6 +32,44 @@ key-volume-up { }; }; + thermal-zones { + sys-1-thermal { + thermal-sensors = <&pm8150_adc_tm 0>; + + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + sys-2-thermal { + thermal-sensors = <&pm8150_adc_tm 1>; + + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + sys-3-thermal { + thermal-sensors = <&pm8150_adc_tm 2>; + + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + }; + vreg_wcn_3p3: regulator-wcn-3p3 { compatible = "regulator-fixed"; regulator-name = "wcn_3p3"; @@ -76,7 +115,81 @@ vreg_pmu_ch1: ldo4 { }; }; +&pm8150_adc { + pinctrl-0 = <&pm8150_adc_gpio2_default>, <&pm8150_adc_gpio3_default>; + pinctrl-names = "default"; + + channel@4d { + reg = ; + label = "msm_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + + channel@4e { + reg = ; + label = "quiet_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + + channel@52 { + reg = ; + label = "gnss_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + + channel@55 { + reg = ; + label = "pa_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pm8150_adc_tm { + status = "okay"; + + pa-therm@0 { + reg = <0>; + io-channels = <&pm8150_adc ADC5_GPIO4_100K_PU>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; + + quiet-therm@1 { + reg = <1>; + io-channels = <&pm8150_adc ADC5_AMUX_THM2_100K_PU>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; + + msm-therm@2 { + reg = <2>; + io-channels = <&pm8150_adc ADC5_AMUX_THM1_100K_PU>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; +}; + &pm8150_gpios { + pm8150_adc_gpio2_default: pm8150-adc-gpio2-state { + pins = "gpio2"; + function = PMIC_GPIO_FUNC_NORMAL; + bias-high-impedance; + }; + + pm8150_adc_gpio3_default: pm8150-adc-gpio3-state { + pins = "gpio3"; + function = PMIC_GPIO_FUNC_NORMAL; + bias-high-impedance; + }; + vol_up_n: vol-up-n-state { pins = "gpio6"; function = PMIC_GPIO_FUNC_NORMAL; -- 2.43.0