Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1818473imm; Thu, 24 May 2018 01:07:44 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoqHRxeqEBiXRQtGHFgrB48g8M3J6UxtIHegZ1BUGxCx9gU+n9NQZ0b379RVEAu9lb5M7e3 X-Received: by 2002:a62:6105:: with SMTP id v5-v6mr6165076pfb.197.1527149264452; Thu, 24 May 2018 01:07:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527149264; cv=none; d=google.com; s=arc-20160816; b=vuVJ8fQuyq8FfOci7ctpJGQK5pl3OD8cIro4/xbc9pQ90cTxdCvyCjZM5oIAHmj/U7 L+UsFyWqmC1AbiXnBsM/A6ZtGPeI5Q1I+hdgskgVwsETKjpmgzIDd0vPvGanl/wzx38B rWO/VN2HL9B8L2/ftNijZUGlmvp3G1TeryV38267v7HyVwEqjLyIWxxwS+VCKax9Wp8q W2a5eL/skkCsrR5r8jjIeS5v/h0rddTyzpdoQGtRMJ3f59dBhIRXW57I8K9K9AWvVRfs Y162uK/Imn25fiCUlnZji6Bc9vhxfLbJ4ULjaGVx0Kexvbbu+l9GgBve+7K/x43QKC3A TMFw== 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=WkiBkl0cK/cFHQcmnCHahtfY7zEiTaLeF+f153kj76u9O2QtV3MfFYaPpuhwhf0/pt ob4Ajn4pTl+7Bhn4eusoCUOQXJxCY1WZLEEFkWhe17PRU5NWTMxjgTidWRhFDK9gCEnC cIjEDbrRz/X7xDVKMItUN20U+Zs//bb1SxCni1AOH2hcbcXR1lwup/8pau4mM2CbPGYV BI2GiuTTNXqb75T6IchD9Tncp7db1Xcv2DNfU3J5QBG57ty8GDWiEqiwpyl0OX4jFNIe lGItS9k1fPcSDFO0902JMkTLkqDbJ26YfCpWeegToNFdlPplCf2rURbS1lEh11y0fY2K 7AvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=nEJjvg/K; dkim=pass header.i=@codeaurora.org header.s=default header.b=Qwz3Jekn; 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 l2-v6si16041924pgc.438.2018.05.24.01.06.57; Thu, 24 May 2018 01:07:44 -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=nEJjvg/K; dkim=pass header.i=@codeaurora.org header.s=default header.b=Qwz3Jekn; 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 S965338AbeEXHvm (ORCPT + 99 others); Thu, 24 May 2018 03:51:42 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:53150 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965259AbeEXHuo (ORCPT ); Thu, 24 May 2018 03:50:44 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 0261060F6D; Thu, 24 May 2018 07:50:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527148244; bh=h7rH1cm5lVVgWTEyaV8PbPdgOLYKNqSFFAbcfS0T/H4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nEJjvg/KOD7EFnCLup39lU+l1HUVowOfZw8t2UbOB3wPAM8N5dEwZP6imtWgP3eZK vEkVeNDoPCgAh35irfdE/Mc/EbMczHcIE6xTtYN+VNVKsvPufDgS2tBekCacoOPwRD m6T/Dx6eby4qqi2umozgjr4v88VGjvWYgoSkUk9M= 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 CAB0060AF9; Thu, 24 May 2018 07:50:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527148243; bh=h7rH1cm5lVVgWTEyaV8PbPdgOLYKNqSFFAbcfS0T/H4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qwz3JekntROxNsoQtH79w+VXJ7PpfqZvnt/rRUhRs0AeCt686UeMDM/vKMW0zBL/E 0AWy8KBf7TGhrGe53VjsY75LWOmNzukT+WW8qTLGUm1ZPyqCeYZU+a5CuKrZbV8o/l uYG8glW2aetcP+Use03bSnBNpGTwarH3Ycbay3e0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org CAB0060AF9 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, andy.gross@linaro.org, david.brown@linaro.org, will.deacon@arm.com Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, vireshk@kernel.org, ilialin@codeaurora.org Subject: [PATCH v12 5/8] dt-bindings: clk: qcom: Add bindings for CPU clock for msm8996 Date: Thu, 24 May 2018 10:50:15 +0300 Message-Id: <1527148218-16540-6-git-send-email-ilialin@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1527148218-16540-1-git-send-email-ilialin@codeaurora.org> References: <1527148218-16540-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