Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4418033pxb; Mon, 21 Feb 2022 20:59:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJziwxc+WGc1o44PEcOlAvYhdqlpWbXqZ0NAux44zkIQAXwywNoIiCPz7DMCgvZ/m7TcU6tY X-Received: by 2002:a17:90a:600a:b0:1b9:dd79:ea77 with SMTP id y10-20020a17090a600a00b001b9dd79ea77mr2363355pji.44.1645505994193; Mon, 21 Feb 2022 20:59:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645505994; cv=none; d=google.com; s=arc-20160816; b=wiCV+DOb5qzpbEss6VWgPS+74fVHCNpmPlwh4VYhglELbMOVSLDeLZixGYC8raaIZW q8ebpMpXcpXielpRHKij4zR7AJeZ8zo17bMDd6KRHt0EBllaqpJ+eLJhpMu7Gm90g41+ 1SpHpqTA4YsHX6xth0cekufmH0JyjhztP7sdRLJG7hI4A3dt5Yel7hwxFG21jjUByu2u wujfDDm+QqIj+H790TbBdVJaYwfluDueCAOtxvBbscGHAXar5G7tbc5OqU1ydMwHowDa SM5V7ojjlqpMXtaz9CE3sJtC4ZiNLFtPLcWuiX3+iG7RTnReLkP54OSSC3uLOHZSNnQD IBbQ== 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=toEZkftINTm7v+RCG/InFvoyKskS2dHpH52AsaDx8zc=; b=Vh4iTAzc8lruoHhal7jRbqdtnbgTlFGYusUajvXu56Kbbx/TU/5yhCQ+72AmcREAPD pTdMKWrEx9Be85wjZef8dKX12aYRK4z+GcRnfxr8LuqAneO8zV5Bn0BzBq+6VodjMpv8 fCDGrJ3vghAJR6k24nEUxrDb0QT8QpRGBNWS8E6gAPUevA5lydLFdLQXS3f5gxzmmf94 OWwqvEJ/jnWL39U0GPcxNfcYQKpYLuhS4ucfCoHHBrS3EDGSAcN8i6ujBCvgJuImXTCN btor7NgpXhhhrnIAMzquh9+XkaoOotqqKTmkyHrvDBkZXCr7hleO8iVlZhpgRdXsBNeH MRSw== 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:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id m26si14974326pgd.252.2022.02.21.20.59.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 20:59:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A043B25ED; Mon, 21 Feb 2022 20:36:45 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235795AbiBUWwH (ORCPT + 99 others); Mon, 21 Feb 2022 17:52:07 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:52596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231338AbiBUWwG (ORCPT ); Mon, 21 Feb 2022 17:52:06 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 31D972458C; Mon, 21 Feb 2022 14:51:42 -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 A1BC5106F; Mon, 21 Feb 2022 14:51:41 -0800 (PST) Received: from e123648.arm.com (unknown [10.57.9.194]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 62B133F66F; Mon, 21 Feb 2022 14:51:39 -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: [RFC][PATCH 0/2] Introduce 'advanced' Energy Model in DT Date: Mon, 21 Feb 2022 22:51:29 +0000 Message-Id: <20220221225131.15836-1-lukasz.luba@arm.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, 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 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 "energy-model" DT entry. The propsed DT bindings heavily draw on "operating-points" (v1) schema. Comments, suggestions are very welcome. Regards, Lukasz Luba [1] https://lore.kernel.org/linux-pm/20220207073036.14901-2-lukasz.luba@arm.com/ Lukasz Luba (2): dt-bindings: power: add Energy Model bindings opp: Add support for 'advanced' Energy Model in DT .../bindings/power/energy-model.yaml | 51 ++++++++++ drivers/opp/of.c | 95 ++++++++++++++++++- 2 files changed, 145 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/power/energy-model.yaml -- 2.17.1