Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3650793pxm; Tue, 1 Mar 2022 02:41:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJxU1mG6joKE6Whl2jje1VL2p9AmqX84ysCcJCnmx3v76xMB7G4VKw6bX/1dhj8kRBJtlGoe X-Received: by 2002:a17:90a:e606:b0:1bc:4c56:b31 with SMTP id j6-20020a17090ae60600b001bc4c560b31mr20861947pjy.49.1646131260372; Tue, 01 Mar 2022 02:41:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646131260; cv=none; d=google.com; s=arc-20160816; b=aSIw6iWGs+jtR/SW/ChBMoeX73wCu3zxrNxM6ZfSktsB6vkReXSDjM+/qP4MUT4dxA e4z008Rf5FJnvfqlYKZ8HhEMyAPJoD8tX+7+LZQO8CzHJnVLxPZPDfj/LupsqTm29sfT oAdndqi9iBMq3BMo/lsklOW/JokkMNEs/W2ioOxWgWE8L72JRt6bEwMEia/gvORLL2iy +KiJjaNjRAmb8E36aqB1ZwwlHC5a7BZyRl821ejqPDxB6I5k4hpyqci6b9JlGMCojHbR 1jHX0/y2AmIYkiF0SAmjPoKpA9uw71eCagiIRWDzKeazaKZyPzPXRR4h3jqM1Azdt5WI 5gNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=Zt+cEO1/NLH4S5gppCtmhxfIFRnCjzeLHf10TfMkBG4=; b=dqtVD+72foE7hcAPjuF4JWA7HjHNTcb+HsjobbXlNCvFCNdtWuSHKOOsxtsAsJVTay 04WQnGwPJxLTvMzHziJ1G3S7oDJY39JFnCc9QZlW97sOpiS/vxWeQOUosg01WpRYZxni u/r5ABIIYNup0ZsNY1IbEPyHHoec6lIiJhEWuRxpK2Jswd02a2vYEZ/nKGTv9oXp6lqP ucDW+wFMHYdmbd4J9A/MrDLdehaQOfntxgl3S540fsgCD46nulFiSlK5b1jWFdp54frf xhYoo3Jd71l2UTwDSouC6jb9Fy8SXtXT1/s+4xmetOxquOhbJj8PJZcwkSv3xjC6oYhH G3RQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v4-20020a170902b7c400b0014f3c155676si11797536plz.545.2022.03.01.02.40.45; Tue, 01 Mar 2022 02:41:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233923AbiCAJhF (ORCPT + 99 others); Tue, 1 Mar 2022 04:37:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233878AbiCAJg5 (ORCPT ); Tue, 1 Mar 2022 04:36:57 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C13C18BE18; Tue, 1 Mar 2022 01:36:16 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7A709ED1; Tue, 1 Mar 2022 01:36:16 -0800 (PST) Received: from e123648.arm.com (unknown [10.57.20.71]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 1F08F3F73D; Tue, 1 Mar 2022 01:36:13 -0800 (PST) From: Lukasz Luba To: linux-kernel@vger.kernel.org Cc: lukasz.luba@arm.com, dietmar.eggemann@arm.com, viresh.kumar@linaro.org, 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: [PATCH v4 4/4] Documentation: EM: Describe new registration method using DT Date: Tue, 1 Mar 2022 09:35:24 +0000 Message-Id: <20220301093524.8870-5-lukasz.luba@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220301093524.8870-1-lukasz.luba@arm.com> References: <20220301093524.8870-1-lukasz.luba@arm.com> X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 The new registration method allows to get power values from the DT OPP definition. The new OPP entry property "opp-microwatt" contains total power expressed in micro-Watts. Align the EM documentation with this new possible registration method of EM. Signed-off-by: Lukasz Luba --- Documentation/power/energy-model.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/power/energy-model.rst b/Documentation/power/energy-model.rst index 5ac62a7b4b7c..49549aab41b4 100644 --- a/Documentation/power/energy-model.rst +++ b/Documentation/power/energy-model.rst @@ -113,6 +113,16 @@ to: return warning/error, stop working or panic. See Section 3. for an example of driver implementing this callback, or Section 2.4 for further documentation on this API +Registration of EM using DT +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The EM can also be registered using OPP framework and information in DT +"operating-points-v2". Each OPP entry in DT can be extended with a property +"opp-microwatt" containing micro-Watts power value. This OPP DT property +allows a platform to register EM power values which are reflecting total power +(static + dynamic). These power values might be coming directly from +experiments and measurements. + Registration of 'simple' EM ~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- 2.17.1