From patchwork Tue Oct 31 12:47:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 117606 Delivered-To: patch@linaro.org Received: by 10.80.245.45 with SMTP id t42csp3913309edm; Tue, 31 Oct 2017 05:47:50 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RyHM6e9wNdc28xZqROJ0sPpSm8M6Wu3agm0e7qDGatfIL9HiLkBinlZCc+wZAkQXEVlais X-Received: by 10.99.53.14 with SMTP id c14mr1734859pga.440.1509454070067; Tue, 31 Oct 2017 05:47:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509454070; cv=none; d=google.com; s=arc-20160816; b=xP6q3E6/XPmp176ZzVSD6q2pWmoqHo/0sfoBuxOot4Y3FNxhM+8U/J6y7FmpWUji0L oTX9JB03aL1B2KjJaCq3A1c2DIBVUYNInI0PQqfC7yOYjBLOnf2BWv5z1DioDubY80Fa VlYOPPxCpobBD4Hz7Ty/0mR1QTHdBxWKx7MaBlH0/mH/g/qtQzXKUK2J57pYfVqJByWa DLHSfYpVQHBquTdZ/9TFCfYE1t/XSND+WjJOu1sLmRdxrg9D16bZunW1FE39MvWtZcGS elq+6e53TxaWFzoBGo4Qqtf/YDCxO+CubnrT0EuQRQIsAW0vCdDwY79vgE7PMuSHw0rp zN0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=tMNEhpTkWBQOPJkecSmaesDFUDtNo01LrA8RO96lMpc=; b=iP0o5XFMZLpHltGdrQQXOPTydR7Mg1nNhWuRNWECNOOdkgIXEGTn8e6DH4kW6v+DT8 8QFGprqbQMYVxRYCcBG0VDLdoB2Dz2ZAT1+M30tj43OpX4KZemk3ZXpiGo0Futv6pB+O 6MJbgCvcvtTr5iQqeX9py6DywyO649Q93PUUF7WUTyn+q6gndWea+peqUOdZmDlzUAGP CC9OPHV0ADYpOSTIQrgJx6QetwywNdzB3qRqf2oU+LNUIoDUXu3uInpVkYF1Q7rNQ/D/ 1xuJk5lCq0pr2p8ZpdE5DK96zhmr1JDXYoD59FO4kJILpCHzAyFcdLWZg3YlVU1WSQaS 9s3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=OFchyIbR; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u8si1499607pgo.594.2017.10.31.05.47.49; Tue, 31 Oct 2017 05:47:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=OFchyIbR; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752978AbdJaMrr (ORCPT + 6 others); Tue, 31 Oct 2017 08:47:47 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:53378 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752987AbdJaMrZ (ORCPT ); Tue, 31 Oct 2017 08:47:25 -0400 Received: by mail-pg0-f66.google.com with SMTP id s2so14552030pge.10 for ; Tue, 31 Oct 2017 05:47:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=PrXKirv6750mmvXd3T51FvcLFfYTvYbHcyUK6wKkRjM=; b=OFchyIbRXiZDlHWX1UwLiWzRJ5S3jnJIPqG7dmOpTjehgE2km/gsD3Dyf88u1lWaRg OZ7lAdUW85X2PnPC9H3E3hd6o/WaqOFiSnRUxQEhXebZw8T5tP1OqNhsVbmFTVBzax2W YHbzULmag6U9DySLLr3PVwPsCLqKAnKrBk9LM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=PrXKirv6750mmvXd3T51FvcLFfYTvYbHcyUK6wKkRjM=; b=iwRJgBcl99HkF0qhjU4hnH59ptnIwu/XvblGXa6w74E8hENUTL4X2LSaiYmkqrdcUk KBPWwYsJqLSTIDP/fQT7MsGmVbLq11p8Cl2LIvG8YG3wUj2ofvx+gBPA/zCD0UHcS1aM X8U3e12Bo/nZBZBPz5iyMPD+7CTmnb9beL2u95EopO4i+D3U5/kUuGKqPlzk/YQik2Xn vN5Qs5X7ojvBi4wIwD/AbBJhY9Ub7jYBTLp+qjMilLm+dsLzGvJlAYZ5SSbcMxIpdM0v tpiW1jLrEfSFxvI/kWrbtqpXQoZWr6D+aEz8M9Oz09nI8DQoYlufvWMaykV3PC67NyHa lAwA== X-Gm-Message-State: AMCzsaUVKLQx2Zw0HAYZYaxn4+qJIUIFOtq7hnk2nGPZzGFlKYAptgLg mPWskV6MuUgXLNHOmHUl8iyYmw== X-Received: by 10.98.190.7 with SMTP id l7mr1934042pff.309.1509454044668; Tue, 31 Oct 2017 05:47:24 -0700 (PDT) Received: from localhost ([122.167.161.211]) by smtp.gmail.com with ESMTPSA id r18sm3350305pge.87.2017.10.31.05.47.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Oct 2017 05:47:23 -0700 (PDT) From: Viresh Kumar To: ulf.hansson@linaro.org, Kevin Hilman , Viresh Kumar , Nishanth Menon , Stephen Boyd Cc: Viresh Kumar , Rafael Wysocki , linux-pm@vger.kernel.org, Vincent Guittot , robh+dt@kernel.org, rnayak@codeaurora.org, sudeep.holla@arm.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC V7 2/2] OPP: Allow "opp-hz" and "opp-microvolt" to contain magic values Date: Tue, 31 Oct 2017 18:17:03 +0530 Message-Id: <23ba51eaa6b52117458165dccc00a95cf8e86e1d.1509453284.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.15.0.rc1.236.g92ea95045093 In-Reply-To: References: In-Reply-To: References: Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On some platforms the exact frequency or voltage may be hidden from the OS by the firmware. Allow such configurations to pass magic values in the "opp-hz" or the "opp-microvolt" properties, which should be interpreted in a platform dependent way. Signed-off-by: Viresh Kumar --- Documentation/devicetree/bindings/opp/opp.txt | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.15.0.rc1.236.g92ea95045093 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/opp/opp.txt b/Documentation/devicetree/bindings/opp/opp.txt index 203e09fe7698..9c5056fb120f 100644 --- a/Documentation/devicetree/bindings/opp/opp.txt +++ b/Documentation/devicetree/bindings/opp/opp.txt @@ -166,6 +166,12 @@ properties. "power-domains" property. Also, either all or none of the OPP nodes in an OPP table should have it set. + +On some platforms the exact frequency or voltage may be hidden from the OS by +the firmware and the "opp-hz" or the "opp-microvolt" properties may contain +magic values that represent the frequency or voltage in a firmware dependent +way, for example an index of an array in the firmware. + Example 1: Single cluster Dual-core ARM cortex A9, switch DVFS states together. / {