From mboxrd@z Thu Jan 1 00:00:00 1970 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 C22CCC4332F for ; Tue, 1 Nov 2022 18:09:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231145AbiKASJv (ORCPT ); Tue, 1 Nov 2022 14:09:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230003AbiKASJo (ORCPT ); Tue, 1 Nov 2022 14:09:44 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57DF01D0CE; Tue, 1 Nov 2022 11:09:42 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2A1I9Z8v032054; Tue, 1 Nov 2022 13:09:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1667326175; bh=wXYET1iMn/eOAr6mX4Ms8nydye9Z4mE0KfitDpXsojU=; h=From:To:CC:Subject:Date; b=bQ7MYT49zOWQJu2MpBFbJxXbgPZEOqh6lkIpvvDgnTaEDXPNGF85vb8o1je2LE2wu 7BITIA8ISA3Ab5nwkm6J0eJQvd6oj0UUF2VgemBkuauhrau/PjmDy/ZHwEsiUHAiIg nDhE1InVVTXlIxZUPHAE4Ntzl92W/P0ulee7kueQ= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2A1I9Z9c017615 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 1 Nov 2022 13:09:35 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Tue, 1 Nov 2022 13:09:35 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6 via Frontend Transport; Tue, 1 Nov 2022 13:09:34 -0500 Received: from maitri.dhcp.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2A1I9ZVl008602; Tue, 1 Nov 2022 13:09:35 -0500 From: Vibhore Vardhan To: , , , , , , CC: , , , Subject: [PATCH RESEND 0/5] cpufreq: ti-cpufreq: Enable AM625 CPUFreq Date: Tue, 1 Nov 2022 13:09:30 -0500 Message-ID: <20221101180935.139268-1-vibhore@ti.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Apologies, resending because I botched the label in previous series. Please reply to this series rather than the one sent previously. Hi, This series enables CPUFreq for AM625. This version is a fixup and rebase of the patch series by Dave Gerlach on v6.1-rc3 [1]. It updates the ti-cpufreq driver to support parsing of the speed grade value out of the JTAG_USER_ID register and adds necessary support code to use cpufreq-dt. The operating-points table that gets added support 200,400,600,800 for all variants and then 1GHz for the S Speed grade only and 1.25 for the T Speed grade only. 1.4GHz has been added in board specific dts file as it requires VDD_CORE to be at 0.85V. The latency between pre and post frequency transition was measured in CPUFreq driver for all combinations of OPP changes. The average value was selected as overall clock-latency. Tested on am62-sk board using manual frequency changes and then reading back frequency with k3conf, and this shows matching frequency to what was set. This should not impact existing K3 platforms that do not have operating points table defined. Regards, Vibhore [1] https://github.com/dgerlach/linux-pm/tree/v5.18/am62x-cpufreq Dave Gerlach (4): cpufreq: ti-cpufreq: Add support for AM625 cpufreq: dt-platdev: Blacklist ti,am625 SoC arm64: dts: ti: k3-am625: Introduce operating-points table cpufreq: ti: Enable ti-cpufreq for ARCH_K3 Vibhore Vardhan (1): arm64: dts: ti: k3-am625-sk: Add 1.4GHz OPP arch/arm64/boot/dts/ti/k3-am625-sk.dts | 9 +++++ arch/arm64/boot/dts/ti/k3-am625.dtsi | 51 ++++++++++++++++++++++++++ drivers/cpufreq/Kconfig.arm | 4 +- drivers/cpufreq/cpufreq-dt-platdev.c | 1 + drivers/cpufreq/ti-cpufreq.c | 36 ++++++++++++++++++ 5 files changed, 99 insertions(+), 2 deletions(-) -- 2.34.1