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 BCF2740245A 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=1777479306; cv=none; b=Ql1KxkuU5P3cTOLbe0fC8q6A4+jXLFt7kB8wlFvs3d6CNNRmx3Q2i8jy0633/HM5LSbjv9OWb6XD3x+ZnYHBj74NmrMAyKgpE8az3Ba+DYO4psi1s5KBHqh9RnFrT+LEYv8vqgpxVL7PsJduEjm6nGwBY9FXYInNWnoGPdtmj+w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777479306; c=relaxed/simple; bh=0hqwleN+hGYWOPBNiXuqMAKygpx6yIPIDHS/duN9w3I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pyvEN+ZagAJpaeXYX3vipqai+75lTmrySE1DqChXaVOX7xO0vjos1fRxHI+ZbGiYJX/ELlvWs0i9iK37TaRsl0IjAGZR1EHBg3h9jkiTCezk926/qktHqzyCBzUkSW3IgEWRmdHXyC9EH9eArdDQ78iRA7YGdz+4RREtI8DHOig= 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 (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 63TFZHqt1641533 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-f198.google.com (mail-vk1-f198.google.com [209.85.221.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ducj82df5-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-f198.google.com with SMTP id 71dfb90a1353d-56b67e8c2f5so15857149e0c.0 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=Cajzf35n9OEbJYgFtG0gT9GZiLjMAnddpf5vPqGZXcthFkIniFvPwi6Oq1EzvtNvgI dhikl/R2pnXSF3mkYSdrwdvUyshsX5a+RXaIu6QVbBfcTQSHL1/xdIqJN2eW8DmhrEJU OOGLaeMFPhLfP1DbTmcjW9EexqV2/awsxXCT4bdoBpR4LBzg47mA0Z8Nh+HDGGuTKu48 WJNGrUe+h4zIK9+e8pYx58aTECZr9Rt+K/YbRRTusc/sgLbRX3u8F8PlOoO+T1boFNWj DeFmPBTV7HtKNgsHNINqqiHhhQeKDzZD0Iyee0lnmQfpT4CfP1d7CP/fFcTsyVKJWj4f jSRA== X-Forwarded-Encrypted: i=1; AFNElJ/N6yJXLPQ1LyaJyPktreO+Q8HtM3Mlc/L11jZRHIJjFfqO7vNlJR7s+eyDSwj+0FDgSQNA+CkEww7vCPQ=@vger.kernel.org X-Gm-Message-State: AOJu0YylkLQUl864QfcvuQ8e5ITEWQ/3kVYSKOKgUZdRW+ZUBv65JO5p aMa83PkmT35DugE1e/3qPN2lbrp61565/8lG2BRzLgU2WCFu4iO8jIHX2uFmaQp9KO0CBJrI9pF jYf+NIL+beU8WBcDfPP8i/dGBe//FmqHq7N/aP+6D/0s9q5wyCUji0HjRgs0RxYzMtEA= X-Gm-Gg: AeBDiev+8wlAeNJwxJNYDTcqlJFA+6VbrFvYjKXv486eoL7xA2q1VOaQVHVZR0pljxp R1fvMEOvFVuPi8Z5/O+CVmGhqab7VcAB596xLelgnOtQJw0/TlRN+g8lXPvYY30dZnUi3Z6cEi7 xF0h3q6MuBLOqDYoy4sM7g4qdBKbZWNrNtFI0fHmQqVJrqznpXYlTw8wCdaB9nu4+WR0yQ1VyKZ FhAXkf1LjCTu/sKIlqgAsWx042fLZvZjxkcKqmRNQAugJFCoiJ1umP//DQfgbi25fKKcK82MNli ExiNrnRcNS6eEDKD7ZOgmeTyGCZcUtrrGPxg1ir9mM7VkZdG4PQD0P13OO9kISDxxxxISIzRGan +VfEJfFadaAO0weu/hj56vyGJ7mcOQo9TQZxnhxDCiUdXOIp6VOaFlKOM1g0+ X-Received: by 2002:a05:6122:45a5:b0:56b:815c:961d with SMTP id 71dfb90a1353d-573a5580601mr4806215e0c.5.1777479301553; 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: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: FuGfY_cu-wtL6pq0i6Cbatw_KL8-0qm4 X-Authority-Analysis: v=2.4 cv=RI6D2Yi+ c=1 sm=1 tr=0 ts=69f22e86 cx=c_pps a=1Os3MKEOqt8YzSjcPV0cFA==:117 a=xqWC_Br6kY4A:10 a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8 a=WD-cMf_r4H3F8z8mj00A:9 a=hhpmQAJR8DioWGSBphRh:22 X-Proofpoint-GUID: FuGfY_cu-wtL6pq0i6Cbatw_KL8-0qm4 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDI5MDE2MiBTYWx0ZWRfX7QQg1XC5TPlL gU1e8Xc+tq8lml+4jqbhXCgbuyXuj0js5z4Vy9B8j5rhMeu2ipS85zF7ZasDkcwKtynouHGqB8d hj1AfojU2xzSVvvU7RHOVj2XeuSe5bE5fv2TcJobCb24hLiLXKpBrkjVNg1p6Z+s8ZjsY6ok93O dw4usgSZpwVpx/KjTyqOPB+Tz9BfnMW2HqxVt/TmTEy03qG4zHGitNumheqaa097DS8ScSTICo4 MBof9LYZhZ3YZsj4ICTVNoqOhi+AjNbi/d5ZILuOce1Ibv/JNEd06D3xzpmVYTkWO6YKpswyytY KJRfCt2PEiMingXM+66YaF9SdffDKZzBw9lHEpab3UQVyyxAcZhs8blqQyvh1ez/PHqMfyBoFPA r24cqABRXbOg5mmMQopY8qakSRy+MBHLyYjG++qf2TSnKdR6v1ertcCwyQkLI/pN8rqRI6YFTQO nWEADc4M7s8W/IO0QEg== 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 phishscore=0 priorityscore=1501 malwarescore=0 suspectscore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 impostorscore=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