From patchwork Mon Oct 15 12:47:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niklas Cassel X-Patchwork-Id: 148828 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp3753999lji; Mon, 15 Oct 2018 05:48:24 -0700 (PDT) X-Google-Smtp-Source: ACcGV633ooD5etSPWTlyPPIMulWaKNhs4cvw1kWY5nneJ12G3thUtlkcOrHaAQwsLooONN6E3U9y X-Received: by 2002:a63:5224:: with SMTP id g36-v6mr16200041pgb.253.1539607703927; Mon, 15 Oct 2018 05:48:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539607703; cv=none; d=google.com; s=arc-20160816; b=wIxFbf9PrmFfr5W8jNKcPmTKiQWyT84wdRbIJyCkyK9THdml4OV+A7PdSy0K3gqq45 wIJRoUj3xVmE1/IiPNPgDaXXlr4i8tUi168+x8GjwLchSQB5l13CSerDDbn+/SOPjS0m 9ECJjfXsAkhu/Yttay1s+f2FCpFpKb9Sk9LB6g0H4HYN1lhIvBaZcjhizNITW44LLMev Rdv21MluE2zKqsw+VTqVa9ony7DlIG7fnL/ON/g542nqYNfQwRzVPYtvb3UUFwH6hNY0 ORRmTjEGBmddmr+3DgeKs3iO+toFDvWUTwaKeO08Elvst0uib1zZPCpuxq0ZftKXy/sF CQlg== 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:message-id:date :subject:cc:to:from:dkim-signature; bh=/PR/U/AX2RhoMph28nvtYnU8rTDBHHGBQ0O/iaGYqvc=; b=OCd1FvQcI9RzdXlkUoIFJWIO3dCThOBH6ewLLlTG588J3AY9kgfyYBlUbpQwl8b5yB x4hTmlOnIPHA73QTxnQMRXy0WzPUXw/mZ0Ilx8xsbD/3J+qwetF+2hsKQlkVaV9WgKY0 tYReggp7ZCB/FbPiBPAe5f1HTKDzh2b8uNAbXTeQH0TU3DJQ5gEfm22u0i8dIaOYpUQD 5+ygmsJSQp0Ta4upJwj/bdr2Ro+yI21J7Wexy82n1jKVRAyt6RlEG+uDONKaW8jifGDN pG2DQ1Mq8+lMiUbFgxSrEr46tZT1LJieWMc1037UKcNyEcTn4mOpspmk1FhcvTjSr5RB iKuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BMKivcKb; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (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 g128-v6si10007738pfc.284.2018.10.15.05.48.23; Mon, 15 Oct 2018 05:48:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BMKivcKb; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1726590AbeJOUdc (ORCPT + 13 others); Mon, 15 Oct 2018 16:33:32 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:39172 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726635AbeJOUdb (ORCPT ); Mon, 15 Oct 2018 16:33:31 -0400 Received: by mail-lj1-f196.google.com with SMTP id p1-v6so17353640ljg.6 for ; Mon, 15 Oct 2018 05:48:21 -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; bh=/PR/U/AX2RhoMph28nvtYnU8rTDBHHGBQ0O/iaGYqvc=; b=BMKivcKbI+x0Y4sWpJHyolHUxOS9s69ieyfa99V458mPoNYUMIuroBbEwPbJbmHDg6 8PM68u5UTeeu/idBG7+XcKuk0ePD7PYE/HU+b2w+4OWS2EL1bQ9RhQKz6p8iIa6ImrJu BNTpxn/9m0Qgq+lP8aXALxw3TIdIHLEIN2aZ8= 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; bh=/PR/U/AX2RhoMph28nvtYnU8rTDBHHGBQ0O/iaGYqvc=; b=Z2P7tH7CB2n9PTXeHb6KIzwNxftAgP0fGZYbZFNg1dwmTCeA5qfgoODCi9r16Aiz+O dE28MddnxnGFh0F7BLbje29/cs3qwHyXMFajtsSDFtKgOspmsnbqJm+uCHvR5PLjnFQY lO68LlgLSPC5G0O8pL5V8bblY4VfQQ9fq9C3JCu6xHEKfe50Py+kVNtPq3g0vjl8Mkkv o+mw+SEkQRQZImykR2ohSzk/wzdAfX7jMRKjG6nGv4ImhEes/2eQncsBrh/4JjgmxE3n NkUELQVVbRnwX7OCv+34ED7bTnNR6z69Ts93Wp8LR6TZzRmr/O/Lyy9weS3pKyJxJJk8 slig== X-Gm-Message-State: ABuFfoh7dTjbDpFD6fc/lJPVlwpRsLBn13/UDa3S/KM5zxvRdEKp5+d+ myL2E1wa5HhTaPs8yAMn2S0zFA== X-Received: by 2002:a2e:8589:: with SMTP id b9-v6mr10900340lji.122.1539607700587; Mon, 15 Oct 2018 05:48:20 -0700 (PDT) Received: from centauri.lan (h-229-118.A785.priv.bahnhof.se. [5.150.229.118]) by smtp.gmail.com with ESMTPSA id h87-v6sm2440966lji.9.2018.10.15.05.48.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Oct 2018 05:48:19 -0700 (PDT) From: Niklas Cassel To: viresh.kumar@linaro.org, sboyd@kernel.org, andy.gross@linaro.org, ulf.hansson@linaro.org, collinsd@codeaurora.org, mka@chromium.org, robh@kernel.org, rnayak@codeaurora.org Cc: devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Niklas Cassel Subject: [RFC PATCH] dt-bindings: opp: Extend qcom-opp bindings with properties needed for CPR Date: Mon, 15 Oct 2018 14:47:49 +0200 Message-Id: <20181015124749.27276-1-niklas.cassel@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20180627045234.27403-3-rnayak@codeaurora.org> References: <20180627045234.27403-3-rnayak@codeaurora.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Extend qcom-opp bindings with properties needed for Core Power Reduction (CPR). CPR is included in a great variety of Qualcomm SoC, e.g. msm8916 and msm8996, and was first introduced in msm8974. Signed-off-by: Niklas Cassel --- Hello Rob, Rajendra, Sorry for not replying sooner. Since Rob wanted the binding to be complete before merging, this is my proposal to extend the OPP binding with properties needed to support CPR (both for msm8916 and msm8996). I've discussed the proposal with Viresh, and this proposal seems better than what I previously suggested here: https://lore.kernel.org/lkml/20181005204424.GA29500@centauri.lan/ .../devicetree/bindings/opp/qcom-opp.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) -- 2.17.2 diff --git a/Documentation/devicetree/bindings/opp/qcom-opp.txt b/Documentation/devicetree/bindings/opp/qcom-opp.txt index db4d970c7ec7..3ab5dd84de86 100644 --- a/Documentation/devicetree/bindings/opp/qcom-opp.txt +++ b/Documentation/devicetree/bindings/opp/qcom-opp.txt @@ -23,3 +23,22 @@ Required properties: representing a corner/level that's communicated with a remote microprocessor (usually called the RPM) which then translates it into a certain voltage on a voltage rail. + +Optional properties: +- opp-hz: Frequency in Hz, expressed as a 64-bit big-endian integer. Even + though a power domain doesn't need a opp-hz, there can be devices in the + power domain that need to know the highest supported frequency for each + corner/level (e.g. CPR), in order to properly initialize the hardware. + +- qcom,fuse-level: A positive value representing the fuse corner/level + associated with this OPP node. Sometimes several corners/levels shares + a certain fuse corner/level. A fuse corner/level contains e.g. ref uV, + min uV, and max uV. + +- qcom,fuse-level-: Named qcom,fuse-level property. This is exactly + similar to the above qcom,fuse-level property, but allows multiple + fuse corners/levels to be provided for the same OPP. At runtime, the + platform can pick a and matching qcom,fuse-level- property + will be enabled for all OPPs. If the platform doesn't pick a specific + or the doesn't match with any qcom,fuse-level- + properties, then qcom,fuse-level property shall be used, if present.