Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp104388lqb; Tue, 28 May 2024 10:00:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWGAZD0o1cAyW23bHqWnD3MzboY8GeQAUM405AhMTnFPsH7oQdSeQ6QHuK04bKAqiQvfIUV6iS1e9tOQAT33/J2R6e2GhgKio1eUdNtVQ== X-Google-Smtp-Source: AGHT+IEIl0zocoEUUQcdS6ln3wS3nb2NnQqzZXquTB/BVO7da+M57gfk1JdGca9VDnXKy5NiFVyT X-Received: by 2002:a25:8491:0:b0:df4:71cc:d22e with SMTP id 3f1490d57ef6-df7723a5d55mr11372675276.64.1716915611637; Tue, 28 May 2024 10:00:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716915611; cv=pass; d=google.com; s=arc-20160816; b=E9IhNPvn/2k1wx+2PqeeafgJx8jAAZkSlywwG5Dc6qm2KlFIZEmE9/NIzdP91H0uLk hrPLhldk1PeZwYSgvy+iS/yjwsmCTGwW2MzXH9JAuqU9miMR3e6CSnezKowFycbpI9Pt tRncKq84DqAdqCukI2r3+k95kEefK12VNlg5aDsyMUbyP+RvO/6omAz+QDzEkAa0xIkS 3fHLgQ9ytXaisnqHknsU3jTmlGt0e/0Dc/ORjaSaSvpu4wpG9JgVvb9Kw7BoQALptLes DEU5NgCdVkIScp+udwqevcEBzTYPEBWz4EYOPusum6du91bQrzfHlxiC6ct3lKRy5h+n U6aA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=D6FN9U0WcxnTevzC9VioNHboBLhpr+AkOCRqfLGT97o=; fh=uzxGFtKQXwRFTak4yfJklt3PYskDc697tiiSfUjjvOo=; b=hGyhhsuzK91Gk18ggazm0mFU5I6vu5Sd9uINUE5pbWFK2sc5VvKDt9iQh5K4KFIseh 4TCVa4h0s/hjRzZTD5lpFTTA8AGUhbr4TehSVXuDcJNqyjlrnJucf6A9DHcVwgsg/a5i u86CI/9s+lHzosf9StXpMFuyIrVegDJuiUmgFYZvyqiggrI7lhvYX0gWSGlw83HIXNMR XBvKCDjSTsW+V+pw5SuvYoUrxTanSzvourPgKJA5GcHZeL+Toe/k+EJWlj95w4nGLsa/ nVKPzexo6kG500YWy0EdF30mRDhhVi2KcAvdtLZpOTafTB/DD53zZyneyX7ZRqqe3iFY tj6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E75jmGRU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192789-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192789-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794c89c4d20si407968085a.292.2024.05.28.10.00.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 10:00:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192789-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E75jmGRU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192789-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192789-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D2E5C1C223D4 for ; Tue, 28 May 2024 17:00:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B32E32C60; Tue, 28 May 2024 17:00:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="E75jmGRU" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A98AA17332A; Tue, 28 May 2024 17:00:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716915601; cv=none; b=m3eeAQ06rn4NiHgKYjrDZldlxieCCfSVMyQpvnrpLm3QW8X8/xkytSJpKRvgRBUEAEnSPdUpCxloqMkIWtWcGqj4k4z4+T3of1CmfI2PRy1ZhTSLax0Cu/S45+E18Aox553+WX/H7vhvrJG0zcWte4LP5VOpHh2+zFeEqw3pADo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716915601; c=relaxed/simple; bh=cl5YyYDBd5xfT01EGmw60ns+GsJMKd9t1oo64zhr9Xs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hZWaWgas+UNMT36yXkyLX59uC3tGb+YeHLY6C8MAm9vDGLbmGULdEXp+f4qQj9DAuXMVfxLypFJASO3NzBByXwjTefNhvPynF5EU2KSSSoa3PLibkUgi1O+nnNesxsm7w+8okGguXVOh0T33zT2E7V4s2OfpxD1czf16nzpvRxE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=E75jmGRU; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17D2EC3277B; Tue, 28 May 2024 17:00:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716915601; bh=cl5YyYDBd5xfT01EGmw60ns+GsJMKd9t1oo64zhr9Xs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=E75jmGRUjy1cXvhLZt6hKwcV9juKJTgLIB7e6c4wWG4E1M+/E2w7jmzGSGw80kAst 0mAVFXDu95Q5OnXVDyUs2I8vwj3f9A80MufHZQrfr8dUpRYEzGl95cfbu6W9Wf8TFb Lx3AECbVB7Jc/nlIFWFYEFCBJmMVTqXe8d/wFuFbbVqRPGx3tGWJvcJzdfPGYW7FEg VFTnpygSkBBYpHUuzpIhIiwBQirPb0EeoEBCRYkH6S7DWSjr7WFfMGYLCmS6g/J/8C 7PFwFROXItNXGJEo7XW52HWvPWIR6ROhJnUbyCg3arbP5nz5kxTJsetOkH+6b6wHDn sTftttWP65ZHQ== Date: Tue, 28 May 2024 12:00:00 -0500 From: Rob Herring To: Alexandre Bailon Cc: rafael@kernel.org, daniel.lezcano@linaro.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, rui.zhang@intel.com, lukasz.luba@arm.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 4/6] dt-bindings: thermal: Add a property to select the aggregation type Message-ID: <20240528170000.GA903992-robh@kernel.org> References: <20240524143150.610949-1-abailon@baylibre.com> <20240524143150.610949-5-abailon@baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240524143150.610949-5-abailon@baylibre.com> On Fri, May 24, 2024 at 04:31:48PM +0200, 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. This is optional, so what's the default? I suppose you could make it required if more than 1 sensor. A boolean could work here as well unless you think there might be a 3rd algorithm. > + > sustainable-power: > $ref: /schemas/types.yaml#/definitions/uint32 > description: > -- > 2.44.1 >