From patchwork Tue Sep 12 09:40:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 13847 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp382981vqx; Tue, 12 Sep 2023 05:54:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHG18QHlAQIT5KQ3L7c5fcI9lEA3jm7HY0wzzDOFVXW+FYf89wbxTCC1jEWNQjwTax0cxFf X-Received: by 2002:a05:6a20:4282:b0:157:1b5:61ce with SMTP id o2-20020a056a20428200b0015701b561cemr5826235pzj.4.1694523241563; Tue, 12 Sep 2023 05:54:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694523241; cv=none; d=google.com; s=arc-20160816; b=B0jOPbdmR7dDUwxBvmDUx9wYY1aYy7rjjWsc3w82Jf6lErzftTq88aA6YZ5LSbT4cc 5CC45HUTuTLy2kcFb4lr7qthgGkD6/u4kAVvlflAyUELRvXSgPaAT83daBCzfOIn9a5+ Qmty+kCmUwDpSZj1/4FmTsN99OXkfZtBFCvGi7uoobdbmwI3PUAo5MxAVsjFQjazlJwC achOB8tvjaOTo2pv+L7SII1aDYb8ELxrS6H7VhQmO01K7VlKo26LsaHQB+lnGlQHu+8Z 4+YUqtbCZ73XlnLkvOO9T3w+/+NUInA95qshre50aKXlbqMQAyWAqbQJTF1MMxZ/6/2e raMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=a+mMID1sDPcfh9ozAJ1YUGCRnHkjo3zaDLTz6xqF7LI=; fh=6dWPOgLc94d6Vbu+0sy5egZNGUkJgOuUvx9BC4aRyvI=; b=Y4tNIqtK0DaBohGazA3CXMtjkfxm0jmoYDkU7q4K87frj1+ajuCTHs3USbQcb4TnF4 /RDbg7eMFrXtDERFvyOJwji3Ry8/BHfhJ2FzsPuLxMi4r67bUJQpXQdRrhaaBwv4HbOZ 5d6tgZDKVVfdEWCXQA6453BfzQlJll3wETFqTeYiYsp6bMUGNlnwHPMv27ylOtdBZsfk b8va8ItPrVanMLNqYBMq8DRmratTsokjlf+gAZgzFNeDnzxHp7NjyrC8fYg6ZWY/ukOC om7oOh4hS3mANLvV0nsJpb8IDqA3bIemFHcswxXHiCZvBt4N8Zk69f+LX5BvqREm8EK/ 7eXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernkonzept.com header.s=mx1 header.b=e9ebnOlO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernkonzept.com Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id bu3-20020a056a00410300b0068c7033a5f5si7824424pfb.74.2023.09.12.05.54.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 05:54:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernkonzept.com header.s=mx1 header.b=e9ebnOlO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernkonzept.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 385618250264; Tue, 12 Sep 2023 03:00:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233340AbjILKAJ (ORCPT + 37 others); Tue, 12 Sep 2023 06:00:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233316AbjILKAG (ORCPT ); Tue, 12 Sep 2023 06:00:06 -0400 X-Greylist: delayed 1167 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 12 Sep 2023 03:00:02 PDT Received: from mx.kernkonzept.com (serv1.kernkonzept.com [IPv6:2a01:4f8:1c1c:b490::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1ECCE6C; Tue, 12 Sep 2023 03:00:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kernkonzept.com; s=mx1; h=Cc:To:Content-Transfer-Encoding:Content-Type: MIME-Version:Message-Id:Date:Subject:From:References:In-Reply-To:Reply-To: Content-ID:Content-Description; bh=a+mMID1sDPcfh9ozAJ1YUGCRnHkjo3zaDLTz6xqF7LI=; b=e9ebnOlO6+tNLENF78E4Fqn2kN Cx5xxcl/iiiB6ta+U98RdY9usHt7Yaf2JzdvlLGWlRnuopGi1b+EoI1O78TM1ueCqyApmTdN3fYM5 H2HNnRyfmmU8e3KGmBbaU0yDX54cR/V5AEozU0M7X0UdSWGidq7xmrkbG2IFxGdL/J5TUkzx5Ad7c pfPpAw+dVo/MJgSmFPJZze9wjU6mF5IWtEovTn1XSTXbO8vhnsE1j2xWbk/s3cxgh8Ku9DWtn6FuO JpRlEl02BoZsQDc8Uz53TCYYLuio6Oa3zk3wkDs0Usexm+PC8WPZz3sX5CdmhVhDBAkCs9C8rRYmq p9J2yh+A==; Received: from [10.22.3.24] (helo=serv1.dd1.int.kernkonzept.com) by mx.kernkonzept.com with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) id 1qfzsj-0030Ws-03; Tue, 12 Sep 2023 11:40:29 +0200 From: Stephan Gerhold Subject: [PATCH 0/4] cpufreq: Add basic cpufreq scaling for Qualcomm MSM8909 Date: Tue, 12 Sep 2023 11:40:14 +0200 Message-Id: <20230912-msm8909-cpufreq-v1-0-767ce66b544b@kernkonzept.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAP4xAGUC/x3MQQqAIBBA0avIrBNMIbSrRIvImZqFZkoRSHdPW r7F/xUKZsYCo6iQ8ebCR2zoOwHrvsQNJftm0Eob5dQgQwnWKSfXdFHGU3oibaxHR2SgVSkj8fM fp/l9P5O3FpRhAAAA To: Viresh Kumar Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Ilia Lin , "Rafael J. Wysocki" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Ulf Hansson , Stephan Gerhold , stable@vger.kernel.org X-Mailer: b4 0.12.3 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 12 Sep 2023 03:00:20 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776836402925763223 X-GMAIL-MSGID: 1776836402925763223 Add the necessary definitions to the qcom-cpufreq-nvmem driver to support basic cpufreq scaling on the Qualcomm MSM8909 SoC. In practice the necessary power domains vary depending on the actual PMIC the SoC was combined with. With PM8909 the VDD_APC power domain is shared with VDD_CX so the RPM firmware handles all voltage adjustments, while with PM8916 and PM660 Linux is responsible to do adaptive voltage scaling of a dedicated CPU regulator using CPR. Signed-off-by: Stephan Gerhold --- Stephan Gerhold (4): cpufreq: qcom-nvmem: Enable virtual power domain devices cpufreq: dt: platdev: Add MSM8909 to blocklist dt-bindings: cpufreq: qcom-nvmem: Document MSM8909 cpufreq: qcom-nvmem: Add MSM8909 .../bindings/cpufreq/qcom-cpufreq-nvmem.yaml | 1 + drivers/cpufreq/cpufreq-dt-platdev.c | 1 + drivers/cpufreq/qcom-cpufreq-nvmem.c | 47 +++++++++++++++++++++- 3 files changed, 48 insertions(+), 1 deletion(-) --- base-commit: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d change-id: 20230906-msm8909-cpufreq-dff238de9ff3 Best regards,