Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2842585rdb; Tue, 12 Sep 2023 14:00:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGOGXFBLyXZQjuDh4hcGtAhk0RMSkC0NqwewbsKFvdUh3vzHBaDw+Vop03Z0l3dgF6/920a X-Received: by 2002:a05:6a21:3289:b0:137:3eba:b81f with SMTP id yt9-20020a056a21328900b001373ebab81fmr498423pzb.3.1694552410292; Tue, 12 Sep 2023 14:00:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694552410; cv=none; d=google.com; s=arc-20160816; b=D36Rsh0akYXDGDunrQlj4mqTf5uplg2H8wpAnwPSOHpm1weXEyCdza7laaFB0rrViM U1XUkSiBfQjVhj8vpYBI22rAGSUvrkFZeZ0Puh66zLAU1zeBkdeolzV+iWnXNIPgMhQy U7NZCJJxZYIpXkdN+GkZZMOlrUQW/YxxcmGjCY1MxsvLA0y6WQS9h0lgjSl2QUwtV38h NApELyQpajuYgDbOIh2YbfrJMqrfYR6lutsNwqIRi4FeYPzc2PsKw2MdQVxRGRUHX+GN km5vJGh5wj41loG8VkR1B6vJXcJ8jLwFC8TT8z0jSNfkZ1g6RcZNg+JxgPMkKCM6mM72 G7Iw== 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 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernkonzept.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id fb9-20020a056a002d8900b0068fb5cbcef2si5388652pfb.117.2023.09.12.14.00.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 14:00:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; 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 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 2E4E8850FACD; Tue, 12 Sep 2023 03:00:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233256AbjILKAJ (ORCPT + 99 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 (howler.vger.email [0.0.0.0]); Tue, 12 Sep 2023 03:00:11 -0700 (PDT) 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, -- Stephan Gerhold Kernkonzept GmbH at Dresden, Germany, HRB 31129, CEO Dr.-Ing. Michael Hohmuth