From patchwork Mon Dec 18 10:21:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 849967 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="ZUibmyb8"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3z0cXb4f3nz9s74 for ; Mon, 18 Dec 2017 21:22:07 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932672AbdLRKVu (ORCPT ); Mon, 18 Dec 2017 05:21:50 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:45792 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932736AbdLRKVo (ORCPT ); Mon, 18 Dec 2017 05:21:44 -0500 Received: by mail-pf0-f193.google.com with SMTP id u19so9470084pfa.12 for ; Mon, 18 Dec 2017 02:21:44 -0800 (PST) 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=paCoXi0bL/OuGQ6EkcUEdsajFGzPSAVf/un9mkkv9+M=; b=ZUibmyb85QrYLEikEFP9P5h3viVXJObX2DKpKOFFIGJdBZglxcoTUpq7TUPQ8wCCAP i+WJNUt0aaFrZ1ox/AUVriTEsZCD4I8cFSqnb4EanbwSRyI4/rzbKUyvxXAFfRzu+8AY OjxlWKTC8waDeTUu3SdOftfqQNgR0GrHvKciE= 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=paCoXi0bL/OuGQ6EkcUEdsajFGzPSAVf/un9mkkv9+M=; b=Cu5+8PC53/Fk/bIAbNUbZqNNmg5s61ICdi9KXj6nSpz1cdLv3nSdR9elKlhpa+C6A1 g+8kxQ4KgK6j23qCR8lLjLK3HiOrO5QnEaZdZtqtPajjEXPUN2EeV9w2S9MwlFka4Ww2 aVzjjcPRq3Rbgkp3dRZ+8oxe8FN6cyVQqFYLCTV1yz54dVx6h6oFK/EmrpvtPzcUkMkq 5JZpJxydVDZYvgYE/66EGwrge78waJNsxMAqyP3UKyv8LxhONhQ0yJJoNy5YIktJ/usK /dXSWfvecMcBLaLaXTPgrjWzRb55uy4aV+tBU/kTk9kQn8FcEAIloxfHoBqgmrSNh7I+ ST1w== X-Gm-Message-State: AKGB3mL91leaspUlieDTbx+D1u20bYtaPUS+HfpQCvUOhqQm8oJALcNY hT6U5yMS85ocX/a4TWJ39kjzYg== X-Google-Smtp-Source: ACJfBot93zc6xsTZg5Gr8GpfcPcmqu56sVpoYgLoLif9fchbJUfnyj4k6Gun/0Mv5s2YuR1tLPeCAQ== X-Received: by 10.101.82.139 with SMTP id y11mr19706877pgp.109.1513592504368; Mon, 18 Dec 2017 02:21:44 -0800 (PST) Received: from localhost ([122.172.99.7]) by smtp.gmail.com with ESMTPSA id 75sm25672093pfo.103.2017.12.18.02.21.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Dec 2017 02:21:43 -0800 (PST) From: Viresh Kumar To: ulf.hansson@linaro.org, Kevin Hilman , robh+dt@kernel.org, Viresh Kumar , Nishanth Menon , Stephen Boyd Cc: Viresh Kumar , Rafael Wysocki , linux-pm@vger.kernel.org, Vincent Guittot , rnayak@codeaurora.org, sudeep.holla@arm.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V8 3/3] OPP: Allow "opp-hz" and "opp-microvolt" to contain magic values Date: Mon, 18 Dec 2017 15:51:30 +0530 Message-Id: <476d7ae69184d787ccc6d99f8df6069007fd0a91.1513591822.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.15.0.194.g9af6a3dea062 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. Reviewed-by: Ulf Hansson Signed-off-by: Viresh Kumar --- Documentation/devicetree/bindings/opp/opp.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/opp/opp.txt b/Documentation/devicetree/bindings/opp/opp.txt index 4e4f30288c8b..00a3bdbd0f1f 100644 --- a/Documentation/devicetree/bindings/opp/opp.txt +++ b/Documentation/devicetree/bindings/opp/opp.txt @@ -167,6 +167,12 @@ properties. functioning of the current device at the current OPP (where this property is present). + +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. / {