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 963AC470EA2 for ; Wed, 29 Jul 2026 11:13:08 +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=1785323592; cv=none; b=askYIaVAgobs/c60kQA+Qm2GYydG/Du9yzkVPYkTIVlRSIu5Rp52M42yIAd9iZOs7sRdgAQHEA9QBPuCkCWrvwTqVs5NTh4mljIYfVBmmdTtbAoVXLGVV5dKkRJY/LfpOorU6AkYtdY4psArKKANk7hnxSKkOrmhtO7oYKfI02c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785323592; c=relaxed/simple; bh=eHsIHV1AXVz/XaIJHGb+AZLir6HQToB0jT8g6CR2t4U=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=VzAtKOHBUSlwh5qz3vu0/Bdkq6zqVdR3srj+ysIBssQMMzpfaAyiAPgOfOuXokwLsB3mGhfO1UTyX3vBd+bH5yQnUbWMZJFWidyWk51R8hxDpm71w6W4dqd76D173JfkFGVIx3OQiV8U3JT6v0LEujVoUGhTNp7Cn5UlRsa3Opk= 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=cwYOxSpv; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=C45DemVK; 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="cwYOxSpv"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="C45DemVK" Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66TB74B51158629 for ; Wed, 29 Jul 2026 11:13:07 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= egQ5Sd4X5i8dWQKe1toEYX+OzKum8SXkE1FoptzVp28=; b=cwYOxSpvqlV+IcaP NouPLYqR8vSDHZvx9VDC0MFC6Mg4oqIUQbSiPJ7Id0skxvt4kRP+ZPkVzXJNnuQ5 yD/DJGQ0eVe1uBq1yzlYWGvs0gMNREqWF8o0L4+BjT+gjSr7s9yh7eE53O+TyK/2 NdlxLnnAu/L1McBL4Pwgr1ammxgUyAQHzCzhWzebyFA7dIn3ih5ndH31VFbc5kiY WZ49ayefgVu8wsAOp0r/XhMjYOFj7zLuGMq+gyn7YGMh6qWlmIvxCkY02ibVptTv DNpc9rN9d6Dntm3XerZtfjw//0BucB+8vS/KrBg8LJjMXBBIp/1TXwkKKh5YlFH1 b61HiQ== Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fqbn1sb4h-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 29 Jul 2026 11:13:06 +0000 (GMT) Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-51c9d953b71so1195331cf.0 for ; Wed, 29 Jul 2026 04:13:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1785323586; x=1785928386; 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=egQ5Sd4X5i8dWQKe1toEYX+OzKum8SXkE1FoptzVp28=; b=C45DemVKs6Nruhcn0XxVSfeCGOE3XL7W7xoGhFVUif9VjnFj3QJ47fpvAXJZ6XXMVv fOMZlWZKlAwOOixUxLnTE1jw4P4YZ9zfDK7bXmmbC2s7aIg7NBb39zpwk3N6o764rug0 rBzbnLPTFj5zG7aeiqEg8RUPMbiFEpjdHuDcO+I/gTSkNgeDjohrb0idqsOzkPkoKwgo wZfzpK4ZHCR6lgcaqxtAFe7s7F52vNmY2g+LoffqHOqA9a40Zi+1RXL4bXfycFwPBlOk 7ttnOMt6Zz1NQFQTcOCvIgzycw6kYV7DQzBYPCKxw9p49vaVkLFpp3sRsiTyETeiI/y/ g5DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785323586; x=1785928386; 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=egQ5Sd4X5i8dWQKe1toEYX+OzKum8SXkE1FoptzVp28=; b=J0eLLIUo/UGvmoHVIfdrdB+MbLSSNriwBh1Yz6IRrSOLg19x85HHqPCOmTHsTM1nqv pSlxIQdaHfQDCUnUbmCNdcdokBVMD4L+pEHh5UbdONEqydkb3Gi1dWu7Jvee+g05OTFz 49wfqX7vjbuG5FRW5xuA7AI/afo092nk3WBENvpqN44fMwpBQI3sDlrg1b0+VLJkBvIC 5IqKOLMhZDLoqh47PAR4KH2C63ALBV+ZtEsiU2VwmkPihzzAa8mUtiSiJElkLyMmtVtR 0pbzu1YviCXftCztrjAZwNDpA5RvavZb+7uBbeuwjrSyyl7xWr6N1SudQEysZntsGb8M hlDg== X-Forwarded-Encrypted: i=1; AHgh+RqUynOPBAkbE4kau2To/PrJd/HCRCC3071SsBcrISJ17/GgeQ+mVlEPBqIUdMVsqhkipwwxrt93Z1ZXUjA=@vger.kernel.org X-Gm-Message-State: AOJu0Yyu/Jg5IzHwkPKiPvyp+D3H0hYIvQYubQdNLeLEIAjFzfvar6Ev MF/SvJGf7PMtWBFODQH9ocWMHK1I5/WaQp+n7Gpe7uDkSxBAoa66OCKbjWBuofnQEE1FmZI/eQS sXHpMie/mr7u/ioTyUpfe2iA23QjmjTxCZc0qpwGx1uuoBJNXz7kEF8OyMAuP0B6JobE= X-Gm-Gg: AR+sD10XVNoAjg59gNx2/mDuP6/gHc0NHJMA2hNWv8MPxlcHyiFSPFb54Gfph0p5hqr Tzdzabc/bu8QHC9kjKroQDoXo/WTh6m9vnkIiKjQbE/cq1Br5YtPikDbVrD2gVN30nRO/gMMEx7 g+KqQ3vyKuZAr/T1hAH+Zp94DHYmFrPN58g/ZnEVC68gcLRI+gNtedFMDWmIqAr1QBtY911KpKn M2NrI1iROcTljbtfozJPSES+KmkB+Oil3pQffrfQJxWxcYZFsYlspc+fpZZbGYDgsiy95yqHufP XGOjNx3TuHgsKmXyWXTHkmvDO04cRUeihEJrrrqc/w/p/bMqQ5dvzOu25Kuw1EoGu5Klm1pkgGX cl5f7ie+20d+l5nq8PgZVKcHm X-Received: by 2002:a05:622a:82:b0:51a:8079:795e with SMTP id d75a77b69052e-529d70f64dbmr53237161cf.4.1785323585703; Wed, 29 Jul 2026 04:13:05 -0700 (PDT) X-Received: by 2002:a05:622a:82:b0:51a:8079:795e with SMTP id d75a77b69052e-529d70f64dbmr53236671cf.4.1785323585291; Wed, 29 Jul 2026 04:13:05 -0700 (PDT) Received: from [192.168.120.193] ([178.235.128.140]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c1f83ce0eb3sm98924766b.18.2026.07.29.04.13.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Jul 2026 04:13:04 -0700 (PDT) Message-ID: Date: Wed, 29 Jul 2026 13:13:01 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/8] dt-bindings: embedded-controller: qcom,hamoa-crd-ec: Add qcom,tsens To: Anvesh Jain P , Sibi Sankar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Hans de Goede , =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , Bryan O'Donoghue , Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org References: <20260728-ec_add_more_commands-v1-0-771abd65ee1a@oss.qualcomm.com> <20260728-ec_add_more_commands-v1-1-771abd65ee1a@oss.qualcomm.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20260728-ec_add_more_commands-v1-1-771abd65ee1a@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Info: AW1haW4tMjYwNzI5MDA5MiBTYWx0ZWRfXzdiIcIHgnFEB GslFDy4SCQBJc0aI1/sop9qZQeXvkuW4fuuRmP56MqC1FRDC6/oM920RAlXOgfvM8Q6B2C8PMuq Lk6g1SEzXqfwZsEDegsCnzcuN6vOMNQ= X-Proofpoint-ORIG-GUID: zPExWRjaGoggWrwx9xuvkbmj6N2RGEyc X-Authority-Analysis: v=2.4 cv=csCrVV4i c=1 sm=1 tr=0 ts=6a69e042 cx=c_pps a=JbAStetqSzwMeJznSMzCyw==:117 a=PRfkaYvzSr8QmIIGAkY2Sg==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=EUspDBNiAAAA:8 a=ggQ_GJ_R9_w00h1cgFYA:9 a=QEXdDO2ut3YA:10 a=uxP6HrT_eTzRwkO_Te1X:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzI5MDA5MiBTYWx0ZWRfX/6bvFy5NMv2Z pTP42eBRvCnZKmHQlHNYCluTZMjRvpMqknKWvFVXR7JL4zVci4/dOvrmpjsd85b7iYvUFnAzku9 rz5tt2tgDwRW8ItoRA0V7LgT/3GukFnLOTABh3VMlMbtpVsmc+Zu3vpwlvTyS3/pXR41vbWR2LU en2AqzB3E4j/joadHxl1Vs3QcnNLxGXdxadwHE68JtHck4c27sG3/xyt70CLLQ/w+rFWuftHoiX aER0vqT51HdjFJOcq0AH2r9i/lMwnuz0ixn6ZSH1jdWudhWJLXcVdYBLaJ4a5v2GGX2UDoEuOIb 6MitqVAoHfME8U6q/M6+cZd7V1lY8ajyAx/5KOBYQkAolhLLkBgt2P+js4xr+A6FRhkZMOdaec3 BGZ+MzsbfEcNGo1lxWdHYVHDZuPutMOQ1Bqy5JuarDLgU7B51uSfXqBD8xDVkfDL5/K4AWz4eR/ Vw6FGN/MWmQlh511sJw== X-Proofpoint-GUID: zPExWRjaGoggWrwx9xuvkbmj6N2RGEyc 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-29_04,2026-07-28_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 spamscore=0 phishscore=0 impostorscore=0 bulkscore=0 suspectscore=0 malwarescore=0 adultscore=0 clxscore=1015 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607290092 On 7/28/26 7:44 PM, Anvesh Jain P wrote: > Add the qcom,tsens property so Hamoa-based boards can list the tsens > providers, and how many leading sensor IDs on each, whose readings the > driver averages to compute the SoC junction temperature reported to > the EC for fan control. > > The generic thermal-sensors property has no standard semantic for > selecting a range of sensor IDs from a provider without enumerating > each one, so a vendor-specific phandle-array with an explicit sensor > count is used instead. > > Signed-off-by: Anvesh Jain P > --- > .../embedded-controller/qcom,hamoa-crd-ec.yaml | 31 ++++++++++++++++++++++ > 1 file changed, 31 insertions(+) > > diff --git a/Documentation/devicetree/bindings/embedded-controller/qcom,hamoa-crd-ec.yaml b/Documentation/devicetree/bindings/embedded-controller/qcom,hamoa-crd-ec.yaml > index c07483aa5937..ec809fcd03ab 100644 > --- a/Documentation/devicetree/bindings/embedded-controller/qcom,hamoa-crd-ec.yaml > +++ b/Documentation/devicetree/bindings/embedded-controller/qcom,hamoa-crd-ec.yaml > @@ -33,11 +33,40 @@ properties: > interrupts: > maxItems: 1 > > + # A generic "thermal-sensors" phandle only identifies individual sensor > + # IDs, and thermal zones are a Linux-side grouping of those sensors, not > + # a devicetree concept the EC cares about. What the driver actually needs > + # is raw readings from a contiguous range of leading sensor IDs on each > + # tsens provider, averaged together, so qcom,tsens pairs each provider > + # phandle with a count instead of enumerating every sensor cell. > + qcom,tsens: > + description: > + List of tsens providers and, for each, the number of leading sensor > + IDs on that provider whose readings are averaged to compute the SoC > + junction temperature reported to the EC for fan control. Only > + applicable for Hamoa based devices. > + $ref: /schemas/types.yaml#/definitions/phandle-array > + minItems: 1 > + maxItems: 2 > + items: > + items: > + - description: phandle to a tsens thermal-sensor provider > + - description: number of leading sensor IDs on that provider to average Why don't we want to look at all of the TSENS sensors? Konrad