Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4435965pxb; Mon, 21 Feb 2022 21:33:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRUDWiODilVFqIsSblayhxjmkkoWFSxdRCnns13lmz9KbDAGDkVGZ/rLtwd9Wf0u+2bxA1 X-Received: by 2002:aa7:81c3:0:b0:4f2:6d3f:6158 with SMTP id c3-20020aa781c3000000b004f26d3f6158mr2944522pfn.82.1645507992575; Mon, 21 Feb 2022 21:33:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645507992; cv=none; d=google.com; s=arc-20160816; b=0hU+KyE8oBMm7VFP7R9vg5YoiiU0dpL8m4+3mWpHhrfhjK81Bab0HzE1w9UeoUU4QF hDBxkbE7VmiyE+f07XpeUUAwdQTWhtf2REn6aFJmLgmxI8Yf9bXvhC/+xJy4jx35XbC3 qg9PTg7F6iej6J+ouvDaBHC/n4noPiOcC2PNaw0yTZNi7BcjVKWeC0E7xZLF0rr6D+y4 8hVJyFa8IvVNqEV+x0l9/lzyI1xGAmK4yRPCVd4JRuN54e5F5NTAdAwynfc0cpzxRffb T7lLyhwKtGUigi3jonxX31OXVk2IkKVrxAsbOiMZvM76PyDXck8DmqdCjsUZOjF/1jJy hsgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=q1rax7G4k5CCLSu09IqEgCbCj8ZVR2NTHSH1BgrxHe0=; b=LVddOaWnL+giDX65VVnFEWOHHyiwsxfTHnZvuQEJvBCkUXsHVft4s1QYTQN053hmdc ebKhvryHWsKfxhsAvQICNaoR3qC3A7Kku/XkCPUmxLkacJ9isGcfOYHq4zlzqc9Sq5Yx ouplMxJA0GMHfCWacFs0l4nGK+Fh9cR4IWLt2Lnx9PjIpOYT6h1zheqn3AltEJad5INf JJIBnvDUEdmoXdS5NIlmkkC4Pok9fpd5j4sc9uX2Fn7YjG/J2GtVqQAM71HH1OMwrThT CIp1lrCFqJRzLMnf0KBShEWe/XwjYXT7rCtYDAP7Xv2pKua2Beyekrqpa320YdJXizze fnSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PsL08C81; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s18si10728887plk.375.2022.02.21.21.33.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 21:33:12 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PsL08C81; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9A6BC118611; Mon, 21 Feb 2022 21:01:14 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233293AbiBVDEH (ORCPT + 99 others); Mon, 21 Feb 2022 22:04:07 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:37452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233283AbiBVDEG (ORCPT ); Mon, 21 Feb 2022 22:04:06 -0500 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC4A525E87 for ; Mon, 21 Feb 2022 19:03:41 -0800 (PST) Received: by mail-pj1-x102d.google.com with SMTP id t4-20020a17090a3b4400b001bc40b548f9so1031586pjf.0 for ; Mon, 21 Feb 2022 19:03:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=q1rax7G4k5CCLSu09IqEgCbCj8ZVR2NTHSH1BgrxHe0=; b=PsL08C81Kelj7c9r8L29y7wGb0vEXUN5Yj445KMSVmi2wK6HbjzM/Tc27bBhLH3Puv aeEYS0SCq8aZgZC2Ii+ivfgo88TwtACOBCdKHiDRdhjKtDXwSS2bGfdZi9V/VCrv5QNF w3Tgdx1lOdq3kATph5xRTiwzd1Pw8aCsKJ+RYZ4ofn4Epzr8hk8IMlCtti6Bcc9Z6TmX ys4rVayLhwcPhJVrAaQzCo6LfcN+tzi2yS0J3SA7TQaUydbWo/IiYo6BuMLfvEBqOu2E pKSxWZSYJmn4iJmEUfBtEKzthDOgr1zjD21wHFoipzCE6lngjoRztn0keTGsr21Pn1Gw zYrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=q1rax7G4k5CCLSu09IqEgCbCj8ZVR2NTHSH1BgrxHe0=; b=cP3Chqqsx+hzj55Ax8W7UkElrtoIozm5lQ1iw/c55PfQIHEs4iIznJkj6Ot3wA+L39 cVwPMgHGec/TeNzPFV722AdAHA1Loa3oAH7CBloTAkCtYqmTIRc7Qcx5YRxG1OGtIM8R tTM1uc0MZPcTTyIB+iBPVBA0YqRzllXybVfPSXjpHlp1T+jC5A8MdUEB7AfatBx3qr4b r7pRbyjG/wSTi07CDdWWVOWdGI72B0TAW1lgFoaYAlYVHXGVMM/vQTaVc53LaRUhJEDN pSFxnqEyYMic0lZowqAoVc5EK/xTVj+JhDHKYOiL9VJTLSLP5sf9jFKPtzhj+x5GreR1 ckew== X-Gm-Message-State: AOAM533n+qM6WjZaOfoYGkM4B9YRB1vxufIV5XgmlpAV/imBjhC7aVES DNloO3jR+EPV5Em+6ugyinB/Lw== X-Received: by 2002:a17:90a:67cd:b0:1bc:4437:df27 with SMTP id g13-20020a17090a67cd00b001bc4437df27mr1940741pjm.112.1645499021302; Mon, 21 Feb 2022 19:03:41 -0800 (PST) Received: from localhost ([223.184.83.228]) by smtp.gmail.com with ESMTPSA id il4sm641203pjb.28.2022.02.21.19.03.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 19:03:40 -0800 (PST) Date: Tue, 22 Feb 2022 08:33:37 +0530 From: Viresh Kumar To: Lukasz Luba Cc: linux-kernel@vger.kernel.org, dietmar.eggemann@arm.com, rafael@kernel.org, daniel.lezcano@linaro.org, nm@ti.com, sboyd@kernel.org, mka@chromium.org, dianders@chromium.org, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [RFC][PATCH 1/2] dt-bindings: power: add Energy Model bindings Message-ID: <20220222030337.ijnfrh367illmidr@vireshk-i7> References: <20220221225131.15836-1-lukasz.luba@arm.com> <20220221225131.15836-2-lukasz.luba@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220221225131.15836-2-lukasz.luba@arm.com> User-Agent: NeoMutt/20180716-391-311a52 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21-02-22, 22:51, Lukasz Luba wrote: > Add DT bindings for the Energy Model information. > > Signed-off-by: Lukasz Luba > --- > .../bindings/power/energy-model.yaml | 51 +++++++++++++++++++ > 1 file changed, 51 insertions(+) > create mode 100644 Documentation/devicetree/bindings/power/energy-model.yaml > > diff --git a/Documentation/devicetree/bindings/power/energy-model.yaml b/Documentation/devicetree/bindings/power/energy-model.yaml > new file mode 100644 > index 000000000000..804a9b324925 > --- /dev/null > +++ b/Documentation/devicetree/bindings/power/energy-model.yaml > @@ -0,0 +1,51 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/power/energy-model.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Energy Model Bindings > + > +maintainers: > + - Lukasz Luba > + > +description: |+ > + Devices work at specific performance states (frequencies). The power which > + is used at a given performance state is an important information. A framework > + which maintains this information is Energy Model. This document defines > + bindings for these Energy Model performance states applicable across wide > + range of devices. For illustration purpose, this document uses GPU as a device. > + > + This binding only supports frequency-power pairs. > + > +select: true > + > +properties: > + operating-points: > + $ref: /schemas/types.yaml#/definitions/uint32-matrix > + items: > + items: > + - description: Frequency in kHz > + - description: Power in uW > + > + > +additionalProperties: true > +examples: > + { > + gpu_energy_model: energy-model { > + compatible = "energy-model"; > + energy-model-entries = < > + 200000 300000 > + 297000 500000 > + 400000 800000 > + 500000 1400000 > + 600000 2000000 > + 800000 2800000 > + >; > + }; > + }; > + > + &gpu { > + energy-model = <&gpu_energy_model>; > + }; What about getting this from the OPP table instead? There is no point adding similar tables for a device. -- viresh