Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1881570lqb; Sun, 26 May 2024 23:56:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWZ1FYW5iKJeGpUgYfEI5YmFWWxVR4gIAmQwBJxGGJM1Q8SsA+imRO7JR/ItBCI0VbTTsVkY2FWX++nhE/JXyQzihWc4cAAPz0WgM3aeA== X-Google-Smtp-Source: AGHT+IE08S0V6MAOvpQO2ZfBtNG2wnuVUbhTGaBrxQwgwzU243NDJTnyC0f8WZapDPt0sQQmnr8V X-Received: by 2002:a05:6a20:a10c:b0:1af:d057:be95 with SMTP id adf61e73a8af0-1b212ccf88bmr11683501637.11.1716792994481; Sun, 26 May 2024 23:56:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716792994; cv=pass; d=google.com; s=arc-20160816; b=QRPidbEkHdZCV7PqHnHGTldDti+5yiZ4OCf2DsoE9e11+4r9WHrWysK93J8NygfrKu U7jWarq/tdmZQahJK7N/krriH9dtrB2DPSZPdhkelDYxVpcklwcudNodr3mf+5ZsMc71 Uxg7VYwgdy0V6H5YUZBFn22FZIeiQBujoVuQq9O9WPP9Caf/mz4izagGqvQrxMa43G6C 77UEdP9r3AH1XDy1jn9l+22be37yWRYft79ijThUzhVsh7DfZMDnQUn6T/MCmlGS8iv4 gVlOl7+WIJCRayamN/faTU8WfvYh2Ypro3SZ8EmZB08s+oiX7LWhUkFiB2Hru2Ve5XTB Lwgg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=etkOs+jLo9IMGYwxyaUB61TS4Whlbe7itmHxGWKZyYc=; fh=zimQfNrLyC3D4p/XSzijcCgDXkB4tIihNTD23uZCgIQ=; b=Laycq7X1q58na+ldtIqVahnjulTScq7IfvNL75DWqdv//2wuPrr1r5G/IqqWHRNtWp 6GqUM6C6bIQzNJnDrqRosvAmtH+rVZ9uT8TzRATnpA5i6BTS6jJISN3MN6MO0YvJLIRI Z7oteTG03A5KvR2b8be+QQ8Vs9u03jDf89NxeGlEPy2ZLDzZ3Hhbs90/nSt+23fi90iZ dEGKrZwTgj8xiCuc2+wwaWG5HJN2Oaph4Ps+/kFJNZJNhOAGxk25r2t7IuwKfFnDgT9u wMIDwiJ9WDzAFfD/GQDnzCAHmyeuDxbZUNRpFeWqkiqpTXvr7N94WdxXAQBJu7aYerYp 1big==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nygGisJo; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-190110-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190110-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 98e67ed59e1d1-2bff060486asi122160a91.57.2024.05.26.23.56.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 May 2024 23:56:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190110-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=@linaro.org header.s=google header.b=nygGisJo; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-190110-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190110-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 D35FFB20E9D for ; Mon, 27 May 2024 06:56:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 41B5C1EEE6; Mon, 27 May 2024 06:56:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="nygGisJo" Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (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 AF00E17BD5 for ; Mon, 27 May 2024 06:56:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716792964; cv=none; b=AsmX6FP1gRhTtawH7ML119QSJOcziouVaTvCXw6A4ksMryjenDzB7viQH5RZW+0qPoTLUDklX4xDhq9SgV6kQTJ2XIfOgSfUYf/T+EiXt3jXUC2JGZDP8WkhECHHO576WggUAFAufaFADllIJTTnW8eoEzmCPZfNInOtUvSIvEk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716792964; c=relaxed/simple; bh=61H+vlKkZBEfdQTaQTfeY9m5+DEAKkGHLIuZYqlPlPw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=su0eJki+ZnvTuD67SscplEuS6ZdbB6hQOHnjumffXWc2wlU42Sb+HMY3daSWVw15S/HkLjOFyg+e96iyEnrxYs9xm0Cq4Fz7YZhoM1jS5mSBNZ0AgXh4jL9/8Ip77AT4Yu/xR6STURFJHgA1Ahq35Qh20eDe9qchcTDbklaQcOE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=nygGisJo; arc=none smtp.client-ip=209.85.208.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-5785eab8d5dso2940418a12.3 for ; Sun, 26 May 2024 23:56:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716792961; x=1717397761; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=etkOs+jLo9IMGYwxyaUB61TS4Whlbe7itmHxGWKZyYc=; b=nygGisJoa+oPJ4M6ehM4KbpLbs0MvbQgfY/18eo0SyoRXQITKSfzmVHQd/4zb6U6cG VZYw0IQ1WRLh9n/NscVE/gfmJolM34q4nlAk5Pxlk6nRpqIIkLtSwpzsNE+XFQhqa6nj 48AjHNbNRBE/L8i+rl3etjqtIBdJlPlXyB83mpryaIQD+RMRCKgjxsoU6Qj6gwY2rLcv 7JFvIucnRHD2niLHBijmbPGDyvaJgBzLx4dz2z8mnr2aeYVUYKueWe4l4VavfvogVF+H G4ZSeGGi6tThPEH+lYCk2gCqjs9ELCbN/Wx3TM78LIu37MKgZS89Y6rIkoV9qHiJaUyf NG1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716792961; x=1717397761; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=etkOs+jLo9IMGYwxyaUB61TS4Whlbe7itmHxGWKZyYc=; b=oGexKXcYsCC4I60hLnuS9Z6FzyvXzEclYccjUflBTzO/Oxo1JgG1cDd8pWJ7mOHUkX atF7H7D1DX9fOoh79Nul7b5fALoKaYCFG9Rx/WqW9BiiOl4xKnR9iEa4LgHSxdZiSN8t nGkYPO5u8NsoQDKhUj48CdfcOQfUVhS/btlMWGDjkOZd/wd2+6GeOxbR3C1cuLrVGobb N00/iklx1wVySseZbO+142rpcW/YXWHDI9HrytNSAvFrjMA0LOT8Pu88yuZce1AhrFLa yMS8UjEZGFMXv17MUOxk3YLCZbUS3Vo0o55LyQxKRCsvblo3oyvDO3A1HsWmTWo4Jx/F cTWg== X-Forwarded-Encrypted: i=1; AJvYcCVgv5cOzCFf/r81EOl2Lo/Fa/CcNljtjU4UMpIaxtoQdsvzfqNZNYNTT+8LSwUCH7DyaNhn2G91sNVYDVyw8i7kqS7IsAgTY1BVUFxl X-Gm-Message-State: AOJu0YwtkyEElnhm7XHpnr5CiDxpsjpzwuyL+agMjG9/+ydy4Me8u/ip 4zKAxKwy6UzREm6CHgkEepZxoN1x0xP7c11LjpLXY0zassDn3MMK0B+vmaDOhV0= X-Received: by 2002:a50:9305:0:b0:56f:e75b:839a with SMTP id 4fb4d7f45d1cf-57851970dedmr5410157a12.1.1716792961009; Sun, 26 May 2024 23:56:01 -0700 (PDT) Received: from [192.168.1.20] ([178.197.206.169]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-579d5e3f995sm806996a12.64.2024.05.26.23.55.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 26 May 2024 23:56:00 -0700 (PDT) Message-ID: <824a9871-1fd4-4b92-a3b5-e57a126dac53@linaro.org> Date: Mon, 27 May 2024 08:55:58 +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 v3 4/6] dt-bindings: thermal: Add a property to select the aggregation type To: Alexandre Bailon , 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 References: <20240524143150.610949-1-abailon@baylibre.com> <20240524143150.610949-5-abailon@baylibre.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3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5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240524143150.610949-5-abailon@baylibre.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 24/05/2024 16:31, Alexandre Bailon wrote: > 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. Hm, why exactly this is a property of hardware? Why on one board you would like to average and on other use max? I can only think of a case that some sensors give inaccurate data. Otherwise it is OS policy. Best regards, Krzysztof