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 134982FF669 for ; Tue, 21 Jul 2026 06:21:44 +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=1784614906; cv=none; b=ADUGCO/jy+RRYyCIksuFySqy2kuK2JCAjDeDMsqDnWWfxdZN0gCIQKbBWb/A/IFzJVPADX/DXWiwcAyuGlnJS3Oy8FkwND0hkA7H7MhIJb7fLZg1MituTA9QdMu7FBxF9tErm2tmXr6MSm+DMoT05EBIF+2VavXd7Gsw97N33GA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784614906; c=relaxed/simple; bh=Uxn58aySpAhdMQ6ah7BqnJsCZmhT2AihwvZJpamBVTU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=NFAWGt1YsHaPD5gp6gaBkPa5dlLp8xTFM3epTjeKfspx0OlFhZgLo54erKhr8Sd1rGTAXOihcGkecc/nERc1IZg+Q6+SKSzdy16lQw5j9fajqJk2OV0cV9BflhsV59x0ygnXSSVhjtMqGU1lvef+lYsP2/h3Ic9VDT03DIZUSM4= 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=eJCrsFOD; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Ir3Lg3qx; arc=none smtp.client-ip=205.220.180.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="eJCrsFOD"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Ir3Lg3qx" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66L4SrsP527381 for ; Tue, 21 Jul 2026 06:21:44 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= nK2E8OyvdqxAm16nc66xTl8OYcZkCGcWgPhwWc7zC4w=; b=eJCrsFODEXjORwKi yQBwH0vukiKkMmKcEozMrSZ6gsfxmlVBOv0iBxjbFcHhrSOpQDZRbjRq80lQyTKl 3pqdCoQNKNXnB6JHxM4CFReYaHdLmtA6/6WIdq+blVeV+q2lE3DeNeixvMO47Ucr uRyvNOi3oxPqAAwSHWkiYHcoe4/qHZ/N2VTiL3lDZR1jmDjsw5APFM5/KqmciZVW szFdEbrC3+ynOYDSjtvwZx12SF7ZvT+ySoSTKhVBfjOkQLZiej4vseroEyx2oQwu aEiVyjKwV3QU+6+4fxi9Wl2UuHcRsizRLeWxqAYqLG89miTyLueFdf3P2vdWYgVE c+NJHw== Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fj1se0cgd-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 21 Jul 2026 06:21:43 +0000 (GMT) Received: by mail-pl1-f198.google.com with SMTP id d9443c01a7336-2cc7e86e7c5so196008185ad.3 for ; Mon, 20 Jul 2026 23:21:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1784614903; x=1785219703; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=nK2E8OyvdqxAm16nc66xTl8OYcZkCGcWgPhwWc7zC4w=; b=Ir3Lg3qxR8HQpLfiXdEPLd3ByPXYEH6DwGO/AzoZ8C/jjp507KGYDaFDYsqeXLfnJE XLpkkcJfi7kGXi7++grdNHoB2GpPJj2uMZCt50DM9n6RFSczCHH/VCrV297P8se5Lna5 HFgxJlnWZPdUBEXvwIZJPt0SWyhYuwbg0GJ0n0cWUQ7b7TKuHooNmx6kYij/GnH4p7dM hzy9bq9ulxqJSnTw/PFxJhRdX9ROAjxAq4bOgARNsXIRV2jlsb+3HQKv0MvXYmDpQDJk 4mbQoCDSH0gZth5vdaMmuc+UxQGIMlIU0Madv1fZQmixfDoioXSERTpY33kuSOZZsuMS aMfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784614903; x=1785219703; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=nK2E8OyvdqxAm16nc66xTl8OYcZkCGcWgPhwWc7zC4w=; b=tJqD2rYIuTY8AY0KGCUzRfv10UtzhyxKkNDMtOfhLllFRMlXzmArThsfpiEKH569GZ AZduXE0YRIjjAsv4Gxb/I187UpZhS/4yyAyhNczMw/whzWSqsxFn7kpqX58+6Sc8h2h+ a4p8D9S9Yd9PS4wca/Rq3z5M6iP4z8SWmh1Ix02ESVKSdQUy66dJpMMPdvSFIn7GuRt6 pvU3vE3EqZEamqMgYOEh6n+xEKLyZBXC1AkkJsZCnoEDuqWHpjnvnAt6qZrhpZOXgDXs Mz73xj538cO6Ofu6MxpDAJRDtLaw9/zDu/xzhR2vLzeBC6OgUTcUIMV0n1xT4fdTZV/Y nISQ== X-Forwarded-Encrypted: i=1; AHgh+RqPAYYTG7wrOCMJcZ60ada3CSPbchww0k0C5pjP/LzcUPfcpXGuhsIZ86W/Uas5JJr7yrnmVRJUX53D@vger.kernel.org X-Gm-Message-State: AOJu0Ywao9vpKjBxwZNIFA/6u2YxnniYucKdEg9XzuqEI+MPso4Aiha1 Z7+nlorF+ZBEt61QCLtauWBEDKhJUfYlNf5brROBTufygDvT/stbm6unOE1Vr5QKRjIcg19ceaA SIefRTxJQJeiMhZZPG8GtCHKacZeYIY1tYhsMr9S5g8ShSdzFCAsYkt4PAU+OKHXYeyvC2gz8 X-Gm-Gg: AR+sD12pyahBFcFhsafYHEoXlqg4UMWvsmoiBt6lrS/GkQy/hKSiYkvhyKVuaV2cqb8 5JP2MMZJ/Fft2472Ni+UYhRHRbKLJvAiHUAy1KdZpxXXq2jNJ+PY0oTrQTnskc9r6BOO6KaFYxs +oT5AtiLkjVpEB4t5X14Of74A4jFV7c8B4nFRpKbz54uADJL0LO0qLr/2PbpcaqIxwc/7nc0MQE L3GOC7pP2SDKek7mPSFqYxPYRN1p2hQSnnDkEpGLEVPlAKn6/tQlgnCxpe7y3y+vEM/clqJ4lxa 4qDRhZ51pnjBqOFsioyhT4cVZYQHGQ8gcRjBqyrhbYQ5W9qWe+vCmE22owtqKkByFN1d+qM/XkJ RpGNuE18ZPh6xNCnzrAcmgy7pyUyhenw= X-Received: by 2002:a17:902:f693:b0:2cf:7f6b:8c8a with SMTP id d9443c01a7336-2cf7f6b8e8emr25843795ad.30.1784614902884; Mon, 20 Jul 2026 23:21:42 -0700 (PDT) X-Received: by 2002:a17:902:f693:b0:2cf:7f6b:8c8a with SMTP id d9443c01a7336-2cf7f6b8e8emr25843495ad.30.1784614902268; Mon, 20 Jul 2026 23:21:42 -0700 (PDT) Received: from [10.217.199.117] ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2cf3448d9b0sm69347495ad.13.2026.07.20.23.21.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Jul 2026 23:21:41 -0700 (PDT) Message-ID: Date: Tue, 21 Jul 2026 11:51:38 +0530 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 3/4] arm64: dts: qcom: Add PMIC thermal support for Shikra CQ2390M SoM platform To: sashiko-reviews@lists.linux.dev, Jishnu Prakash Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org References: <20260715-shikra_adc_support-v4-0-5e07b6d21429@oss.qualcomm.com> <20260715-shikra_adc_support-v4-3-5e07b6d21429@oss.qualcomm.com> <20260715075531.75E061F000E9@smtp.kernel.org> Content-Language: en-US From: Gaurav Kohli In-Reply-To: <20260715075531.75E061F000E9@smtp.kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-ORIG-GUID: FALR6FVPVOrC9tErJQv1_M0FDVZppkHI X-Authority-Analysis: v=2.4 cv=TIZ1jVla c=1 sm=1 tr=0 ts=6a5f0ff7 cx=c_pps a=MTSHoo12Qbhz2p7MsH1ifg==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=-4L_Sy8ICBWNds7pXkcA:9 a=QEXdDO2ut3YA:10 a=GvdueXVYPmCkWapjIL-Q:22 X-Proofpoint-Spam-Info: AW1haW4tMjYwNzIxMDA2MyBTYWx0ZWRfX1j75JSNh/pdV GhbJNiDHDgyVPPuGN97XrKQriOnw997yW0spnOtIqTYVmue8J4NU2Pl5Kt88pVSgQUVholn2tKc GP9pdvYYtsV9JThpb1GVd5ALqxptqd0= X-Proofpoint-GUID: FALR6FVPVOrC9tErJQv1_M0FDVZppkHI X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzIxMDA2MyBTYWx0ZWRfXyMo6blAH2vE2 gxG7kQR5Mydha2l391iDINbsKpeoMT5QEeQuOC/0QT8VjoaXMKvdLA47nrp6VfSKJj2BqiRRfL6 Iz4CexpLkqtExKhEyawfFCEopbjTuzN3LDbwkGDHfCMeGVvGlRBWthTenUUuML7MsFYrl8stcHI Kp11QlJEWHSQzlTb/S/KlAFAwii/xmIwuMkNpnuNgvAPF1GUJ+aKM+NaPr4OPlgsXHPHJ+zFkEo 8B+GD8b4ZfmkxwkpiIEUbroYvSf6nveYCfznMvvxvK4sDU8tysi/6lOTHejgRDEv95IfeNgBoXk s3yConx/1m1FpPtEhQ1d/upaoJEGrLw+19uYGdKDl5abouIHxasTVr0ItKzXOzVgiB8FkLhXPHV 4cLhNV6wMAw0UZ+y9ljwDgp9/6SCywecs5kpBV4XIzP853HzeBXs1pVxsyFNxx1hVwkYboR6Xl6 IF8GLNM2+BxXjM+EJ0Q== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-20_06,2026-07-20_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 impostorscore=0 priorityscore=1501 spamscore=0 clxscore=1015 malwarescore=0 bulkscore=0 suspectscore=0 adultscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607210063 On 7/15/2026 1:25 PM, sashiko-bot@kernel.org wrote: > Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider: > - [High] Missing `polling-delay` in thermal zones using `generic-adc-thermal` renders thermal mitigation non-functional. > - [Medium] Mismatch between ADC channel definitions and pinctrl configurations causes bogus sensor readings. > -- > > --- Patch [3]: [PATCH v4 3/4] arm64: dts: qcom: Add PMIC thermal support for Shikra CQ2390M SoM platform --- > commit 0bee643f0fa64e35671928d7a4baae1362c3d049 > Author: Jishnu Prakash > > arm64: dts: qcom: Add PMIC thermal support for Shikra CQ2390M SoM platform > > This commit adds ADC channels for pa, quiet, and msm thermistors along with > their ADC thermal bridge nodes. It also configures thermal zones for PMIC > thermal mitigation on the Shikra CQ2390M SoM platform. > >> diff --git a/arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi b/arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi >> index dc3861489f64d..139d0ad0b1ab2 100644 >> --- a/arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi >> +++ b/arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi > > [ ... ] > >> + thermal-zones { >> + sys-1-thermal { >> + polling-delay-passive = <2000>; >> + thermal-sensors = <&pa_therm_bridge>; > > [Severity: High] > Does this thermal zone require a polling-delay property to function correctly? > > The generic-adc-thermal driver relies entirely on software polling by the > thermal core since it doesn't support hardware temperature interrupts. Because > the trips defined below are only "hot" and not for passive cooling, passive > cooling is never engaged. > > Without a polling-delay property, the core defaults to 0 and might never > schedule the delayed work to read the ADC, effectively disabling thermal > mitigation. When we enable the cooling-map for this zone, we will add polling-delay as well. > >> + >> + trips { >> + active-config0 { >> + temperature = <80000>; >> + hysteresis = <2000>; >> + type = "hot"; >> + }; >> + }; >> + }; > > [ ... ] > >> +&pm4125_adc { >> + pinctrl-0 = <&pm4125_adc_gpio5_default>, <&pm4125_adc_gpio6_default>; >> + pinctrl-names = "default"; >> + >> + channel@4d { >> + reg = ; >> + label = "pa_therm"; > > [ ... ] > >> + channel@54 { >> + reg = ; >> + label = "chgr_skin"; >> + qcom,ratiometric; >> + qcom,hw-settle-time = <200>; >> + qcom,pre-scaling = <1 1>; >> + }; >> + >> + channel@55 { >> + reg = ; >> + label = "gnss_therm"; > > [Severity: Medium] > Is there a mismatch between the pinctrl configuration and the ADC channels > being added here? > > The pinctrl property for the ADC node configures gpio5 and gpio6 for ADC use, > but these new channels are mapped to ADC5_GPIO3 and ADC5_GPIO4. > > Will these channels read from unconfigured pins and produce incorrect > temperature readings? > >> + qcom,ratiometric; >> + qcom,hw-settle-time = <200>; >> + qcom,pre-scaling = <1 1>; >> + }; >> }; >