Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1344446pxm; Thu, 24 Feb 2022 00:59:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxbCoMOkcs6LP0RiyKMZ179SKpqosDewUlYXUqOW1ykkH7DTXh+Ty6p9SxBJBxR6lS3tt6 X-Received: by 2002:a17:906:79c4:b0:6cf:5489:da57 with SMTP id m4-20020a17090679c400b006cf5489da57mr1459569ejo.48.1645693197323; Thu, 24 Feb 2022 00:59:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645693197; cv=none; d=google.com; s=arc-20160816; b=mGXMEngbEVoxmLcHQ5jtzxk3cRAWjwu6XFKmywCm+1eRwB02AWzqf67mNHoC2eVdvT t6yh3RHZ0bNmEwKpfyq26PFYCzVrAeLH3Et4SGImtJFS2BIcJ9uzJwx01BGm82JCsZ2e RtmC/kwX1lMjpmG/Z/Up/oh0lAdOCrKUJx05vm3NuY8BlKm1saR7Z0zkrPB4m/yHu3/F +m/TT0WMf0530GEvJMr6YKsfvtlNrFmpVchIcUOFped9M3BWPzyo1GD4cgB3CZU8sWup CozIOH5unpLfxQUSjO5H1hFaqJq2CmDBcCtCincPRhsXILv1nReyUYbxFtR8Tea3Ozu9 qDhA== 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=d9e5JRMDl5uSB+VwQdoCObJ51TXPv+EuSoAhYMoWgic=; b=CYBOoZb6g7LZSOdp6A+sh8kzHqpfaFVuIdonHKZ4AFMVmo0mPjUhgt5a1Mu50zLsIQ HQDpiidvAOfXYdZc3b+28+QBwhd4orNmRhihpUSBjbDrBs0uIxj6bS3G6JVIeM5BKzLG yJ3ZQCjjKxfAI8xVcijh1wsDLBtIDFoWyvtYfbQw2vCtmVqZA6ldqyFRjRQEcdgA7moF bUdnrrNUeR6Hgw8tlHVFxVUOjNRckN7Lzq03C+6oBgWRZud0XuxbqkAXxPvVhZtxhHkx XQ1hrYWuuJb5FtvTP0uKS0FSFehaYGMiSMFsdmIOVIxmgvirX16j316J6tI5uEKoUNKi uthw== 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 w25si1125768edt.600.2022.02.24.00.59.34; Thu, 24 Feb 2022 00:59:57 -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 S230471AbiBXINn (ORCPT + 99 others); Thu, 24 Feb 2022 03:13:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231779AbiBXIM2 (ORCPT ); Thu, 24 Feb 2022 03:12:28 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 804731662D9; Thu, 24 Feb 2022 00:11:50 -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 4B5D21063; Thu, 24 Feb 2022 00:11:50 -0800 (PST) Received: from e123648.arm.com (unknown [10.57.8.211]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 185F23F70D; Thu, 24 Feb 2022 00:11:47 -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 v3 4/4] Documentation: EM: Describe new registration method using DT Date: Thu, 24 Feb 2022 08:11:31 +0000 Message-Id: <20220224081131.27282-5-lukasz.luba@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220224081131.27282-1-lukasz.luba@arm.com> References: <20220224081131.27282-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 'advanced' 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..719253fd5215 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 'advanced' EM using DT +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The 'advanced' 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