From mboxrd@z Thu Jan 1 00:00:00 1970 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 D8825402B9C for ; Wed, 29 Apr 2026 16:15:03 +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=1777479307; cv=none; b=CFbnEpgHhnYXu2Sf1vZ4IOsrSkxHCiFTAFnfru9Ld6s/OKWwiHj9d+HlLGJnm2EnbinKN6TylAK34tZhuXkMrVBXv4fKDcup3hTro1YJmRfWF3O+sFiLKpkDLR0u9IhG+U9s7lveNJjM91TnPC9481qvACqd3P9Or/yW7qBuqoI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777479307; c=relaxed/simple; bh=0hqwleN+hGYWOPBNiXuqMAKygpx6yIPIDHS/duN9w3I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dPxqFuMYCEF8dLn7sfRMVw3o8KWG3FCahbOba9uTSTa+g8qs7AaF09FbAmDapk+ZR90iFCx+cCEIgOKmlhOA917DcTjReHMQNH0oW0scc05PE4b++fZe9kKoCOkLWKxcRj3PZMIaJZwyfjAuEBpSmzkKkGVZ/ShWVQNLeXu4Z7I= 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=R9WDmL0b; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=a4oYuKGB; 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="R9WDmL0b"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="a4oYuKGB" Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 63TFVB8S3066928 for ; Wed, 29 Apr 2026 16:15:02 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=WKIGIXDHh9X 0RP427er22w6scCsGhci8yorv+QWR6Ao=; b=R9WDmL0b7l2UUA9WUXk12qBecj3 Zqzn+0RElZ5Wr2DDnRGDSVg7WZ/D0T0tBvW05yY+/1G7bW+nP6HEg7Tta+T7T/lq 6McZmPRf48leve06DYPIE2OaM3JmoXwQPIA+pHUdmryKfzwp4Oje3h+7XKirv5lw oVShu2SuQfkbDkJMqyquhBl6oIjzbPydjdiLvQJ5iXNJRUD1OaxyPF5wARasplPL g6LLTicWm2HLI/MiPkJW0sErqbOdPhFAJlq9ATiWkRmKVGXyH56LjHgvWSentj7g vQmvnLSwworO/R5eFrnmfwxbKM/jbssDzQi2NOtMJ/xzz0BqvzD7uDMUdpQ== Received: from mail-vk1-f197.google.com (mail-vk1-f197.google.com [209.85.221.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4du7sxbe15-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 29 Apr 2026 16:15:02 +0000 (GMT) Received: by mail-vk1-f197.google.com with SMTP id 71dfb90a1353d-56f6e1969c8so17084174e0c.1 for ; Wed, 29 Apr 2026 09:15:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1777479302; x=1778084102; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WKIGIXDHh9X0RP427er22w6scCsGhci8yorv+QWR6Ao=; b=a4oYuKGBmXF1uRqqrstJNCP3emZgqeJxncTiG0qs1UCRLswj2TCvgvyLVxGn/Tfz8f XEAZMdHNigfzpH7Sbhpz+DAjZjXcVXDURViIIIcmvvXm3LjGX3Yb5PHUC4mZ87XQKF88 y8vml3uSZzyNW9qLpFVhicpVfCAsCVz7DM/7U/IKeIahoT6Y0mK1Oyqf1uAhw5equ6np CpnaqOWx8I98ybEqXEZea+zvGaheiCNqhBCyfgz9XQYPiHViSX4L+3EgzHpxfyTTdTzt +bKolGP24ZbBXL5ovK3N/N/VWKAFxIFigpUU2CqDaubg2q05cZXvwCIq0qkMkr1md22x ekjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777479302; x=1778084102; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=WKIGIXDHh9X0RP427er22w6scCsGhci8yorv+QWR6Ao=; b=pbnaSnzl3e1Bae7xCxgiyWEoaun2Z13jGpvqDSWlfq95mreShPIQ4IKWTkgN9CEUTm MzRiLKCUaCnVyllJpKMIBQHryfZDQAyyYqscWhr2gxFIUi5v2mlIQk7iFhLLfaExJgID bN5h5x+srCbEdhYXaWxgoYmJw4qoGYDh3MtAksvh6ycqeLnKO0nf6Mcy/RY7AGaz2utD Gd67xIsmLJc0DZry6fV5qvF3FBuQ/kIQpdSeYsaSInClF/KYitmgbrljCrIY685C6dri u+PolYoR/ofOsUG6dn4yU+Wj/EX2Q95E/UD7egHF8q0A5rxNwIQv0ZaxwCCUgts6dG3a stFg== X-Forwarded-Encrypted: i=1; AFNElJ8vAG+ML3iIZeHbnziPNbQxQVgrTEjego3ocj7vxE5AIMKmTq5Wd7o/vY7FxzmXfniwfOFdHm8CP7nK@vger.kernel.org X-Gm-Message-State: AOJu0Yx12vtVxZAmt930m/F2IEe3T0DtmhZlIWJPKXQlWG7U97WC3KfK aiIP9sErms2ER8afibKhY+iF2rOsY4UL78fh426sXslqjN75cC8d/ah+zqe5Frbn59Kd7q8uT64 IA6rKx9k5lqQ7s+k31JuMvFEhL6lxclwqLQACTexaktX4SLK18Tw+ZW6tf/4PEyjA X-Gm-Gg: AeBDietp+KyEUNX2Dqfgh9Ky6pNukC9LQngXAq/+jOeRlk55GqLqJBA9Ct8FvqVTGUi Pz17yFtSPSJR396/T6yl4LFUkF/E8XGpz7Qqjoo6r7zFUG+HP1XuppuYMgKfiZWylf3NRmJ8Ff5 oyjsvNOvpoEs4tHeilxt3xeKh1neANRpNhzfDz50xfMjk2f2FHNjKMX7QZT5sNgq2YFTN4S7Pgh O+Zib29OIKlBujieGzLNKGgKF5crvaMePNFotn00J9y4u2BafJquTjBSR+0b6hPBrygYG8kpzMW Ll4EF5afVHXz56UvzZnb5FNgLrLLJzQ2T/u54TXnB78mo9IA80cgjwuMcx+oiQKZhQTp4uKhTEF MEgxk7ft4Kpl2/GrmQPggsphCixqi4SzBOCVQHBQ7UEtICG9qTO6/pLVVHMCS X-Received: by 2002:a05:6122:45a5:b0:56b:815c:961d with SMTP id 71dfb90a1353d-573a5580601mr4806184e0c.5.1777479301483; Wed, 29 Apr 2026 09:15:01 -0700 (PDT) X-Received: by 2002:a05:6122:45a5:b0:56b:815c:961d with SMTP id 71dfb90a1353d-573a5580601mr4806128e0c.5.1777479301015; Wed, 29 Apr 2026 09:15:01 -0700 (PDT) Received: from mai.box.freepro.com ([2a05:6e02:1041:c10:ae20:597c:99b8:d161]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48a81ed659dsm2438525e9.2.2026.04.29.09.14.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Apr 2026 09:15:00 -0700 (PDT) From: Daniel Lezcano To: rafael@kernel.org, daniel.lezcano@kernel.org Cc: gaurav.kohli@oss.qualcomm.com, Zhang Rui , Lukasz Luba , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lucas Stach , Russell King , Christian Gmeiner , David Airlie , Simona Vetter , Guenter Roeck , Joel Stanley , Andrew Jeffery , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Benson Leung , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Heiko Stuebner , Thierry Reding , Jonathan Hunter , Bjorn Andersson , Konrad Dybcio , Amit Daniel Kachhap , Viresh Kumar , Neil Armstrong , Amit Kucheria , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, Krzysztof Kozlowski , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) Subject: [PATCH v3 11/11] dt-bindings: thermal: cooling-devices: Update support for 3 cells cooling device Date: Wed, 29 Apr 2026 18:14:24 +0200 Message-ID: <20260429161430.3802970-12-daniel.lezcano@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260429161430.3802970-1-daniel.lezcano@oss.qualcomm.com> References: <20260429161430.3802970-1-daniel.lezcano@oss.qualcomm.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: iXnbqnklqd1gWykdIrd3qyYy6MPHs5Mc X-Authority-Analysis: v=2.4 cv=eeANubEH c=1 sm=1 tr=0 ts=69f22e86 cx=c_pps a=JIY1xp/sjQ9K5JH4t62bdg==:117 a=xqWC_Br6kY4A:10 a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=EUspDBNiAAAA:8 a=WD-cMf_r4H3F8z8mj00A:9 a=tNoRWFLymzeba-QzToBc:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDI5MDE2MiBTYWx0ZWRfX289xFyJRJjRq e38NavhxShnwEDYTcM5hXcawo8u7nH8T8csTYmO2j1lDyyXbMD2lVzxfyLqBdbiZfgx9edINddp BSvCOrsBSDPCAngD0EJjDyjZDb7DhtjhdUsFa5SLawVubWBVc+EXIiox+GPOpLQht497Zu+Pmcc RlJgJSOsPhCyBu5H/lC3lbydpWb1HXA0PYgxaEIKrGXDz2A3heXheoSHsvnQ5DBKs1Sd/ASDJzz m/mgirwlULGVaDFuCtZOk0bzmjcd79mV2UJZu0BKAJ+W/9JzMg3BVhsr217bA2K/y8xhXKk8qpe YD582GKQ13Blt+4Lfupa9w2T3C9i/EpImwkE+5tNl0mtdFMnDml8r3tDJ556HCu2qTW/DlTNIUK hBVYi1eGNz9mRiEksZ6daYgmRyCIeE5EVFisHQODzQUBH7XTzCXt+Kl4XVUlKGYdPlMBnMwE2Cq KfIiKtTDQtVhUgGEnyw== X-Proofpoint-ORIG-GUID: iXnbqnklqd1gWykdIrd3qyYy6MPHs5Mc X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-04-29_01,2026-04-28_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 adultscore=0 clxscore=1015 malwarescore=0 impostorscore=0 phishscore=0 suspectscore=0 lowpriorityscore=0 bulkscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604200000 definitions=main-2604290162 From: Gaurav Kohli Extend the thermal cooling device binding to support a 3 cells specifier along with the 2 cells format. Update #cooling-cells property to enum to support both 2 and 3 arguments. Fix pwm-fan.yaml to restrict the number of cells to 'const: 2' Signed-off-by: Gaurav Kohli Signed-off-by: Daniel Lezcano Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/hwmon/pwm-fan.yaml | 3 ++- .../bindings/thermal/thermal-cooling-devices.yaml | 8 ++++++-- .../devicetree/bindings/thermal/thermal-zones.yaml | 3 ++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/hwmon/pwm-fan.yaml b/Documentation/devicetree/bindings/hwmon/pwm-fan.yaml index a84cc3a4cfdc..6a24851fd80d 100644 --- a/Documentation/devicetree/bindings/hwmon/pwm-fan.yaml +++ b/Documentation/devicetree/bindings/hwmon/pwm-fan.yaml @@ -63,7 +63,8 @@ properties: description: The PWM that is used to control the fan. maxItems: 1 - "#cooling-cells": true + "#cooling-cells": + const: 2 required: - compatible diff --git a/Documentation/devicetree/bindings/thermal/thermal-cooling-devices.yaml b/Documentation/devicetree/bindings/thermal/thermal-cooling-devices.yaml index b9022f1613d8..28f5818f1e60 100644 --- a/Documentation/devicetree/bindings/thermal/thermal-cooling-devices.yaml +++ b/Documentation/devicetree/bindings/thermal/thermal-cooling-devices.yaml @@ -44,10 +44,14 @@ select: true properties: "#cooling-cells": description: - Must be 2, in order to specify minimum and maximum cooling state used in + Must be 2 or 3. If 2, specifies minimum and maximum cooling state used in the cooling-maps reference. The first cell is the minimum cooling state and the second cell is the maximum cooling state requested. - const: 2 + If 3, the first cell specifies the thermal mitigation device specifier + index for devices that support multiple thermal mitigation mechanisms. + The two other cells are respectively the minimum cooling state and the + maximum cooling state. + enum: [2, 3] additionalProperties: true diff --git a/Documentation/devicetree/bindings/thermal/thermal-zones.yaml b/Documentation/devicetree/bindings/thermal/thermal-zones.yaml index 0de0a9757ccc..1261ba0e802e 100644 --- a/Documentation/devicetree/bindings/thermal/thermal-zones.yaml +++ b/Documentation/devicetree/bindings/thermal/thermal-zones.yaml @@ -214,7 +214,8 @@ patternProperties: device. Using the THERMAL_NO_LIMIT (-1UL) constant in the cooling-device phandle limit specifier lets the framework use the minimum and maximum cooling state for that cooling - device automatically. + device automatically. If three arguments are specified, + the first argument is the cooling device specifier. contribution: $ref: /schemas/types.yaml#/definitions/uint32 -- 2.43.0