From patchwork Tue Dec 5 15:46:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georgi Djakov X-Patchwork-Id: 120696 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5905818qgn; Tue, 5 Dec 2017 07:47:08 -0800 (PST) X-Google-Smtp-Source: AGs4zMY0siSkkjj0y6uYG9itB8UekUG92SKsnF2cc27DcxsEHYseRL4W7EdNMc1gQ+XUqFrcjClH X-Received: by 10.84.168.226 with SMTP id f89mr18895219plb.176.1512488828202; Tue, 05 Dec 2017 07:47:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512488828; cv=none; d=google.com; s=arc-20160816; b=BYLz5AZcO6Gb2ygGKdj3MRi53V4jYc7hwmrQLvODCKnCe5rbJ55PAjNF/e1azStNQk hWscOA+PLDYoW6DSXSU11LHcdTeDoRyXlnDzjSY4PSy5NVNOXx+WvClIx3OAW2BE91gY HvKSZFB+3noWnIx7OriTujOzb5lzSz1BVGnxgsJt3kUChODTs0H04arOsEjKcLPLa3mo l/GKTphhczhSdqMV84YKOGuagblL+XW/lWvjljolEP7+PLvGPXInEj6AU11Z7jRIkJq9 Xs3AzYKCg1eD+dgx5di9dd4N+ZeEC+7dJGZmWi4B0nr09j0e+WQC48bDT4naVqGMg0Zs KNCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=qu+7f7wy3Xn3WnA9L7G9F7qQyX8qhC0tww0tuxYTyBE=; b=U2UM4iTWEq0zIk69IHonW1qiW65acte750WwbYPqED7bvNDNPGx+dZVzOXBkMUxSAO kTcEq0GJ/szYFAUvjV7yH8VU1cidhZsyPhsNhDuzRn6DURMLX/FKA9xc0awJQWd3SVl7 t1JNh8rynhXticEPaQ0/y/+8oe9oPd7cnOQdy7yTwzbiLND5hA3cYhKFy8R4CiTVsNEl ZnlsytDrfRf+X/RllAIT7dSUOEYP0NiAui+nf/dfzTIb8pTKvkaKFDdcnGOYhz7sYUl4 R/718BmVu8dXrkWjtkDlvf6DTfEBl9rA3ECGXu0+QGuZabOdEHoekpLUC3TTse3G+SkW eRow== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Gf1s0NW9; 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=fail (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 q30si251776pgn.232.2017.12.05.07.47.07; Tue, 05 Dec 2017 07:47:08 -0800 (PST) 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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Gf1s0NW9; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752872AbdLEPrG (ORCPT + 10 others); Tue, 5 Dec 2017 10:47:06 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:36531 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752701AbdLEPrF (ORCPT ); Tue, 5 Dec 2017 10:47:05 -0500 Received: by mail-wm0-f66.google.com with SMTP id b76so2128194wmg.1 for ; Tue, 05 Dec 2017 07:47:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=fBhDBzf72f+HUxgMrCH9+V0S2oxjmyIhFJsFKEldfUc=; b=Gf1s0NW95ZpgCjduA++SVd8nAb7GbUu7vr908QKQysip7BqDXyThHzlKDKWDE3MZ8O WuwwEYVy1iPrS30rj1YYmF3JxHN0FKTr7tik+T1HMZ7yIoRKdU7Gj/opIk+J6o3XtWUA 1y4AvpbWt66QcBpkcm+cEQQ2cZobtAE0mzlBw= 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; bh=fBhDBzf72f+HUxgMrCH9+V0S2oxjmyIhFJsFKEldfUc=; b=qG2V2x17IDsnbKmQbehagtCk7EpKBcM6W/iVK1QOe1tGqQT2E6Wf3bL53Bb8kSG3hC OZQt63Fsy+8CA20asiKQik0Z00jV7iwsrME+m+S0U1drW4kvx/rogSeHdhLvRACQn+Vx JSckFyjtra3JWmwwjE36FU4i/45YWS/x+XoKn7+tf4VPPQcw9u7V9pYZXS4jXdvVnC2J 0fSd0kErulMt+ZWOLl8ffIm2iWZChv8Q/+6YRrlQjPoAL9Yaxvk0TpjTHtBW91Ljq94x 7IVDSY8SG3x5WL8bn6ulv6rUUlgYn6eejwOyPvqwp5OxoUray8nHIdDupnnY8+nuTCB4 0OgA== X-Gm-Message-State: AJaThX7rymrUQ6xlvRWkGn3OJhk7jZE0UWsUtFQbiwfXWvcHXelCByXx dV3b5L74CN0+pE7urP0PvA4KrCXcPY0= X-Received: by 10.28.30.213 with SMTP id e204mr9728021wme.40.1512488823801; Tue, 05 Dec 2017 07:47:03 -0800 (PST) Received: from localhost.localdomain ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id v47sm500946wrc.13.2017.12.05.07.47.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 Dec 2017 07:47:02 -0800 (PST) From: Georgi Djakov To: sboyd@codeaurora.org, jassisinghbrar@gmail.com, bjorn.andersson@linaro.org Cc: mturquette@baylibre.com, robh@kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, georgi.djakov@linaro.org Subject: [PATCH v11 0/6] Add support for Qualcomm A53 CPU clock Date: Tue, 5 Dec 2017 17:46:55 +0200 Message-Id: <20171205154701.27730-1-georgi.djakov@linaro.org> X-Mailer: git-send-email 2.14.2 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This patchset adds support for the A53 CPU clock on MSM8916 platforms and allows scaling of the CPU frequency on msm8916 based platforms. Changes since v10 (https://lkml.org/lkml/2017/12/1/577) * Addressed Bjorn's comments on APCS clock driver. * Picked Acks from Rob and Bjorn. Changes since v9 (https://lkml.org/lkml/2017/9/21/511) * Added the clock properties to the APCS DT node, instead of adding a subnode and also replaced patch "mailbox: qcom: Populate APCS child platform devices" with "mailbox: qcom: Create APCS child device for clock controller". * Dropped patch "mailbox: qcom: Move the apcs struct into a separate header", and use dev_get_regmap(dev->parent) in the child driver. * Addressed Bjorn's comments on a53-pll and apcs-clk drivers. * Added SPDX copyright identifiers. Changes since v8 (https://lkml.org/lkml/2017/6/23/476) * Converted APCS mailbox driver to use regmap and to populate child platform devices that will handle the rest of the functionality provided by APCS block. * Picked Rob's Ack for the PLL binding. * Changed the APCS binding and put it into a separate patch. * Addressed review comments. * Minor changes. Changes since v7 (https://lkml.org/lkml/2016/10/31/296) * Add the APCS clock controller to the APCS driver to expose both the mailbox and clock controller functionality as discussed earlier: https://lkml.org/lkml/2016/11/14/860 * Changed the a53pll compatible string as suggested by Rob. Changes since v6 (https://lkml.org/lkml/2016/9/7/347) * Addressed various comments from Stephen Boyd Changes since v5 (https://lkml.org/lkml/2016/2/1/407) * Rebase to clk-next and update according to the recent API changes. Changes since v4 (https://lkml.org/lkml/2015/12/14/367) * Convert to builtin drivers as now __clk_lookup() is used Changes since v3 (https://lkml.org/lkml/2015/8/12/585) * Split driver into two parts - and separate A53 PLL and A53 clock controller drivers. * Drop the safe switch hook patch. Add a clock notifier in the clock provider to handle switching via safe mux and divider configuration. Changes since v2 (https://lkml.org/lkml/2015/7/24/526) * Drop gpll0_vote patch. * Switch to the new clk_hw_* APIs. * Rebase to the current clk-next. Changes since v1 (https://lkml.org/lkml/2015/6/12/193) * Drop SR2 PLL patch, as it is already applied. * Add gpll0_vote rate propagation patch. * Update/rebase patches to the current clk-next. Georgi Djakov (6): mailbox: qcom: Convert APCS IPC driver to use regmap mailbox: qcom: Create APCS child device for clock controller clk: qcom: Add A53 PLL support clk: qcom: Add regmap mux-div clocks support dt-bindings: mailbox: qcom: Document the APCS clock binding clk: qcom: Add APCS clock controller support .../devicetree/bindings/clock/qcom,a53pll.txt | 22 ++ .../bindings/mailbox/qcom,apcs-kpss-global.txt | 18 ++ drivers/clk/qcom/Kconfig | 21 ++ drivers/clk/qcom/Makefile | 3 + drivers/clk/qcom/a53-pll.c | 110 ++++++++++ drivers/clk/qcom/apcs-msm8916.c | 149 ++++++++++++++ drivers/clk/qcom/clk-regmap-mux-div.c | 229 +++++++++++++++++++++ drivers/clk/qcom/clk-regmap-mux-div.h | 46 +++++ drivers/mailbox/qcom-apcs-ipc-mailbox.c | 35 +++- 9 files changed, 628 insertions(+), 5 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/qcom,a53pll.txt create mode 100644 drivers/clk/qcom/a53-pll.c create mode 100644 drivers/clk/qcom/apcs-msm8916.c create mode 100644 drivers/clk/qcom/clk-regmap-mux-div.c create mode 100644 drivers/clk/qcom/clk-regmap-mux-div.h -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html