Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3881399imm; Mon, 15 Oct 2018 05:50:23 -0700 (PDT) X-Google-Smtp-Source: ACcGV608Ercv6c2yhgh9JRBJPyLIGJbD01VIXkZeIeUscHz0QjDRSGEzUCURZPpN3gUHkapF10Qt X-Received: by 2002:a63:6883:: with SMTP id d125-v6mr16010892pgc.451.1539607823103; Mon, 15 Oct 2018 05:50:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539607823; cv=none; d=google.com; s=arc-20160816; b=wdSyNVANwA5pHLodYO9696Y6F7ngZJ8qgvaeCCqt86vBSWHLWQzpXMfJHrnMDjR4qb eM/gM7MS7XhvL5UAMA0zlTWsfPDVm/VQxQmaFQFxxPm6fJfg9Cl/BVa567FKpumKQXG/ Xhl+r6CtLaCBNTCJmVy+d3d8nbkPtkd6AoptD/gmxGlrN1W2qhrhXgGNnAquyByRxCNw 6af+40K6KpMhi5w96a5eMWmBgL4ZwnqtP/I1ZLhYl3SCaN1Wc8+m4dmoo1Y6c0gqmjtT zGmfoySjQLM+5j7CfEkCtPoFqXT1GrrXPG2pWl8m0bjcRBZUhjlgLm8cxqYz0iAqt1jk QnFQ== 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=CO6J4DtZEBtaSmgC6LjSZPQiYLuyQs/WL3+iGQ6QMPCxVOKSuJDSjYYwImt6dZrlLt dN7XFpVovp45HX82HpRSL8UDLA/fui2uVGZ8lpJ+8LhiPmumUIvRtOwbHapzeMVNjusd ViuHolPMiM8OOzMGYd21znnifpbFgSypg881mENI4TrOEXEXWNxEUFMJaWLnzjMFWMqx bcGmeJ8H2ua5b8iLVz561Q6hDluob/XZS9fQiXsGKsu6EJwSttKhLfh/1xyujhHld9lz BZsZ+ZH8iGrD4VqKlULEHfJ57dQlbA7yAeCptHIVWkTWhYKitMov2FppXDx65K7QN+3y 418g== 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-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t3-v6si11486918pfl.218.2018.10.15.05.50.07; Mon, 15 Oct 2018 05:50:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726663AbeJOUdc (ORCPT + 99 others); Mon, 15 Oct 2018 16:33:32 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:43460 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726593AbeJOUdb (ORCPT ); Mon, 15 Oct 2018 16:33:31 -0400 Received: by mail-lj1-f194.google.com with SMTP id r8-v6so17352301ljc.10 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=YLPIBwpQhjLb7HXr5OSZ88LAYqM6QSOTiTnETuXjIEk9v+GfWzwg9x6h8ZgvFaejQ+ kS0w/ohaQUZYXnYKYt957FRSfkqA8d8IkC4w3hzvcCI9dfGHDhay16Jz/SCbIY6D1Pxh XYjANyWGeSr/VCEjL6qriexB/PjDUINTHjpNqOlMRVe/dx6RgZ4SpXYvRm3QpJDIgOUK BAxdqMWjpPKMjFLuJNK+Sh6/y2vZDI9oGjPAx2pY07WTslCLQyC+pWd5hEKKgp9eVL0a o5tnkfx++3dmEM1QP0KuDmZqNa9XLkDr3XoD04gYHkwN5ldynzsnVmAgkYdTC5MU7kDk 6CfQ== X-Gm-Message-State: ABuFfojIfSA+SBCO1nyKVPP2+pIDZ+FFnBVQNYdAvJshdFLFyv/FNcHa w8fcd51y9paY0QLdrXxSIpxxC4/6MKk= 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(+) 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. -- 2.17.2