From patchwork Mon Mar 7 12:25:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?SmlhLXdlaSBDaGFuZyAo5by15L2z5YGJKQ==?= X-Patchwork-Id: 12771758 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 15FB8C433EF for ; Mon, 7 Mar 2022 12:42:24 +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:References:In-Reply-To: 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: List-Owner; bh=tNONA9j4f0SwFKqW9p1blyh5/AWX9QVG2nd5hHANU2M=; b=2U67LQlXXm81bo Hv9pXuOjpVGFYqHB/MyeNs4DBanVPsVa0YGGyojIVLJG61Fky/E2kalQBzR/bssWIVBGpqPduhQh+ GG4/nJV74a8xd8Gnc7ANTxnhflHC8IgcoHIFML+hpbZRBBPj0ZFMXfawhZcuJLEQk9ekt+kU+Vi5m oDSim07KLttphHwqfJWYQhZXGzz5TgaZcgqss6YrLEScr3Hh+o8SIMrhc8ROWcYQlsB/kc6VyG34E RnW2ryApM7sLxeySj333x45Qc7aAUFRNLRu5MIDOKgQBxYBWnFJw8X9jh7Wf0BhfGtDNXnaiyXZ6+ e2M/40SH+QlGXAdBbCog==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRCfX-0004AB-Iq; Mon, 07 Mar 2022 12:40:56 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRCX2-0000zm-9P; Mon, 07 Mar 2022 12:32:12 +0000 X-UUID: 39e64019ac8a45108e31626d1234b761-20220307 X-UUID: 39e64019ac8a45108e31626d1234b761-20220307 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1962515528; Mon, 07 Mar 2022 05:32:00 -0700 Received: from mtkexhb02.mediatek.inc (172.21.101.103) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 7 Mar 2022 04:26:27 -0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkexhb02.mediatek.inc (172.21.101.103) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 7 Mar 2022 20:26:26 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 7 Mar 2022 20:26:25 +0800 From: Tim Chang To: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , "Rob Herring" , Matthias Brugger , "Liam Girdwood" , Mark Brown , "Jia-Wei Chang" CC: , , , , , , , , , , , Jia-Wei Chang Subject: [PATCH 3/3] devfreq: mediatek: add platform data to support mt8186 Date: Mon, 7 Mar 2022 20:25:13 +0800 Message-ID: <20220307122513.11822-4-jia-wei.chang@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20220307122513.11822-1-jia-wei.chang@mediatek.com> References: <20220307122513.11822-1-jia-wei.chang@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220307_043208_399489_138B968E X-CRM114-Status: GOOD ( 10.86 ) 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 add specific platform data to support mt8186. Signed-off-by: Jia-Wei Chang --- drivers/devfreq/mtk-cci-devfreq.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/devfreq/mtk-cci-devfreq.c b/drivers/devfreq/mtk-cci-devfreq.c index 986f34689f5c..ade09794b404 100644 --- a/drivers/devfreq/mtk-cci-devfreq.c +++ b/drivers/devfreq/mtk-cci-devfreq.c @@ -439,8 +439,18 @@ static const struct mtk_ccifreq_platform_data mtk_platform_data = { .need_voltage_tracking = false, }; +static const struct mtk_ccifreq_platform_data mt8186_platform_data = { + .min_volt_shift = 100000, + .max_volt_shift = 250000, + .proc_max_volt = 1118750, + .sram_min_volt = 850000, + .sram_max_volt = 1118750, + .need_voltage_tracking = true, +}; + static const struct of_device_id mtk_ccifreq_machines[] = { { .compatible = "mediatek,mt8183-cci", .data = &mtk_platform_data }, + { .compatible = "mediatek,mt8186-cci", .data = &mt8186_platform_data }, { }, }; MODULE_DEVICE_TABLE(of, mtk_ccifreq_machines);