Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp846714yba; Wed, 3 Apr 2019 22:10:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxSckyTlJi/8teZ+zUPesnl6Z8TidkF6Z+D30H79QURAjk2ylbbqWMHbacwbLgacznTErCI X-Received: by 2002:a63:3d85:: with SMTP id k127mr3831418pga.152.1554354635700; Wed, 03 Apr 2019 22:10:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554354635; cv=none; d=google.com; s=arc-20160816; b=SMGW46Zt9hN7qfdL0l6xYm+8ytmgXnYHHO/hbkU7OZf03hj1ZjS2a1USM/knhBF71h 2HUQ+oRf0yTWKrLyyFBoOHesMCIHBE6rIcWA5VSKhe8M38oz0mDCfwosPPRX2WtTnO3C YfqPfigGEG9RoMM6ENSlvkHjoz8P2mLyFs8GlS5C3QVkOD+h7qua2qKJbEEH5Fi5k/4T IsslFASQToKKvR4FszDaujhpc02ll3fheUX+ByZKD33QotgqzdnPt4tbeRXjwB8pTRGG ZQl4lui7DN8BDn0nsdl9wPgAPltlEp1vI2FWl5pZCU+cicMGRzvwZGL+kzaEaJbWlv0K fSjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=RmLw52QFU499QKVl87l87i+PamhSMMPdT6L4OvZV0xs=; b=BOnC35jkW9inVzFBx+XJEUEA2jRhZrYXZS7o5Wc6HSeIGTND4VYIYENJJY+eSa2ymR IwamnG/rOXsOA6Qm17QQ8NPRV92XO6k9O6aiM5nD0HrIJebJ+D5HiA+bvM4P3SfvQYYM G9pDo8S7HSfIlUhyHM3wUq+DdHtg9IJlRZ7kePIUSc0MzOuETRow0LkZUNuspy+3VgLK ZOdRphZueZFrzu4OtZTIGTxz02s0+mBKPnML3Orv8ux2ztZ279Q5VaE1tmZK/mEYGD/T XYhkJLkBMaozyZILGahg06POYnXMY/dq7kYiOgs07fk+gQN8aOHyc+LirkxNmFqRjJY8 ss6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s74VQzUV; 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=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 y8si15261996pll.313.2019.04.03.22.10.20; Wed, 03 Apr 2019 22:10:35 -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=@linaro.org header.s=google header.b=s74VQzUV; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726058AbfDDFJo (ORCPT + 99 others); Thu, 4 Apr 2019 01:09:44 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:41130 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725914AbfDDFJo (ORCPT ); Thu, 4 Apr 2019 01:09:44 -0400 Received: by mail-pl1-f194.google.com with SMTP id d1so541769plj.8 for ; Wed, 03 Apr 2019 22:09:44 -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:mime-version :content-transfer-encoding; bh=RmLw52QFU499QKVl87l87i+PamhSMMPdT6L4OvZV0xs=; b=s74VQzUV6jI0Up6hSBwt3N5+5HN5nhbt6HGjVf4SCrSEAZReV6gHPJoU7RHozRreXc lEsT8cR2bdDQsJeQOm9v5PtFp+vu/hXbw4Qb2gAbmRNPkCuIcp4E8htdEm6NLVMT8YOq EDiUySLXP69T8O9zIphOwFrJXkzbIcFzWIIowjJZAnZs96/MZUk3p2NFJ0T9OSEkiyKw MIV0e3shFgOPYTHVay9iqdB5I/qaAnrAaN9mm20rfvRomG+9+YMDOcKkVDgoPYwLSA1q kcsy1WazMxNReWyKRzx1NL3yvmFQJozYDVljgudNVhV2RnudxyMsY7mG7GNIKsYBeRT0 l0KQ== 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:mime-version :content-transfer-encoding; bh=RmLw52QFU499QKVl87l87i+PamhSMMPdT6L4OvZV0xs=; b=tUbyoMBJ1da/SzH5S0TOA9SrgxXqIkz8xHOlQHMA1J5Fph+ukaa8dExjEq/Bs5tCFK MAgy1uNEkG8D/p4UlkXteIzhACYMG6geCW74Q9py/7+ZV1hlC7ohaOGHa/94UnLUS9fP BNFVb4GyCPEofSbZGUVCe0vcRmsWQ4E6OVwShgmU3LZeZ/ctqBYmAVfN2T+acZCDRqbf OcO3USVA8IwCmYSkkZ+3OmKeJpH/quZxTlxHR9Hgjyi2ECvh17jdJtE4q9KIOGJOKrkL 7CVcsaGUlr1RqpP0uh6mx8uNsU9cLjAKWQXdAr0ikjsiUmHgULWKZBUbs2n4YwvS5kFY Mkxw== X-Gm-Message-State: APjAAAUxvG01K4WK+uFyPDweW9X9WHCzbQSa+zN6gBl9yHf9/bmssMJj T2l7FMC+IfjfteRBhmqCChLnEg== X-Received: by 2002:a17:902:9a83:: with SMTP id w3mr4256626plp.241.1554354583598; Wed, 03 Apr 2019 22:09:43 -0700 (PDT) Received: from centauri.imgcgcw.net ([147.50.13.10]) by smtp.gmail.com with ESMTPSA id a129sm50589089pfa.152.2019.04.03.22.09.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Apr 2019 22:09:42 -0700 (PDT) From: Niklas Cassel To: linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: jorge.ramirez-ortiz@linaro.org, Niklas Cassel , devicetree@vger.kernel.org Subject: [RFC PATCH 0/9] Add support for QCOM Core Power Reduction Date: Thu, 4 Apr 2019 07:09:21 +0200 Message-Id: <20190404050931.9812-1-niklas.cassel@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a first RFC for Core Power Reduction (CPR), a form of Adaptive Voltage Scaling (AVS), found on certain Qualcomm SoCs. Since this is simply an RFC, things like MAINTAINERS hasn't been updated yet. CPR is a technology that reduces core power on a CPU or on other device. It reads voltage settings from efuses (that have been written in production), it uses these voltage settings as initial values, for each OPP. After moving to a certain OPP, CPR monitors dynamic factors such as temperature, etc. and adjusts the voltage for that frequency accordingly to save power and meet silicon characteristic requirements. This driver is based on an RFC by Stephen Boyd[1], which in turn is based on work by others on codeaurora.org[2]. [1] https://lkml.org/lkml/2015/9/18/833 [2] https://www.codeaurora.org/cgit/quic/la/kernel/msm-3.10/tree/drivers/regulator/cpr-regulator.c?h=msm-3.10 Jorge Ramirez-Ortiz (3): drivers: regulator: qcom_spmi: enable linear range info cpufreq: qcom: support qcs404 on nvmem driver cpufreq: Add qcs404 to cpufreq-dt-platdev blacklist Niklas Cassel (5): cpufreq: qcom: create a driver struct dt-bindings: opp: Add qcom-opp bindings with properties needed for CPR dt-bindings: power: avs: Add support for CPR (Core Power Reduction) power: avs: Add support for CPR (Core Power Reduction) arm64: dts: qcom: qcs404: Add CPR and populate OPP tables Sricharan R (1): cpufreq: qcom: Re-organise kryo cpufreq to use it for other nvmem based qcom socs ...ryo-cpufreq.txt => qcom-nvmem-cpufreq.txt} | 16 +- .../devicetree/bindings/opp/qcom-opp.txt | 24 + .../bindings/power/avs/qcom,cpr.txt | 119 ++ arch/arm64/boot/dts/qcom/qcs404.dtsi | 152 +- drivers/cpufreq/Kconfig.arm | 4 +- drivers/cpufreq/Makefile | 2 +- drivers/cpufreq/cpufreq-dt-platdev.c | 1 + ...om-cpufreq-kryo.c => qcom-cpufreq-nvmem.c} | 197 +- drivers/power/avs/Kconfig | 15 + drivers/power/avs/Makefile | 1 + drivers/power/avs/qcom-cpr.c | 1777 +++++++++++++++++ drivers/regulator/qcom_spmi-regulator.c | 7 + 12 files changed, 2234 insertions(+), 81 deletions(-) rename Documentation/devicetree/bindings/opp/{kryo-cpufreq.txt => qcom-nvmem-cpufreq.txt} (97%) create mode 100644 Documentation/devicetree/bindings/opp/qcom-opp.txt create mode 100644 Documentation/devicetree/bindings/power/avs/qcom,cpr.txt rename drivers/cpufreq/{qcom-cpufreq-kryo.c => qcom-cpufreq-nvmem.c} (52%) create mode 100644 drivers/power/avs/qcom-cpr.c -- 2.20.1