From patchwork Tue Nov 1 18:09:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vibhore Vardhan X-Patchwork-Id: 13027308 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1C471C433FE for ; Tue, 1 Nov 2022 18:10:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=SZ0fXIKJDSx8nqVL6kyFYd7z8cBrAqZ1t8Ul6eTE1J4=; b=x9n2FWvdai3vui T88bqsSc35/t0aXfXInpjrgjz+aE9bAkfj0LSXnkNfyi88BKE0K3cZVzzVER9CDEsJR/RNUZeXQ47 MI/tZhNPNMjHh2KXKkjsmIIWAMpqRHGSA98PKBXRfn6iFu1Y51wEsFBmrzHpobgtHzXpdsvxcsWgw VSuOu/IqWcXoo77jEw/oce78qCVu27TQXvI55MbwdEpJiI0pEpQEwqE3RVsjmr8dI3FGPmFdneNJ6 jkWZqKFZmAuNbxckCBUnUn2yPhK6U/kgrrxarFZWROUAANi9RmfWc5/pFVWeR0v4I3K/ha/TxcCJE iiCG4JjqKQXmY+FBU9XQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1opvhv-006QtK-NE; Tue, 01 Nov 2022 18:09:51 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1opvhk-006Qoy-BI for linux-arm-kernel@lists.infradead.org; Tue, 01 Nov 2022 18:09:41 +0000 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 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221101_110940_497166_BB9874D2 X-CRM114-Status: GOOD ( 12.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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(-)