Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3151127imm; Thu, 17 May 2018 04:21:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpkwr1Cx3yLkKfUZCH8EPIYlSY5UfeVdpim5aNHN1toXwLCLi0Dp418/dL7t0hL23lLUIuV X-Received: by 2002:a63:67c1:: with SMTP id b184-v6mr3711338pgc.90.1526556069585; Thu, 17 May 2018 04:21:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526556069; cv=none; d=google.com; s=arc-20160816; b=MoheIKr1u6WhmT+bRCRoLCCdAlaUHKeRD+lTzTObl3uVTmwJXmU2agPEZcKACFawrA Lb/HGqtI3/EYBAOvxMd0RmATI79caxxh0ooqyQZ0BoCgV2rPg3D7KFITSTAKywB+K6J8 U7J77TiEBF7Fz7q2/rlDkPEMLfuE9M9l5q6E/7jPHm5oTQK26juWquaHAwIsV17hAgVz jjd5LOK1/Bjhq5jIvPSlmV6CHAz87MlLaZ/h1WWkCFsuRkkzOAAOzs0iW8V0Ho56K39R myyBA1g989tOSdYygmjwauLe2vOroprr9QXOB1xyG2M5O9EOf6FOXF4mgrFV+sWtY1W0 dQFw== 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:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=FnDV8ZuGeOkcTX8agTXW6F35X0aWVe6gBiK17Jdprlw=; b=BTo5ChugY2l9biT6laXMl3pW3sZCrorZU3TYoJR9FV+9G31mFOE+sL8Gpr3Vk2xueR 3X+sJCHnT65sk//jzJ/wZu+Sba7JB0JHH6RwQwhWYzBr5K5+iTSLjYInRfjsNH5ciq1v XjSivAWWUZ75Dcoay+UAKR9/hs+/JE55yBBFAf5qd9WwMjrbDAyT6gRj3PMdL2m0NFLz 1AAgM2pDzqh0peGBOGjQbkDR/sPafl1woY3H1mcFSgEBG/D1m9WCgv+wVtbuXWBoEisu +diCzV5G+5NXLmc0mH5aznw7kfpQmX3yNZn99IHUgE1X5Q4z9Iw1MLdUd++H8PZ2zKLb lZfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=CYHY007x; dkim=pass header.i=@codeaurora.org header.s=default header.b=O0BKwLlW; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c86-v6si4993088pfl.319.2018.05.17.04.20.55; Thu, 17 May 2018 04:21:09 -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=@codeaurora.org header.s=default header.b=CYHY007x; dkim=pass header.i=@codeaurora.org header.s=default header.b=O0BKwLlW; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752191AbeEQLT7 (ORCPT + 99 others); Thu, 17 May 2018 07:19:59 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:35756 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751533AbeEQLTz (ORCPT ); Thu, 17 May 2018 07:19:55 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E84B960C66; Thu, 17 May 2018 11:19:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1526555994; bh=h7rH1cm5lVVgWTEyaV8PbPdgOLYKNqSFFAbcfS0T/H4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CYHY007xbJ6pJ+MQkk/ExYfgawLzEk9rvGXVIQmD0uUcLNaR/tMkUfRLkHhnm3Hbh P49aZph5IilI6QE5s9PnbP/1rNn7Vc5xw/PiMlIqBMuEjb9r5Umxcdq14TCipWnym8 dyTCN/6ygoSYjjiIB1hoyTDYI+3eIIDnX5WiZvy8= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from lx-ilial.mea.qualcomm.com (unknown [185.23.60.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ilialin@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id D15E160F61; Thu, 17 May 2018 11:19:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1526555992; bh=h7rH1cm5lVVgWTEyaV8PbPdgOLYKNqSFFAbcfS0T/H4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O0BKwLlWjsoIh2QleADZ4mlUw8k3/dY66sOKVt3zwcITclzno9yeXN7Q4ZsWiGCLK aNVxmz3fNQrY0IGo7g595jMXOUsN9FTaVLh0oMKyazu4O51YDtl5UqxHX6j0yC9tzN HWAw61GzW6/Dx52jsYzNt9Kp0CWQYEmUS7amhhYI= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D15E160F61 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ilialin@codeaurora.org From: Ilia Lin To: mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org, mark.rutland@arm.com, viresh.kumar@linaro.org, nm@ti.com, lgirdwood@gmail.com, broonie@kernel.org, andy.gross@linaro.org, david.brown@linaro.org, catalin.marinas@arm.com, will.deacon@arm.com, rjw@rjwysocki.net, linux-clk@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, rnayak@codeaurora.org, ilialin@codeaurora.org, amit.kucheria@linaro.org, nicolas.dechesne@linaro.org, celster@codeaurora.org, tfinkel@codeaurora.org Subject: [PATCH v8 05/15] dt-bindings: clk: qcom: Add bindings for CPU clock for msm8996 Date: Thu, 17 May 2018 14:19:05 +0300 Message-Id: <1526555955-29960-6-git-send-email-ilialin@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1526555955-29960-1-git-send-email-ilialin@codeaurora.org> References: <1526555955-29960-1-git-send-email-ilialin@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Each of the CPU clusters (Power and Perf) on msm8996 are clocked via 2 PLLs, a primary and alternate. There are also 2 Mux'es, a primary and secondary all connected together as shown below +-------+ XO | | +------------------>0 | | | PLL/2 | SMUX +----+ +------->1 | | | | | | | +-------+ | +-------+ | +---->0 | | | | +---------------+ | +----------->1 | CPU clk |Primary PLL +----+ PLL_EARLY | | +------> | +------+-----------+ +------>2 PMUX | +---------------+ | | | | | +------+ | +-->3 | +--^+ ACD +-----+ | +-------+ +---------------+ +------+ | |Alt PLL | | | +---------------------------+ +---------------+ PLL_EARLY The primary PLL is what drives the CPU clk, except for times when we are reprogramming the PLL itself (for rate changes) when we temporarily switch to an alternate PLL. A subsequent patch adds support to switch between primary and alternate PLL during rate changes. The primary PLL operates on a single VCO range, between 600MHz and 3GHz. However the CPUs do support OPPs with frequencies between 300MHz and 600MHz. In order to support running the CPUs at those frequencies we end up having to lock the PLL at twice the rate and drive the CPU clk via the PLL/2 output and SMUX. Signed-off-by: Ilia Lin Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/clock/qcom,kryocc.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/qcom,kryocc.txt diff --git a/Documentation/devicetree/bindings/clock/qcom,kryocc.txt b/Documentation/devicetree/bindings/clock/qcom,kryocc.txt new file mode 100644 index 0000000..8458783 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/qcom,kryocc.txt @@ -0,0 +1,17 @@ +Qualcomm CPUSS clock controller for Kryo CPUs +---------------------------------------------------- + +Required properties : +- compatible : shall contain only one of the following: + + "qcom,msm8996-apcc" + +- reg : shall contain base register location and length +- #clock-cells : shall contain 1 + +Example: + kryocc: clock-controller@6400000 { + compatible = "qcom,msm8996-apcc"; + reg = <0x6400000 0x90000>; + #clock-cells = <1>; + }; -- 1.9.1