Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1330042rwi; Thu, 3 Nov 2022 04:09:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7GbBPE7Ols1qTlPj/Yg+5sxnwCuXM8kfYv0qtapNb2eMSXX9UQu6UKuKrtCmuA9bYKKWJI X-Received: by 2002:a17:90b:e0e:b0:213:2a98:6486 with SMTP id ge14-20020a17090b0e0e00b002132a986486mr30033230pjb.96.1667473783347; Thu, 03 Nov 2022 04:09:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667473783; cv=none; d=google.com; s=arc-20160816; b=z9JHlWxb8NSp6Oo//VWtpO1QiCQnWaSZyUCIhZozKUFDjDB+3qDmDQo0ITImwQ+cgO ZTUA4modRqb34Xs8dlk1RMMHnuVKETBBhYrsSXQm8RDil8eFd7D8GaIzxaGVypBjLW4M jqVFsI2n8A9tQYqFV8MjrvTx5xbKyORssGHmB4IIG3PRTvQQ1SjrJ2kT0xREeI4XaztA bfNz4jCET4QMrbXSDl9ZBvNLVtcqXTjra5QmCWn/qR/odLfz+hhderAxwhvm59hIsWmW FQ585bu//TbuYeeuReStWp/gdCj3ec0qQ9rNiI2gxI+dYnFXLw2Gxl+/NjojZ8/K3Osv 0sLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Ay8rIDfAS1vKzFBT8OPzZHG4KC+WK17k+CTXHHbF524=; b=YnMyjjDNweqolRvE5G6xMnuA5mpROc4f+EIpUVkM4z4AB8nXmXyLD09aomzx5nHjLP XsZpXd/JbethaGaczaoaky1RVeTUoEf8a2mWvD3/1Z6xA5Zs3vYhAbhoj1prjcXQvZPj wqLKCPUy/s9/21ZprYEU3/K3XG0EoOYUvYWBJevKVoMMHazjB7qbgg3BKvsMhMRfAlhj /9pPyz2hn6hIb58f92N4GJ1VrWwV4URnGNwrA+KmrXZbtaF0hDkDXNHUzkxYj/etfVl/ bwpDZqlagv5K+hOi9HknNrBuXLsvIXCbfo8MwlqbdnsEeunXMzYeO6gyOJJK1SSOjehF kHpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F7u8vLHf; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s13-20020a170902ea0d00b00186ba521dc5si421120plg.468.2022.11.03.04.09.29; Thu, 03 Nov 2022 04:09:43 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=F7u8vLHf; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230193AbiKCLBU (ORCPT + 97 others); Thu, 3 Nov 2022 07:01:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229935AbiKCLBR (ORCPT ); Thu, 3 Nov 2022 07:01:17 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB657B7DB for ; Thu, 3 Nov 2022 04:01:16 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id u6so1536441plq.12 for ; Thu, 03 Nov 2022 04:01:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Ay8rIDfAS1vKzFBT8OPzZHG4KC+WK17k+CTXHHbF524=; b=F7u8vLHf3k4t6Ojxj0wPVNF0odVtSYGzJ7dal3LBHzOzk0NP6WfWAoqERZUf/n/lyy ro+jSMxTAhkSGSq25iMQbPtlIPrwh3oCl6vTw9Lg95AeMQvH22HLht+fOW1U8GPlC6Si 6BNw7+oJJAFgCrFvGdwQ5mhW2G0tEk/+96qJngXj7L5JFjdWGtTwbQ2kHEBXWE1Qsh43 sO4FCbk8xnS/2ho9xjGjd7nk/hUpeKtlB2tiHqCLWBtebcRor8a9dvrffix9a1Pzj8fL iaheCXDz7uZaNZF2o2ZdXErpkQCGNE1EsdiBp+vwpskuCQbp0UaqlNvsOif7TSOs0X6J cmSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ay8rIDfAS1vKzFBT8OPzZHG4KC+WK17k+CTXHHbF524=; b=ktU96WY46GQUhe1EFHGd/KvE7ge2C7L6AvWcoTfFhDKyMoeAbtRi6URdYhauiNiO2b znaNdO4vo3tiuYwgD8zOajR6UPS2U/GDdTwAEb2FtTQEZw2lN2yovmuSXV+zKwXazDgw Eb1g5/e7Ap+T9MFwFSAvYdlZh1e46S56ccuuEJx1mt8pKK1OW1fjGa4lNUUChS1akNrb 6zoSYpLRMWPNvYL555E/lk4auwD+jiSwycCgat2faGXRXx+JEIr7kZVxpCZUH0G6Bade 31L3sPVDKoDQoLTwG1Ww+qJPQFg1+2hkvhNHjTg0Qhn6YsWmTSCdY9SDkrOOmIF2ILhx 5MCw== X-Gm-Message-State: ACrzQf23nropSqRGU+bQBeSHsxzMSTzh5Gyyr95AT5zHwVy5x9WGj/dd Hums6r61PwwO6bgWZ+G+sjJCug== X-Received: by 2002:a17:903:cd:b0:186:878e:3b08 with SMTP id x13-20020a17090300cd00b00186878e3b08mr29228986plc.93.1667473276274; Thu, 03 Nov 2022 04:01:16 -0700 (PDT) Received: from localhost ([122.172.84.80]) by smtp.gmail.com with ESMTPSA id x15-20020a170902ec8f00b001868bf6a7b8sm363976plg.146.2022.11.03.04.01.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Nov 2022 04:01:15 -0700 (PDT) From: Viresh Kumar To: James Calligeros , Nishanth Menon , Stephen Boyd , Viresh Kumar Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , "Rafael J. Wysocki" , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/5] OPP: Allow power/current values without voltage Date: Thu, 3 Nov 2022 16:31:03 +0530 Message-Id: X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Hello, Some platforms, such as Apple Silicon, do not describe their device's voltage regulators in the DT as they cannot be controlled by the kernel and/or rely on opaque firmware algorithms to control their voltage and current characteristics at runtime. They can, however, experimentally determine the power consumption of a given device at a given OPP, taking advantage of opp-microwatt to provide EAS on such devices as was initially intended. But the OPP core currently doesn't parse the opp-microwatt property if opp-microvolt isn't present. This patch series targets to change this approach. This first fixes few mistakes in the DT bindings, followed by code reorganization. And the last commit, from James, fixes the problem at hand. I have tested all combinations on my Hikey board, hope it doesn't break anything. James Calligeros (1): OPP: decouple dt properties in opp_parse_supplies() Viresh Kumar (4): dt-bindings: opp: Fix usage of current in microwatt property dt-bindings: opp: Fix named microwatt property OPP: Parse named opp-microwatt property too OPP: Simplify opp_parse_supplies() by restructuring it .../devicetree/bindings/opp/opp-v2-base.yaml | 6 +- drivers/opp/of.c | 228 ++++++++---------- 2 files changed, 102 insertions(+), 132 deletions(-) -- 2.31.1.272.g89b43f80a514