From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03EB8C4332F for ; Thu, 3 Nov 2022 11:01:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231299AbiKCLBV (ORCPT ); Thu, 3 Nov 2022 07:01:21 -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-Google-Smtp-Source: AMsMyM6YB+L8bLYmn+hlc1I5brGQsvzfYouZ8a2S+xu0StVwOU25oSYcJOX2kxEwJeAgcOxQ9BS6WA== 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 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