Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp591228lqb; Fri, 24 May 2024 07:34:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVzGJrwe2diJvY2tkpoxreXeCNt07ugcaJ2VnZBGUxhaLiuCCXPehSt3GP/J4Joj0Wj29h3e84K9W2hA/prnZYFOMLKUYZnF+vnBEFang== X-Google-Smtp-Source: AGHT+IEJgqf3WEauR04Mz7QJc+oJv2iG+HJpt5gwXguSo5jSfPJOBG91/1+d+EfIKvz4FsUQPpre X-Received: by 2002:a05:6300:8086:b0:1b1:f7a1:df91 with SMTP id adf61e73a8af0-1b212f64d5emr2658984637.61.1716561250215; Fri, 24 May 2024 07:34:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716561250; cv=pass; d=google.com; s=arc-20160816; b=a2QCtigykqswqNPPPLcAg2K+vFApeBUtncoTyxiutLcSsDL9Z7/ZBrVar77yBh4Bhu kM1tl/zhWDsVF5is0VwpaJodo4LEnwpOnGjjshuvjsu5pkhVNAghFxLfZAE7YwSw0vNQ ti8SrIN8BZwh1EZOvC5rdRWx46nXmb+T5qFJfA4oT9zmvav+GD7wL7Eca9BcwN+iVAsH XzAmf/rBMoFfXb7yYsXXGU71n01V8auvM2KfqJgbVNqrqigtKt5Tl40O1YvV29W6ukQZ kKiY9hQc93wUC90M2raaaifsh9AqXX+mHRSgTbUHkA8mUVSlsVYuAHTecBK17oT9Z+8l NwTw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=x/1Ee6H1I4b4eaa21f1IZfthFOHfX8TRhLVEevdwWj0=; fh=YvP8cMWBzn78y8llRoShzj2vn3AXRaKsBoUat9WAzMY=; b=bMqP+WQJ9yFbq2Yx+HMJ3cfp4hQ2Vq+9wZde1K/xO2Ovy5z75ZJ6B2VqrcwhZnl3Pv QmRD+LdN9I6C+pxgtkXtkxI9ExbREkU4k2d/0rP9e4MQcUU6R9P+m+CNdD+El11DPInx MZ5VHi9IDEAq4/JCfAPG7L/imHl4oBRkAzH5dknxPB42VG6C4tp5EgoVvcTW5o/tR37q EVU4LvXJN02QR0WECseCrVZ9C9hzsIHIFh2r4LbwOZAS0YUPywcUgbzMbGCJHaKGnpZ0 Va3f1WoPKGGDSDurol3cF+VBBF2wqS4Z4d0UTT/RNVv9HHn1SVjwUKiSo3jhkSWQwz/i eFCA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=V8XIZtmX; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-188797-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188797-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f8fda17b12si1535282b3a.396.2024.05.24.07.34.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 07:34:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188797-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=V8XIZtmX; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-188797-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188797-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 23433B22A0B for ; Fri, 24 May 2024 14:32:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 41C6312DD87; Fri, 24 May 2024 14:32:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="V8XIZtmX" Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B142F12D748 for ; Fri, 24 May 2024 14:32:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716561125; cv=none; b=T6qMRv56JqIxudK2slCQY7LF+25DfWcx/BHj2ZR1Oi1fmw+irO0z2aVY66shQqwVafwj/5UYQGc90NA+TXpls4zbFxqQjG91T+yzBGFPkP3rykMy+JynFtcQprM8zqjZo1VaMasPv4m7D2Zm3CQ2LQEr2x6SC8F+SGZZTKpiC80= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716561125; c=relaxed/simple; bh=mGHJTIEqaOM3rGni2f2k2W0qT+PA8lgJbBpgTIxC7k8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=d5L1DQPMftPMBN+y5thCV+DVG8VRfrpCPXD7+oCAvY+y+JcIVtK2yObkPeXIjEZ7TPeuyYkPNLkIaRhyRXXPiKnFICxGSNqu/y378luQvZxMhmQ/pVN2ddn9xNpN36sCpMPZ1QsqQfv43h6b+tKbzEvv5ldj8KSyU26UfC4KLsk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=V8XIZtmX; arc=none smtp.client-ip=209.85.167.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-5295f201979so1081552e87.2 for ; Fri, 24 May 2024 07:32:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1716561121; x=1717165921; 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=x/1Ee6H1I4b4eaa21f1IZfthFOHfX8TRhLVEevdwWj0=; b=V8XIZtmXCIif/wk8caetPmdFoyx29DqFpr+cwKfx5KMhPHl8ymU/CCkuBbD4OLYqZh Tdxmh9LECY1R66vLE2C67avS54JiwgRQo+ynqnTcWai9sPxLjHtthbYfsLajATvqdqB0 UqOE15EtlNmxhD7Ktq45e6dAF67F4qBDNDtJBsZ/XDA0BiY08P9kSrhm6OJZj1y0lMAw 17z9Qisyylrbt60om8G8ZjH8tmxQMB+NB/NmNG4Yvxw+pt7cP2U/FCMjsx3SJwyOZS9G fzn22bQAbLRiJTHHWPeAlwp1uaUzpjXwv4sseocijwbjFhGYxLOVp+jKCU66pnlNnFLn WtOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716561121; x=1717165921; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=x/1Ee6H1I4b4eaa21f1IZfthFOHfX8TRhLVEevdwWj0=; b=D5dIOafzgslweGy2KApQHovPR/UdFbpGH8SjSngLhBOAfkfuXSTjSe6jcq5y4VwwKJ yOYKs7V8eN2Bo2DCr/Ne9UpzKb8KC1+A+TZp6+pcVZGAMS6A8wH5It6FYbpFxGfqS7DM qNpQj9yJ4957E/5ihJ8i/lRjHKb2zhEVkzPpZClEmOTCS86lmmlrClwAPUvBOUeMge1d JWZD2EHK9AGoaAK5qhK/NcxHv3Vh7wxJBUG0R2gj8oEvk6F1rEpCE2I9ooETjPwxmHY+ xJhofux+qjjKnxqIglv6ae63abHTukOtHje4XydL6N92XKhnl+TKb8Vo7s8q5xih8iAV 2tsQ== X-Forwarded-Encrypted: i=1; AJvYcCVwRdfTgQg6L7C3WLkCmaHvKvpxaoItZ8XNmGo0ulW/yYEz12p8YpguGUhR2TCFQr2pzAJAk0GNquy8gLf8UkGd/hqPrLUq5TPXS8CX X-Gm-Message-State: AOJu0YwYF+TIBrYNcrEh1JX79pQyG1OO6z0WLpXPnEPHCn0EJczECYBK Bpd3e1Wy5/wIsFmS1metQCTiaho3rCbitFN+Xj+JD3jIipm1nJ2aTRdWzfywDg4= X-Received: by 2002:ac2:4c24:0:b0:521:f000:5d1a with SMTP id 2adb3069b0e04-52966ca837fmr1547324e87.59.1716561120954; Fri, 24 May 2024 07:32:00 -0700 (PDT) Received: from localhost.localdomain (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3557a090c2bsm1719611f8f.59.2024.05.24.07.31.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 07:31:59 -0700 (PDT) From: Alexandre Bailon To: rafael@kernel.org, daniel.lezcano@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: rui.zhang@intel.com, lukasz.luba@arm.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Alexandre Bailon Subject: [PATCH v3 4/6] dt-bindings: thermal: Add a property to select the aggregation type Date: Fri, 24 May 2024 16:31:48 +0200 Message-ID: <20240524143150.610949-5-abailon@baylibre.com> X-Mailer: git-send-email 2.44.1 In-Reply-To: <20240524143150.610949-1-abailon@baylibre.com> References: <20240524143150.610949-1-abailon@baylibre.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 This adds a new property named "aggregation" that could be used to select the aggregation type when there are multiple sensors assigned to a thermal zone. Signed-off-by: Alexandre Bailon --- .../devicetree/bindings/thermal/thermal-zones.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/thermal/thermal-zones.yaml b/Documentation/devicetree/bindings/thermal/thermal-zones.yaml index fa7a72e2ba44..e6e4b46773e3 100644 --- a/Documentation/devicetree/bindings/thermal/thermal-zones.yaml +++ b/Documentation/devicetree/bindings/thermal/thermal-zones.yaml @@ -111,6 +111,14 @@ patternProperties: coefficients are ordered and are matched with sensors by means of the sensor ID. Additional coefficients are interpreted as constant offset. + aggregation: + $ref: /schemas/types.yaml#/definitions/string + enum: + - avg + - max + description: + Aggregation type to use compute a temperature from multiple sensors. + sustainable-power: $ref: /schemas/types.yaml#/definitions/uint32 description: -- 2.44.1