From patchwork Sun Jul 2 17:50:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13299362 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9BF06C001B1 for ; Sun, 2 Jul 2023 17:50:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229837AbjGBRuu (ORCPT ); Sun, 2 Jul 2023 13:50:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229816AbjGBRuu (ORCPT ); Sun, 2 Jul 2023 13:50:50 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FBD1E60 for ; Sun, 2 Jul 2023 10:50:48 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-4f4b2bc1565so5830134e87.2 for ; Sun, 02 Jul 2023 10:50:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688320246; x=1690912246; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=p7QLIcJhGf6roTEV5uHjocZCiVQtMN4WpmTTSqh8Iu8=; b=IutP9H0Sl0plLlVVtqrMV2uur1iEdtzwdcHgeEwjPOZA93yfivwNa7PnYmEgVZ5zq/ bULbRNBr9UG1Xz1uDbBLrEk8oSHXOKusr4gintsV6013Zt2DGwtwL3eA7c4/B3cUQeEd l8xCrEiK3AL9MiOgMZpCZzbod9Jq7Ty5YFHiJG7vYhlOI80DLiuMiYDqUpMBZQxU/m9g KV6XmgON6zvKZsuHPeUQo2u5VOSjVfEe7HEBO11ElnRjnGBYizrI+nTmUMrSsuaEGTdk A28ylp67+Rb0SHXIWuGbdayFIQbjS3yVuQ+U4Ual6EUtJRJh4DhHE9ooKLRwJiXJ2VHq RlyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688320246; x=1690912246; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=p7QLIcJhGf6roTEV5uHjocZCiVQtMN4WpmTTSqh8Iu8=; b=S7VinoOsPxbemvGaCQuzQBksTBYJ33co1rIa7m331EY9H6kBkiWBOk+OX0mzypboHF ee10CfHS9NzATDLBs4KevhTsFclcZvZQhxcpkzw3QeM9twTJjlJKifg9sn6sZTUIfmNH tXijOJ1v0gtOfjPMEyJvyse8tdl+KmKWeB155Zem/Dd7PikaDqD76Chv9wIlpOsqI7L+ K8sRA0PJZJQlJNzvSxULPdD03Oi9HMKu6BdFzbPZbDNyiIUTe8mtuGGcfahpMX/PIJdb bhDJryOShB2PMWSrs5XtX3iiOromVoOhjANQo7nFB6Bcntm1WOuA+KFGhY5lr8xOwo0u bVHA== X-Gm-Message-State: ABy/qLY+Aesnfm+2qyWbWN1XqpUAY88e9Ja6E29a/n9fF2sFIRcHXZB5 9ZaufWijM/AYsbT4UFLNQXifGw== X-Google-Smtp-Source: APBJJlEEGJ19yefzJjPgvbVD3Vwt8o0hpwITPKpxhrZ6qfTncXtXmPc/2czBK22ojn0BWVp4pHLe1g== X-Received: by 2002:ac2:4a66:0:b0:4fa:9817:c1da with SMTP id q6-20020ac24a66000000b004fa9817c1damr4180775lfp.21.1688320246289; Sun, 02 Jul 2023 10:50:46 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id d1-20020ac24c81000000b004fb759964a9sm3354130lfl.168.2023.07.02.10.50.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jul 2023 10:50:45 -0700 (PDT) From: Dmitry Baryshkov To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson , Konrad Dybcio , Ilia Lin , Viresh Kumar , Nishanth Menon , Stephen Boyd , Michael Turquette , "Rafael J. Wysocki" , Georgi Djakov Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-clk@vger.kernel.org, Christian Marangi , Stephan Gerhold Subject: [RFC PATCH 0/8] ARM: qcom: msm8960: support CPU frequency scaling Date: Sun, 2 Jul 2023 20:50:37 +0300 Message-Id: <20230702175045.122041-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org This is an RFC (or maybe it should be RFT), as I did not test this on the actual hardware. The actual core and L2 setup is mostly the same as APQ8064, so this is just a port of APQ8064 code and adaptation for small MSM8960 peculiarities. Note, msm-3.4 had separate optional AVS code for MSM8960, but as I don't have the actual hardware, it is left untouched for now. Dependencies: [1]. [1] https://lore.kernel.org/linux-arm-msm/20230702174246.121656-1-dmitry.baryshkov@linaro.org/ Dmitry Baryshkov (8): dt-bindings: nvmem: qfprom: add compatible for MSM8960 cpufreq: qcom-nvmem: enable core voltage scaling for MSM8960 cpufreq: qcom-nvmem: provide vmin constraint for early Kraits ARM: dts: qcom: msm8960-cdp: constraint cpufreq regulators ARM: dts: qcom: msm8960-samsung-expressatt: constraint cpufreq regulators ARM: dts: qcom: msm8960: add Krait clock controller ARM: dts: qcom: msm8960: add L2 cache scaling ARM: dts: qcom: apq8064: add simple CPUFreq support .../bindings/nvmem/qcom,qfprom.yaml | 1 + arch/arm/boot/dts/qcom/qcom-msm8960-cdp.dts | 9 +- .../qcom/qcom-msm8960-samsung-expressatt.dts | 9 +- arch/arm/boot/dts/qcom/qcom-msm8960.dtsi | 289 +++++++++++++++++- drivers/cpufreq/qcom-cpufreq-nvmem.c | 69 ++++- 5 files changed, 370 insertions(+), 7 deletions(-)