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 128432F744F for ; Sun, 19 Apr 2026 18:23:02 +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=1776622984; cv=none; b=IWKcUt0Vhw2xqCEs+tXKNlSk4Nog7WWDY1aws1ocvXg1hYM/eg7ZQVKQ1LXnOTp1LnhLnA5rs9NANew4NVOnNnBnhRd2qtc2RCd4fo0BeJb6OnvhV3uJVX8dXLXIKeNncl1nGfTbRQJlRJmcaiTxD3v3NilmPgu+qtir1ke9H4I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776622984; c=relaxed/simple; bh=WzntAKrn3SE/S0P6q3sFoaSPnkduyAfvojxfo8h0D/E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=F0mbB2MwsHYVONBf3nJ0dt7huxXwtB/0mSdrswZ8sLqv41VQwyvIs33s81TtlKzVmBLPEtzLVKM6v9o9N4EtJoJ1bT6tJBMP/5cxjNsXeQaso6xdq1BWL9FoTZjijOVmA85IuU98kb1S3HdPP2XpENckkYTXc5qzk9hlOEQmIB8= 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=Hgkh6xag; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=KyJZ7Ljn; 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="Hgkh6xag"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="KyJZ7Ljn" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 63JFkNuw3562740 for ; Sun, 19 Apr 2026 18:23:01 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=/O0gxmkDAI9 OIMx5SPRWuVmH2AlYc/ZdPsgTg3SpEAo=; b=Hgkh6xagQ7VuzMo95XqD7wXM8EW RmfJQJnGYCg+zIr14mvfwXRiofcPUgBcJT1x3V2T1HuMu1bZ/9I4psqEwzlv9cPz k5lF9nwyVVIpQhownNXkMiTWDzeQh6OfHpte3eXiJ70mLmQZG39C0pfE/Ymj/DnA qCk+m/SiN2hpb1hrNRE6hV4JIyPgQzBT0ZPLZmIgH9emvNkFE3sGnYKqxKEz8u21 7r9/TVICyhptUNTv/Hq7X8CG7gkufNdf/lP6iP7XlctZY+yzuYNg1ic3OQc6ekf4 FeN9Fk+jGAl0p3nJor4Lm0lpa3KAQJy7Iw20yoya2PbXgkVNJkYkwLT+LuA== Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dkyank9dt-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 19 Apr 2026 18:23:01 +0000 (GMT) Received: by mail-qt1-f198.google.com with SMTP id d75a77b69052e-50e160d5fd3so53716401cf.1 for ; Sun, 19 Apr 2026 11:23:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1776622980; x=1777227780; 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=/O0gxmkDAI9OIMx5SPRWuVmH2AlYc/ZdPsgTg3SpEAo=; b=KyJZ7LjnQdmhr5hkI2I/xDuUZU46NZYDgRnSq9MQ9cxe+0eDZ+p1shMNvRDkpWDj+C aQX4lnpT45I9wx3/trQ5ve2/6W1l3F0J8nu+LcMxVg3ICAbvHMdQhDS7Rq0JSzhaR0Ie 4KzYEZXfIjG+YICK6lzUPuCkJNRXEZfuRoBmhYrKPEfYir4ybItFviniqfrSyNmZ3nO/ 54HY6tKSzd+rcEAgbVqkd26+FGqaWpSqUaGIYkgCF8W/moiSHKKj0uVcUd2iqrozMTrE +vw8fpJbaoz1iZgJ0XVMER/Rfz8fadMLMkIVQ8ANtkuYLCtKHnFF0wHfFfnNtxjMwqyM 55zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776622980; x=1777227780; 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=/O0gxmkDAI9OIMx5SPRWuVmH2AlYc/ZdPsgTg3SpEAo=; b=fHbZwJ4hIEl7tCDjopm5kTpbRx8RtW6UfKqxCVYZogrx7D0PcVwDBrPJtKGn2/BN4Z obDpCDlpTeEJEBUy5Lk9tHSQG2DllllBOl7FC6UlTJCyTznaKRXwkf29l/gutnpuNKSF jhN+MrNgfAwnbKiuPr6O+2c0SFlcZ3lpCMPR36GWyvOmDqoGG9EbscYIoHT8qsUtBVdW 5JD6EIg/fyjQ+FWAE9Uq/o+fnzbRztgJT+h5//7N5w/KF46yDvS/6EhFA1+H+/nXc7V9 xCz++SG6exoo5H1sc0jAQqf5a0vBfRpzAbdBn5BTFpleFRmIn5Q0fNE2S/YTHlda4STt NmDA== X-Forwarded-Encrypted: i=1; AFNElJ/nSiTuH4ddZKBxVc7wJTJ/krmq0OOuYxGvATqjo+9lj2k3FVBPnVCTNUhMk66iOXWUHRi8o4A1MvzQC8g=@vger.kernel.org X-Gm-Message-State: AOJu0YxyOoyjv/Cd/c9L6ElEFtTrYFwU9u6P/g/8y1YVxHNz6+09ODwf va+/siFUbBBxLEaAnV9kEEmEF4vnj/X32KJ+Mf9//fs4Uet+6IoT4FwWNOxZQR+BMIBBj5cHNqt Skk9k9gn0vKkl2lLsqYK7mBtY4guggCZAH2uEqWdI8lAbh9aJrc1RqCVbk2dSmvXgFCE= X-Gm-Gg: AeBDievfCOo0iw/jUpZ5AzI/hg9flHKcFvEI080n8WgAOXvxr+pDYBqVH2M/3G94Qfi N6og8fW/wV4jslGDEUYfXFb50R7DaY0eNlBXxfKTEG/kMKM++ElGKERg3JgFFRjJ3+DB97NdhFe KQEGZEaQzjYZsNpYOWSMkPgbKmqhzj1cb+gf7HTgeqb69koL/JIHWGSczN10j8pnPaHQcMJ9fQk JlHdV/6P/Iw9Gq1yxi+I4xQ+ez8UAqsoyJmcDRRLK+AHlmhcI67tff5B1zNrmt25sUqKCVFxjME s4ErkPWe2t3MsoVlGicIMrnuT72+OwbFI89yufSJOqDaNbvzFh+s/qcVw6xFQJaD1UCp55+dv4+ 9XEXyw7cbw+nxkmDr3Y6+z+o9nFgSlsqAjQMxMs0aFfl4n/c5Q1mBrIw84Y+y X-Received: by 2002:a05:622a:a05:b0:50d:dd3a:73b4 with SMTP id d75a77b69052e-50e36c49454mr168590681cf.37.1776622980443; Sun, 19 Apr 2026 11:23:00 -0700 (PDT) X-Received: by 2002:a05:622a:a05:b0:50d:dd3a:73b4 with SMTP id d75a77b69052e-50e36c49454mr168590301cf.37.1776622980036; Sun, 19 Apr 2026 11:23:00 -0700 (PDT) Received: from mai.box.freepro.com ([2a05:6e02:1041:c10:ae20:597c:99b8:d161]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43fe4e59f97sm25723070f8f.37.2026.04.19.11.22.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Apr 2026 11:22:59 -0700 (PDT) From: Daniel Lezcano To: rafael@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, Daniel Lezcano , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) Subject: [PATCH v1 14/14] dt-bindings: thermal: cooling-devices: Update support for 3 cells cooling device Date: Sun, 19 Apr 2026 20:21:58 +0200 Message-ID: <20260419182203.4083985-15-daniel.lezcano@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260419182203.4083985-1-daniel.lezcano@oss.qualcomm.com> References: <20260419182203.4083985-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-GUID: 84daq0iRqyXTudeLQxUyY1jNXox_g9E5 X-Proofpoint-ORIG-GUID: 84daq0iRqyXTudeLQxUyY1jNXox_g9E5 X-Authority-Analysis: v=2.4 cv=SNFykuvH c=1 sm=1 tr=0 ts=69e51d85 cx=c_pps a=mPf7EqFMSY9/WdsSgAYMbA==:117 a=xqWC_Br6kY4A:10 a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=EUspDBNiAAAA:8 a=GhBi0EG2tKjOyko4s0MA:9 a=dawVfQjAaf238kedN5IG:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDE5MDE5NyBTYWx0ZWRfX4u51b/1bDx/4 4P7Vt5TuwtegldVActhmdH3+GMpdRuAvtOai4DsgmNLw8UZpQiHt9VuJx4xLAWhGDK/9IQc2psI +m27SEv1K91KlAULa5Zrm0icxhAtpfLM1hLJVDksIHBiL69ViNb3NID29lWnHikBiEng38uuNax aULp0d0rPzPc9gyMslodgyQAC8bpAlzksnQ+LkfIumRuJ87+JPnvm5+Q/iGsfn4CIgomAkXrNpw yymoUjP4CMuYqJi4lXlT/4TEzWWFYe6mUwfQQjY16SW8/MpXK7H2FZ2zlGR5CeYENrzOcRaScz/ 7DsqDI7YclQJJNzjOyl9WGUpt2omR6OnKs559jf1Qk8GgE/VQFiZovNHOaisxNMLpHIjb7p6ur1 mJz5MNVM48UGYqrSMoS4cuV6yGYC8Nw6NDo4h2esY0wuHkhBftZRSK0wvIZ6j4ZdZ0WXyFE9kgr dLobSpffcEaC4tCRGwg== 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-19_05,2026-04-17_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 phishscore=0 adultscore=0 malwarescore=0 bulkscore=0 suspectscore=0 lowpriorityscore=0 priorityscore=1501 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604070000 definitions=main-2604190197 From: Gaurav Kohli Extend the thermal cooling device binding to support a 3 cells specifier along with tje 2 cells format. Update #cooling-cells property to enum to support both 2 and 3 arguments. Signed-off-by: Gaurav Kohli Signed-off-by: Daniel Lezcano --- .../bindings/thermal/thermal-cooling-devices.yaml | 8 ++++++-- .../devicetree/bindings/thermal/thermal-zones.yaml | 3 ++- 2 files changed, 8 insertions(+), 3 deletions(-) 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