Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp334182imm; Tue, 15 May 2018 02:21:21 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpWHF3F+TjxmcNBzpzJGbGFCXkzDWaLbFLRyeUGwa1/je0W8l++bbtcOxYhA5tRnVeaLp70 X-Received: by 2002:a63:755e:: with SMTP id f30-v6mr11819831pgn.149.1526376081552; Tue, 15 May 2018 02:21:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526376081; cv=none; d=google.com; s=arc-20160816; b=sw7RzgFQ8tsk3lf8FENixOgKKsbP2J91TUJP/FjZkakp3NhIO392qDxoupqcHvWtA0 lIXVLEoT4fefo+rvJNJwUiJGhv9urN/ZwipXmOxz2t0/0Q8NrshwslbYcL7ALF8j954N 4i3Yf2/sZfwIyntL6m9B7I/OcgwyDJqNK3czNH5m5/V15P15k4GbYoLP+lmPp4aWr4up cvNd/Ddos/IdDgFRp1jQwFIYHWgrb77bNTr/NPRhh9I5fj1NT4VJQtJCtC3Ach0+YgDK CyIh3sMFD5rSWs4OQxnl0ZAjRm/MBgdloTo8FND659oRWc1OJ/Dc3MKOv/Z6O7C8QUZF QROg== 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=hk6x6MPHpywAYKNye9PnPMf+FOo+Ayq0CPBqxcxhuNCpysOBLHPRtYhBGrQq7qJ+W2 waeC74NwTiEVLO5n04iYP77c3wo4p3ySDlGoUDOT5zwjSmAc5cA5cIR5a04P4SGq+yJU y9yaZjyU3E7aKdOzhfqHFnoUSP0DB4rmKIp7+E7JYUO7gzM2fUQICEsFatMHrCFXRfBc dgRnqNnsI+mFHM3icfh3DA4Hr7/Xhk6K0gIpImlCGzoOjp1M6UA2hFWDbtkIAkXoTMtj SRq5yNMX0WhQ33o4PFg4jIGce3R3gt2raiHkOIr4TnEhCFMKWFaAUkWAEHyMx9qSAta9 9w6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=fE5lndL9; dkim=pass header.i=@codeaurora.org header.s=default header.b=Kus98gzQ; 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 k65-v6si11792769pfg.38.2018.05.15.02.21.07; Tue, 15 May 2018 02:21:21 -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=fE5lndL9; dkim=pass header.i=@codeaurora.org header.s=default header.b=Kus98gzQ; 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 S1752738AbeEOJTN (ORCPT + 99 others); Tue, 15 May 2018 05:19:13 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:50060 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752498AbeEOJOJ (ORCPT ); Tue, 15 May 2018 05:14:09 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id D54D660F71; Tue, 15 May 2018 09:14:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1526375648; bh=h7rH1cm5lVVgWTEyaV8PbPdgOLYKNqSFFAbcfS0T/H4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fE5lndL9FIgqvniFsUDxkLYrNZbeCX1d3FXdj8aNhVr3Z9TwAZ7p+E4FDiwvjmcf3 +l8ZuyTU8ZW0f6beYqdEUo9LupaeCAkIvi5CVQZDdC/NXxGPrt0cVulDCf8hGzYEnF a9BgwNV2Y66EIth/mLuTGQ4GO2gNFLeD03ZPglPs= 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 2A46B6055C; Tue, 15 May 2018 09:14:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1526375647; bh=h7rH1cm5lVVgWTEyaV8PbPdgOLYKNqSFFAbcfS0T/H4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Kus98gzQi59LrBCc9ayfvWzGfQpntq0t2YlCoC43szp/wG/IgfnFeTZ5v5vnuStMU 2fwHhdFc4k121VL2ZwRxe1Her7/hcikugeCS/wpOhWc0Eut0CffjG74WLcspLgydwz JHpD0LwCVEVberS/k9Q978DCCaYE3jkIdF/xzLPA= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 2A46B6055C 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 v7 04/14] clk: qcom: Add DT bindings for CPU clock driver for msm8996 Date: Tue, 15 May 2018 12:13:26 +0300 Message-Id: <1526375616-16904-5-git-send-email-ilialin@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1526375616-16904-1-git-send-email-ilialin@codeaurora.org> References: <1526375616-16904-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