Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3631950pxm; Tue, 1 Mar 2022 02:12:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1IuokyX+DeG8YUh73Cjtu9mpS6jZAmQIGZiX/cJifAXgDR4JyRPABown6C6D0VXlbEHIm X-Received: by 2002:a05:6a00:1646:b0:4f4:58f:b64 with SMTP id m6-20020a056a00164600b004f4058f0b64mr10876600pfc.47.1646129525282; Tue, 01 Mar 2022 02:12:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646129525; cv=none; d=google.com; s=arc-20160816; b=wFz5RejHjP8tDKmmR0nRrwanXJpsXBh4ijooMqahO1CJnV0gXaUygkVRHwtXx0RZ80 dsH/04zA6aeycAyykeZ4rNw6honlyCNJnQsQCwuNTDClPHb8K1Dk6tkCwOz9nKuzmNBR CWYw5TmqDmVzoMkOk8ZyPPTfCdIYlXUOhEbJXBeynTFXd7tORTH4ZDnG1NG3iTmMzY5r ucXyIscKPZFIvVuwXkwLdovtP/X1R+RdV7ufQG+2Y330pxCaCd0b041JBNzGb9vzd3Tu vF39CVsMkstBq27nnv82AAzjk2WDY38nCoVa2l25BC8NSiocV6P+02Pfry+ngqh59Sqg QkHw== 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=ma9roFPBef72fq/oBUDqSTHNnszPU1Fgldj44JWR6TE=; b=GTRjDJs73tUifR7HNxNNtX1sJxZ/rPBtyHx6Inb+zFTOYL73r9RZt/t+dpU5mSfGER /cl3teAJgFf/3irHY45ifKcuGHeOro3sfdtmeuRGpaaxKSme7rfcyLD+SJufkXM4wMEO +FxuQOal+Eh6yaEQncJ7ZCj6thU3yu2xfcH8P12+2lGdyKJPVTaaESBmu9ZJEVWIAJBc H/N8EKVsWAa//1lV4FtbDL6a2dNOb5pBN9IeWfxsuECDqPKES+hDZmmyhdcpJ0n6gDHc 2Z7a6CATYa9zP0baBALEI+1xLp5+2QcU5l6FZhi8d5Ptj4IuNJDvCONWPN4TpzYRyOGC z9gg== 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 rj14-20020a17090b3e8e00b001bd3a9b7c1fsi2020772pjb.86.2022.03.01.02.11.46; Tue, 01 Mar 2022 02:12:05 -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 S233425AbiCAJgv (ORCPT + 99 others); Tue, 1 Mar 2022 04:36:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229720AbiCAJgt (ORCPT ); Tue, 1 Mar 2022 04:36:49 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D805ABC1B; Tue, 1 Mar 2022 01:36:08 -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 A6118106F; Tue, 1 Mar 2022 01:36:08 -0800 (PST) Received: from e123648.arm.com (unknown [10.57.20.71]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 53ADF3F73D; Tue, 1 Mar 2022 01:36:06 -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 1/4] dt-bindings: opp: Add "opp-microwatt" entry in the OPP Date: Tue, 1 Mar 2022 09:35:21 +0000 Message-Id: <20220301093524.8870-2-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 Add new entry for the OPP which provides information about power expressed in micro-Watts. It is useful for the Energy Model framework. Signed-off-by: Lukasz Luba --- .../devicetree/bindings/opp/opp-v2-base.yaml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Documentation/devicetree/bindings/opp/opp-v2-base.yaml b/Documentation/devicetree/bindings/opp/opp-v2-base.yaml index 15a76bcd6d42..04a592c0f862 100644 --- a/Documentation/devicetree/bindings/opp/opp-v2-base.yaml +++ b/Documentation/devicetree/bindings/opp/opp-v2-base.yaml @@ -93,6 +93,21 @@ patternProperties: minItems: 1 maxItems: 8 # Should be enough regulators + opp-microwatt: + description: | + The power for the OPP in micro-Watts. + + Entries for multiple regulators shall be provided in the same field + separated by angular brackets <>. If current values aren't required + for a regulator, then it shall be filled with 0. If power values + aren't required for any of the regulators, then this field is not + required. The OPP binding doesn't provide any provisions to relate the + values to their power supplies or the order in which the supplies need + to be configured and that is left for the implementation specific + binding. + minItems: 1 + maxItems: 8 # Should be enough regulators + opp-level: description: A value representing the performance level of the device. @@ -203,6 +218,14 @@ patternProperties: minItems: 1 maxItems: 8 # Should be enough regulators + '^opp-microwatt': + description: + Named opp-microwatt property. Similar to opp-microamp property, + but for microwatt instead. + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 8 # Should be enough regulators + dependencies: opp-avg-kBps: [ opp-peak-kBps ] -- 2.17.1