Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp61632pxm; Tue, 22 Feb 2022 06:24:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdPavBxKCE6bNdPt4VsTukgCEvyMMZyWS5IErb4Lmc4GdpYJfcjx1J0aHEpAs1aLdyeDe2 X-Received: by 2002:a05:6402:50d4:b0:413:2a27:6b56 with SMTP id h20-20020a05640250d400b004132a276b56mr2262237edb.228.1645539848482; Tue, 22 Feb 2022 06:24:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645539848; cv=none; d=google.com; s=arc-20160816; b=t9dJje387pWdY7kS9tocTAh0x1kxD1K2wYmmwY1nbGZfZ7OZBskJ9dcgHkJ35ZUhSn 0NNz7rdLWF2bxIisqVKOd6/CGe/u6PlSMiDg7CuokFZ3J8GOO8mF0LeNFYMru2NPHYCf bhUgLYB5rORzSZa7ShL/GwXtK9Z1yxDACIUN9XhCPBjkzj81FSty+uPNaT1+EHMwsHDy aODAdleu6xmP9G3dV7hKnee4cNXWtXjGtbkd/SCUeoiahr8q/KiAGfEKd39jPC2Ke1Ej uut8E8l2E0lKqJgZe3iPeZMPqyMqiupzk1a1IqxIJlal4Lv3IMKefHxcUJXDrFGDMXhB FCfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=2thqOVzqMIrA6pVx1sULu6Wq7GhmXhxz0KT6pCjwyEo=; b=klaOs4+0+GklPXghx2dssqpXpe58CbVSlVV5n0ZdXSUwV0eRFAaXeOlhgcFE2NMB5o +xqXpbGKpTRkbNNcFxGwjoFLHg9v2qfIuhEJRekDVYXqssbNAwB55SQCAGGRMqmlJe41 z0YVFjRWW5q63xcKDr1xalLLT707U5EGuSCi5rMkRlAUxPulfgjAjd9jvn4B+j/ExL/M c23ao2/5Sy0gdfoPtayF+7nnyaZw2IPuetd94pQvVTgfqA+6Y3e6T+uWoouYShn8t/45 zqJSqaD0MrfTtAF2iFk1edD0lgAMCyHDBuSv1ubPF9MAWlXrRRSqxqZguCeI4X3XT7GQ FO0w== 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 c10si10812377edm.418.2022.02.22.06.23.45; Tue, 22 Feb 2022 06:24:08 -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 S232686AbiBVOJT (ORCPT + 99 others); Tue, 22 Feb 2022 09:09:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230163AbiBVOJR (ORCPT ); Tue, 22 Feb 2022 09:09:17 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AB59614ACAB; Tue, 22 Feb 2022 06:08:51 -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 7550E106F; Tue, 22 Feb 2022 06:08:51 -0800 (PST) Received: from e123648.arm.com (unknown [10.57.9.152]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 35D693F5A1; Tue, 22 Feb 2022 06:08:49 -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 v2 0/2] Introduce 'advanced' Energy Model in DT Date: Tue, 22 Feb 2022 14:07:44 +0000 Message-Id: <20220222140746.12293-1-lukasz.luba@arm.com> X-Mailer: git-send-email 2.17.1 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 Hi all, This patch set solves a few issues: 1. It allows to register EM from DT, when the voltage information is not available. (Some background of the issues present on Chromebook devices can be checked at [1].) 2. It allows to register 'advanced' EM from the DT, which is more accurate and reflects total power (dynamic + static). Implementation details: It adds a new callback in OPP framework to parse the OPP node entry and read the "opp-microwatt". It's going to only work with OPP-v2, but it's agreed to be OK. Comments, suggestions are very welcome. changelog: v2: - implemented Viresh idea to add "opp-microwatt" into the OPP node entry in DT v1 [2] Regards, Lukasz Luba [1] https://lore.kernel.org/linux-pm/20220207073036.14901-2-lukasz.luba@arm.com/ [2] https://lore.kernel.org/linux-pm/20220221225131.15836-1-lukasz.luba@arm.com/ Lukasz Luba (2): dt-bindings: opp: Add 'opp-microwatt' entry in the OPP OPP: Add 'opp-microwatt' parsing for advanced EM registration .../devicetree/bindings/opp/opp-v2-base.yaml | 7 ++ drivers/opp/of.c | 70 +++++++++++++++++++ 2 files changed, 77 insertions(+) -- 2.17.1