Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp36614imm; Thu, 14 Jun 2018 14:56:28 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKrgL1A620xnBdbsNxHjAcg5S9M9ReAKc1UgdHbhAsP+JDKoFZ+lfB0+U2B3BFofd9jeamm X-Received: by 2002:a62:db05:: with SMTP id f5-v6mr11122047pfg.123.1529013388409; Thu, 14 Jun 2018 14:56:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529013388; cv=none; d=google.com; s=arc-20160816; b=z7RXyHeXFthbrkzcGQFCh+vYM/r1FUDi8CEB35CLrV4WvsyGHhO7InwKie2M8Hzm0s YLByq9GPurTXzdhjtB2IuyS4ddvrV1CJADptgnuhquuGW+dwsdl2tQZPEp6F3rOREwY/ nSvSb2dBs/3ktzjvuDMzh91sgfah6h1hDSRkLzgYFpAIsrjPtxh3q8oxeKmyoRGE26BS eKuSrPelkuzFazaOUl17Gh1tt8b2QgBaI6TwGNrRIlEWbCehmDArK7LKkQLh8KkUdcNW UuUw7B34veIHnyN8EjcNOupX9JR1yR+gM2EsJOeQlEQIeUlmK9rBeVQRDHMUsgYwMS7z cwJA== 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=Kc8qla+tTdf6nd1HGdNbFuVptOgJFtXfSV7Ss0PQcj0=; b=BKXrE1+GyfMkrPeLlf+QhfjGQuHBiatdsfKgkY35Gza5onOUDDIJmk1kIuhA+64fBI P8vy4Br5ei+dx2ksMYhY/9zltsgwrba/pbeuZ9Pw+Pm95a8DigUJ4hi7gwbqPOmMuj85 IiOlhHPFq7RKVmvmX2MZMVsZf9xU77eghg/OR5RlB0SnXjLaNeHvWeAeTFVEMPi/peCn L2nM5yN3+zdqPG1tjF01ZN3Srdx7yaQSXx+688ZcQI0PR56l9OHLSNAcU2q0SkzGP7c+ 9CA5vTivkVTA73pDW7lx/MSgQyKyM6vh3hIhQux8udNFG0AzrgriZYm28Q1Y+aEr9cCa lZUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DhbgrvMp; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2-v6si6401476plo.42.2018.06.14.14.56.14; Thu, 14 Jun 2018 14:56:28 -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=@gmail.com header.s=20161025 header.b=DhbgrvMp; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964880AbeFNVzP (ORCPT + 99 others); Thu, 14 Jun 2018 17:55:15 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:54571 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755513AbeFNVzH (ORCPT ); Thu, 14 Jun 2018 17:55:07 -0400 Received: by mail-wm0-f68.google.com with SMTP id o13-v6so391822wmf.4; Thu, 14 Jun 2018 14:55:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Kc8qla+tTdf6nd1HGdNbFuVptOgJFtXfSV7Ss0PQcj0=; b=DhbgrvMpPLhC6yypfBVQQBjpa9RA8qzIyIwTGp/s4Nkot2lbqoBKS90qFmvesHZWAH M4kYFM+4wpWnoJfavEZhvWVTwB/dChhBKNTsxt/S41bUegEsazykjQpQ6HzaG3VaFnJZ rLia//OKfiqFhPSfpkxGouIavKToSbMsqe7TLq85lHturvLKD4F2V7246agb12czwFZP L1QdrbQhqqo2ojVNNERGgzKhrGCNEi/cOQCg+7onptjbB9dE/Cv3ljZeyUI1FsnxJfGW 7VOrBxeZ+TZOx0NedU1trKi3wU2O6Atz3hXE4LqJT2FCEU8SnzDbIpueSCmPJ5UabeZc DEGA== 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=Kc8qla+tTdf6nd1HGdNbFuVptOgJFtXfSV7Ss0PQcj0=; b=JT/GW1xfexDLEWUcAjvCIYopSn1I18VwqwuEfakqAR7sKZUvfb8a3A/7bR0nQhRQLg slZJYiwmv5SZaKx+gHJZCR9s9YH/ZQ+Atzv1kSKPrq3BzmdxMXadNiAG+ENob0Fup7/M md5P79Jl8MDHr9PoRxsV//f4VnhZ0H0o71GX28+Gxz+BcDE1d2rrF4MND5BXQX9RBOrC aIb39ieEAxSVe8oo+a2vmQJQ7gCKiVgHk9PmXXbfHS/Cmv+Wdx05IgXbsTRKlY9UDgHE jxZu47GVXlmNd02xZRymp23X8+vQdxOdB1+bvtRXsXozA+jhL8xJF45SWU+eWvc4ZVd8 ScdA== X-Gm-Message-State: APt69E0jR2OzjhO7eUPWnMpLksLEchUa0oK/CAtY8oCb6zL6n8KyYNSP VUa/QGpAOvmAypjgWte8PnE= X-Received: by 2002:a1c:3bc4:: with SMTP id i187-v6mr3340901wma.57.1529013305181; Thu, 14 Jun 2018 14:55:05 -0700 (PDT) Received: from gcc67.tetaneutral.net (gcc67.tetaneutral.net. [2a03:7220:8080:c00::1]) by smtp.gmail.com with ESMTPSA id i76-v6sm285367wmd.20.2018.06.14.14.55.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Jun 2018 14:55:03 -0700 (PDT) From: ilia.lin@gmail.com To: ilia.lin@gmail.com Cc: Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Andy Gross , David Brown , Will Deacon , Ilia Lin , Amit Kucheria , 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 Subject: [PATCH v13 0/8] Clock for CPU scaling support for msm8996 Date: Thu, 14 Jun 2018 23:53:47 +0200 Message-Id: <20180614215358.11264-1-ilia.lin@gmail.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ilia Lin [v13] * Rebased [v12] * Addressed the kbuild fail on arm architecture [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 (5): 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: Add ACD path to CPU clock driver for msm8996 Rajendra Nayak (3): clk: qcom: Make clk_alpha_pll_configure available to modules clk: qcom: cpu-8996: Add support to switch to alternate PLL clk: qcom: cpu-8996: Add support to switch below 600Mhz .../devicetree/bindings/clock/qcom,kryocc.txt | 17 + drivers/clk/clk-fixed-factor.c | 2 +- drivers/clk/qcom/Kconfig | 10 + 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, 643 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 -- 2.11.0