From patchwork Thu Sep 21 16:49:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georgi Djakov X-Patchwork-Id: 817025 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="BPJFI/jL"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3xyjJY4SC8z9t3C for ; Fri, 22 Sep 2017 02:49:49 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751581AbdIUQtq (ORCPT ); Thu, 21 Sep 2017 12:49:46 -0400 Received: from mail-wm0-f54.google.com ([74.125.82.54]:45378 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751687AbdIUQtn (ORCPT ); Thu, 21 Sep 2017 12:49:43 -0400 Received: by mail-wm0-f54.google.com with SMTP id q124so3600201wmb.0 for ; Thu, 21 Sep 2017 09:49:42 -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; bh=SFNcM/ZuJLY1MKI1U6mE8IMlhEogwP/OxT/FNS/9ZIU=; b=BPJFI/jLasXsTJE9uCrdIKyVK4w+JqdX3ppqab/JZuin8OHz7eXfya9ATACvYoAgb/ uSupqWXzYKDDTOv/7Ku8h2mRIBj/bMVLewXiTc1itpdwOxDSAjW+qrYKUiPdVI3u9d7m zOrDl++Zv0xb0hTih9kLTGlYob7G8spxTQ+mA= 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=SFNcM/ZuJLY1MKI1U6mE8IMlhEogwP/OxT/FNS/9ZIU=; b=l4ZINvH3xcFCGI6V/NLTbimMNf9HWdnOdWKVDXiscCKCiFmZiZQJ9fZPRjN8waTJ4h VYfSFl3d5Mz93/hFGXeAK+BeAhEEf19GNaslE6zeBoFH15D3GlK1xp9etZnBC+X9S2rk /ro0v+jLR1X0VmoliDRl9Hs/tfmjGFPwUQk9x7pC060zU9l0FFL8VqogupAMJCaA19k3 OZt/1ULRlzouu/N/SgZi2C7QB+VwrBoFy6T2wOrcMZ3HQf1DIqkS8uWBzs23SGcuyLBl pr/uPNgNRlxozc9MjYXYWa2igYNSUpNDCuNDgTd2W7s9SZdqhSEu9M4KSb8Wba1Swt0p g3DQ== X-Gm-Message-State: AHPjjUh7ZXIV3W4lNar0Ad5IvzuGhlmo9Auk1K1+2XEZF7s4r+HUSZwi BzQ0t41Jy0PGsqVapeZforAG0A== X-Google-Smtp-Source: AOwi7QCO1+O38oH3LNw2hM1jyrtS2n2OGoLELrg6eJNdGmIom9B9lC8KTfXw+f2NYwFVwq0biS+Xhg== X-Received: by 10.80.151.206 with SMTP id f14mr1862556edb.27.1506012582112; Thu, 21 Sep 2017 09:49:42 -0700 (PDT) Received: from mms-0441.qualcomm.mm-sol.com ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id i16sm993311edj.29.2017.09.21.09.49.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Sep 2017 09:49:41 -0700 (PDT) From: Georgi Djakov To: sboyd@codeaurora.org, jassisinghbrar@gmail.com, bjorn.andersson@linaro.org, robh+dt@kernel.org Cc: mturquette@baylibre.com, 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 v9 0/7] Add support for Qualcomm A53 CPU clock Date: Thu, 21 Sep 2017 19:49:33 +0300 Message-Id: <20170921164940.20343-1-georgi.djakov@linaro.org> X-Mailer: git-send-email 2.14.1 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 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 (7): mailbox: qcom: Convert APCS IPC driver to use regmap mailbox: qcom: Populate APCS child platform devices mailbox: qcom: Move the apcs struct into a separate header clk: qcom: Add A53 PLL support clk: qcom: Add regmap mux-div clocks support dt-bindings: clock: Document qcom,apcs binding clk: qcom: Add APCS clock controller support .../devicetree/bindings/clock/qcom,a53pll.txt | 22 ++ .../devicetree/bindings/clock/qcom,apcs.txt | 27 +++ drivers/clk/qcom/Kconfig | 21 ++ drivers/clk/qcom/Makefile | 3 + drivers/clk/qcom/a53-pll.c | 107 ++++++++++ drivers/clk/qcom/apcs-msm8916.c | 172 +++++++++++++++ drivers/clk/qcom/clk-regmap-mux-div.c | 237 +++++++++++++++++++++ drivers/clk/qcom/clk-regmap-mux-div.h | 54 +++++ drivers/mailbox/qcom-apcs-ipc-mailbox.c | 36 ++-- include/linux/mailbox/qcom-apcs.h | 34 +++ 10 files changed, 700 insertions(+), 13 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/qcom,a53pll.txt create mode 100644 Documentation/devicetree/bindings/clock/qcom,apcs.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 create mode 100644 include/linux/mailbox/qcom-apcs.h Acked-by: Bjorn Andersson --- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html