Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp776138lqt; Fri, 19 Apr 2024 10:02:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV7Gyqq9mXSFF5kVkJC4usgJuURUJHDoYJ8EB+XKornr5YBBIIPg6/ALdCdmXAEvk2h6une17KTTYAonaa1cn0km46MG8tuBChW3XZt+Q== X-Google-Smtp-Source: AGHT+IGvmpgxug7j39reowQMJErPv1B8KMbyOfbt+pXMjJgRvLLWUD4rZLZRNYMojY/s11itu1yp X-Received: by 2002:a05:6871:548:b0:233:378c:a06a with SMTP id t8-20020a056871054800b00233378ca06amr3115037oal.22.1713546002180; Fri, 19 Apr 2024 10:00:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713546002; cv=pass; d=google.com; s=arc-20160816; b=LY/caGBEvWDvmMMcD5qPTLGgH3pY8F3WQE5SqIN8KSg/DAEcnP5eTMXE2rlT/e5mLx lDKvJe594owoDDjfpY6JKw9wJXXhrudwqtJML/x0DLe+mhEIw2bjT8w2OVtSLXzOqCrU XB7ZY/uBhrpbbPTikzDSNVn2xVm63b2zfm4vNcm6lnIXNNsBy48sz1htOlFNeUDnZIAd bQ2EfarXCmPB1bLKt7hnoklrDB6H42/8+ri1+77i0xg0PvecfaowF0VC/S9ZI20imz+x zoOla2UpHHW0G4A+lXjxgxCMnCHKqAjRjwPNXQNx+D9MiqQw6++AIgVVbH15i0KQjKzE 6pKg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:to:from:date; bh=XvL6Vqns5mJ/WcZDsCmbSuGjXG3mnpsrxpCNXocM/GE=; fh=2Ru75x3jB9hFAs5cZknP2t8D+EFP9wVfPOaizEUMIzI=; b=l7s8Vr7FWEkAJZYqdI0AwEo2NQgHE5qX18waB7KcCEExBsOphGV0ycmRuIQ/ZhtB0N u2JWrFko4VMOeyMMRt1JifFTRKLyOBKqlmGFTb5khGR16BOCU7hfNBoRoms0DYVhGoMg uQsBZr4EvTWsrtmyiAmtQjrcrypwNq27rIqdENS5Sk4E+EcX9x1moe+1NENRPt+QRWwN ohgTh09UmF/EEMdBn/cy7FkFAS7dIVR0zdtB2YuWLbI8DAJegJuZdMnPSiLeQjF1ykPX yl3jBRgQmG1js2mnLCa527Be8eTEvFCYxLgkMqOyyg6l64/C9NnYnR+LHFp24dfloSfw L6YQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-151800-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151800-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k5-20020a633d05000000b005f802547237si1018131pga.711.2024.04.19.10.00.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 10:00:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151800-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-151800-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151800-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 39F35281DF0 for ; Fri, 19 Apr 2024 16:59:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E9E991386C2; Fri, 19 Apr 2024 16:59:24 +0000 (UTC) Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A89C4C63A; Fri, 19 Apr 2024 16:59:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.142.180.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713545964; cv=none; b=LQL5riu+q+stfSgxbFoGm8jmxHll6iubkGqy1X7GtVldx9c30Kv98U7ESqFFDJwKoDWEbgVI0T7OchJzIhWsYOe72NIiZdGcOGOqjWE5t6Dbtsvb3UHOT0Tc3cFNBqDgdg/cn/QHtRCfGWOxFl84bxCLBIj+tbBgHjMXXtZZRaM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713545964; c=relaxed/simple; bh=cCw3To0crIlEWMlxy5XePe+u1HZtbjc8kkBOUA1C/0I=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=V41cYB4/oFcn8BhlTg1NhiBojepwDynq/pBTn3u/6QDEUdOXEqEx4WjMpgSKTd5D7f2SBsmWqUJHzLxKazLoh2UZOiVvEi+LQxW2v9wmFwmlyrSG7w9/sBKCqrIWVqwUddzx2W6oEUnAsNMH3yDnY4mxvJs7lDfXJdcknjMjt/U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.client-ip=185.142.180.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.97.1) (envelope-from ) id 1rxra0-000000007Nq-26mP; Fri, 19 Apr 2024 16:59:16 +0000 Date: Fri, 19 Apr 2024 17:59:07 +0100 From: Daniel Golle To: "Rafael J. Wysocki" , Viresh Kumar , Matthias Brugger , AngeloGioacchino Del Regno , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH] cpufreq: mediatek: Add support for MT7988A Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline From: Sam Shih This add cpufreq support for mediatek MT7988A SoC. The platform data of MT7988A is different from previous MediaTek SoCs, so we add a new compatible and platform data for it. Signed-off-by: Sam Shih --- drivers/cpufreq/mediatek-cpufreq.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/cpufreq/mediatek-cpufreq.c b/drivers/cpufreq/mediatek-cpufreq.c index a0a61919bc4c..518606adf14e 100644 --- a/drivers/cpufreq/mediatek-cpufreq.c +++ b/drivers/cpufreq/mediatek-cpufreq.c @@ -707,6 +707,15 @@ static const struct mtk_cpufreq_platform_data mt7623_platform_data = { .ccifreq_supported = false, }; +static const struct mtk_cpufreq_platform_data mt7988_platform_data = { + .min_volt_shift = 100000, + .max_volt_shift = 200000, + .proc_max_volt = 900000, + .sram_min_volt = 0, + .sram_max_volt = 1150000, + .ccifreq_supported = true, +}; + static const struct mtk_cpufreq_platform_data mt8183_platform_data = { .min_volt_shift = 100000, .max_volt_shift = 200000, @@ -740,6 +749,7 @@ static const struct of_device_id mtk_cpufreq_machines[] __initconst = { { .compatible = "mediatek,mt2712", .data = &mt2701_platform_data }, { .compatible = "mediatek,mt7622", .data = &mt7622_platform_data }, { .compatible = "mediatek,mt7623", .data = &mt7623_platform_data }, + { .compatible = "mediatek,mt7988a", .data = &mt7988_platform_data }, { .compatible = "mediatek,mt8167", .data = &mt8516_platform_data }, { .compatible = "mediatek,mt817x", .data = &mt2701_platform_data }, { .compatible = "mediatek,mt8173", .data = &mt2701_platform_data }, -- 2.44.0