Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp802063imm; Wed, 23 May 2018 05:53:57 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoRrAuIN/pNNZd/GsY5Pr9HJh5NIZP6OaQYjehAXxspUsEh8R8YtCsTKoa3MsIcYGo62UvC X-Received: by 2002:a63:5f0b:: with SMTP id t11-v6mr988419pgb.79.1527080036958; Wed, 23 May 2018 05:53:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527080036; cv=none; d=google.com; s=arc-20160816; b=YKNy1rSXg/Cl3wNOB11W6YNoXotgvjUZlSYQzYWohYkwxIbnfN+JW5nKuq+/orIkbd ne6difRDNrcSwrPeSogoK6KULgNfgHoaxmx3SO7eE7CycpJUosRRScTheEGp2RnntmcP QX+txWK31o2H3yWCkCWctotEgPGVw+waRjFSYEDmBkHovSgzFWADdWSQlca3JVhTx3YN S8z1boForqv1nwqJBxxJUl12tL8rM+ZE0uSuHGRUtA0NIWFFT9ZPOHyM6fVaJnGyYvBO n7g4SCCH2YujTlJrjSpE2bCjlmRPJmsQ5EfCxafM1ZVhdmfqMYloHqzipWP4NNaFw9MU eVIg== 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 :dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=zqrIppViIR6g1yC4sT42cmz8NWKYyCf8nfv0dMIwUEs=; b=d+zDjkMSbur61Fx/izeXI5dwUS2MdckgYRGe1/5UU1XqV5aZCFxu8Y8nl4NF/ssPlt 3OHiVuw6j7umVD7kuYxwYBlQ9yYQ4TftABL4vnYGjKvtuEOwQOg/ZEcDRWpPvVqs1o5s mdWxNBLxya8LHwjdsyj7FxOkB3C2quTRC6DTu93nizuv64DCrN7WiOHf6B0Qie9kcp4o +xg5aJUk8kuxtubqE8MeyLj/2cOvUADYJNxMGA0rCiD/fqS7DWGgpaHc2okxgx4y/90k WV2CEfQgtnzaYWOUgdzsgppwS5DsHzZlOkA6d64ZsGE0inHfXNMGHFmW9fY0gxpdEQJS TJNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=ceJQ5dM2; dkim=pass header.i=@codeaurora.org header.s=default header.b=f4vKhRVa; 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 s13-v6si18332695plp.350.2018.05.23.05.53.41; Wed, 23 May 2018 05:53:56 -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=ceJQ5dM2; dkim=pass header.i=@codeaurora.org header.s=default header.b=f4vKhRVa; 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 S932900AbeEWMxL (ORCPT + 99 others); Wed, 23 May 2018 08:53:11 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:54652 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932089AbeEWMxI (ORCPT ); Wed, 23 May 2018 08:53:08 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 81E5360AF9; Wed, 23 May 2018 12:53:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527079987; bh=pTI6r/KSCV/Vr4QK+rnKcxZD9YjMxUJlqlnKle453j8=; h=From:To:Cc:Subject:Date:From; b=ceJQ5dM2a9YNGsj/OCPpBzhaZy73yo4Nq10EglgI+HrKHDVhCnoeoNhwipU06oqLq kJu90RTg1TatG/HvH0wqz0N0UyXkYwcBLLVSNQxfTBnNlRe+AtZQW/3l0zlxCeVHQo nN4WhXGbnY/mEhUP/pVI2A2bEnnPwrzFkfUyVmXk= 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 67341601D7; Wed, 23 May 2018 12:53:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527079986; bh=pTI6r/KSCV/Vr4QK+rnKcxZD9YjMxUJlqlnKle453j8=; h=From:To:Cc:Subject:Date:From; b=f4vKhRVaOUUODJM10V68boFybnZeVsRt24yNsXXDTYGgCpEoL5rAfhj3eClBh9+bf Au/fCXnx5HhYlZgE6XxPG9IaaMuy6dhX284kwg/bCObzpMbrracKBq12yNy82lgA0a i+unbztVDktvtVDkesScNkLIM2jdrBdysYO8+aFs= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 67341601D7 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 v11 0/8] CPU scaling support for msm8996 Date: Wed, 23 May 2018 15:52:53 +0300 Message-Id: <1527079981-11179-1-git-send-email-ilialin@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [v11] * Split the series into domains [v9] * Addressed comments from Viresh and Russel about the error handling [v8] * Reordered the patch series into 4 groups * Addressed comments from Amit about the comments and commit messages * Addressed comments from Amit and Viresh about the resourses deallocation [v7] * Addressed comments from Viresh about resourses deallocation and DT compatible [v6] * Addressed comments from Viresh about: ** Comments style ** Kconfig bool instead of tristate ** DT and documentation style ** Resourses deallocation on an error ** Typos [v5] * Rebased * Addressed comments from Bjorn about SPDX style, functions and parameters naming * Addressed comments from Viresh DT properties and style, comments style, resourses deallocation, documentation placement * Addressed comments from Sricharan about unnessesary include * Addressed comments from Nicolas * Addressed comments from Rob about the commit messages and acks * Addressed comments from Mark [v4] * Adressed all comments from Stephen * Added CPU regulator support * Added qcom-cpufreq-kryo driver [v3] * Rebased on top of the latest PLL driver changes * Addressed comment from Rob Herring for bindings [v2] * Addressed comments from Rob Herring for bindings * Addressed comments from Mark Rutland for memory barrier * Addressed comments from Julien Thierry for clock reenabling condition * Tuned the HW configuration for clock frequencies below 600MHz SOC (1/15): Extracts the kryo l2 accessors driver from the QCOM PMU driver Clocks (2/15-9/15): This series adds support for the CPU clocks on msm8996 devices. The driver uses the existing PLL drivers and is required to control the CPU frequency scaling on the MSM8996. Ilia Lin (6): soc: qcom: Separate kryo l2 accessors from PMU driver clk: Use devm_ in the register fixed factor clock clk: qcom: Add CPU clock driver for msm8996 dt-bindings: clk: qcom: Add bindings for CPU clock for msm8996 clk: qcom: cpu-8996: Add support to switch below 600Mhz clk: qcom: Add ACD path to CPU clock driver for msm8996 Rajendra Nayak (2): clk: qcom: Make clk_alpha_pll_configure available to modules clk: qcom: cpu-8996: Add support to switch to alternate PLL .../devicetree/bindings/clock/qcom,kryocc.txt | 17 + drivers/clk/clk-fixed-factor.c | 2 +- drivers/clk/qcom/Kconfig | 9 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/clk-alpha-pll.c | 1 + drivers/clk/qcom/clk-alpha-pll.h | 6 + drivers/clk/qcom/clk-cpu-8996.c | 510 +++++++++++++++++++++ drivers/perf/Kconfig | 1 + drivers/perf/qcom_l2_pmu.c | 90 +--- drivers/soc/qcom/Kconfig | 3 + drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/kryo-l2-accessors.c | 56 +++ include/soc/qcom/kryo-l2-accessors.h | 12 + 13 files changed, 642 insertions(+), 67 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/qcom,kryocc.txt create mode 100644 drivers/clk/qcom/clk-cpu-8996.c create mode 100644 drivers/soc/qcom/kryo-l2-accessors.c create mode 100644 include/soc/qcom/kryo-l2-accessors.h -- 1.9.1