From patchwork Wed May 19 16:25:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 12267905 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D90A1C433B4 for ; Wed, 19 May 2021 16:28:39 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5CB5961007 for ; Wed, 19 May 2021 16:28:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5CB5961007 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=7+cUT9g58bcFRo42J88AGxn8nlyQoLPzausqpl/RST0=; b=deqj46hQzYRthzVbdo4Gdm1m4D svf9fgZOLA8QST7g+b7sWSpXfXpcTN5LfsdKKi+GVLE65l1vWAb7j4FTTAqNGRSn+ZGw963YeAlzd MOW9I6mChBNrBs289P42yKYEg7kvlZtrnTTScww+7exYY7asJjwBLdeHEkCVvxpPOIHpt6K0inIeA Vw5ykpvQwooxNg/oUpoOIx8i13MrAOp+o+5gqDz4IoI+dZ7PhKpNAep4SkMswZ8oqAkTM3mzNFV1P xhCQQeMdn3bwAonSpluT41B8qxVY+5e+3t5sGbrB7Tz4oVNBaGUd/17+tZHs4trCqY9mv18OkFce5 /BsubI2w==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1ljP1E-004WWH-Eg; Wed, 19 May 2021 16:26:00 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ljP1B-004WVe-9c for linux-arm-kernel@desiato.infradead.org; Wed, 19 May 2021 16:25:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=h9ACoFyscr2mGx2hv7BWBvdkBNtd8ng9Fu2si46cdq4=; b=KBIN73J9cPcOcPLvk2+do3U0rx 5Wkrq3y4Mw41yQGYbdvSjAhLJvzxxSoULAp/cJc1ljFRt45kKNfkyh8insSxeDp+tZvc32P/gz9tT NxLltGkr0dcXkSYbTKwfK4efipzSszt8jhya6Gcy3XcDK26WpvWLFb8zh1nZq8+xFz6EZ+VXpn8bC wK3W7/irTTZE6eV6Q9RXvATwYPTro/1VUFFmUZEpQ/yP+4ru8ZE2vPdKFc6eBlBF2dlkikEoy3Is4 hWpbr6AiOuY3GBY27ShWdSsGZbj1pbs9Q7L97kwm9EnV6F0T3XXww6g4RDY9OX+uzBlOCkT5nLYlu 5EmD86rQ==; Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ljP18-00Fcyl-Q5 for linux-arm-kernel@lists.infradead.org; Wed, 19 May 2021 16:25:56 +0000 Received: by mail-wr1-x42b.google.com with SMTP id z17so14646805wrq.7 for ; Wed, 19 May 2021 09:25:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=h9ACoFyscr2mGx2hv7BWBvdkBNtd8ng9Fu2si46cdq4=; b=byisdwD/i5u3WtSKYw+sYWGk0u8xFD4aI4NdDxMw+ffgIcjDqEhv7ahv61jA6USQgk jm9vALBRIHhaWHsrnl4alI9tjghWi/KDqej7GJsI+Kh4+CiH0JVQT0LCLcEZJlSVxSxX jj3JoW++94xEI/00y2L7l5sdQNlHQsyE9iBR37drGXa3B+/DmIvmUTXJqrKzGH3GoeOw XAMQ1MECR83nnQKSRbgV7bTxboQM9oo/dUiqmRqnU1zBiQl1kBpBniegFK6NnaUyMYJs dGv3epgWNZMUAMRxznt6TtyULLsjNPeZZZZRIBCFCcBlAEE6+cO/T9jXmsp2Z9ceZfa7 EZ7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=h9ACoFyscr2mGx2hv7BWBvdkBNtd8ng9Fu2si46cdq4=; b=fYJVQmV27RLt99GwVrAGByCfX/hSmD4fcPJtGV8brW0EXEB+3nkZ/w12A+zm2SzOVg JbIUD7DW2oN5rqvsFnb30WEaMkPMfH7eoAsSeEyDU42A2+nqb5GHBgsb/znxMjYwcTey Xt6oamdu/3e3kyRbrzcY3HwjEK0pvtF05VN2QZZPaPXX1MRP0AvIt4vEdRcFkwUIVHT0 bwZ4yefFjDskVcqe88EwjZ13hAKI2SZch6mFanRe5sH4tLkXae4lzWl8MQux2FM7Idwp 8eA7j3zBLGuG7tZpYxhz1K8HHGSdey48BqTq8BgARLyPCHBkOGx6qAre52KZqKflUjjU zMGQ== X-Gm-Message-State: AOAM531AhTTMXJ9Lu6MesAxPXYl44Fv1z/GFg8oJOYKIGUMOtRgOInF/ vwZE0BP4tLlTyhuRwQxIHnEBUw== X-Google-Smtp-Source: ABdhPJwr3K6AGuoWpHTQgaEA3SUgfH1bxgCXJJ3IVhKq00yPr1NJM+0gcq90Ro1URVdiivdA8wZX8A== X-Received: by 2002:adf:e411:: with SMTP id g17mr15445759wrm.402.1621441553089; Wed, 19 May 2021 09:25:53 -0700 (PDT) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id k205sm5827724wmf.13.2021.05.19.09.25.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 May 2021 09:25:52 -0700 (PDT) From: Fabien Parent To: "Rafael J. Wysocki" , Viresh Kumar , Matthias Brugger Cc: mkorpershoek@baylibre.com, Fabien Parent , 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 mt8365 Date: Wed, 19 May 2021 18:25:50 +0200 Message-Id: <20210519162550.3757832-1-fparent@baylibre.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210519_092554_865823_10C7E90F X-CRM114-Status: GOOD ( 12.41 ) 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 compatible stirng for MediaTek MT8365 SoC. Add also the compatible in the blacklist of the cpufreq-dt-platdev driver. Signed-off-by: Fabien Parent --- drivers/cpufreq/cpufreq-dt-platdev.c | 1 + drivers/cpufreq/mediatek-cpufreq.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index 5e07065ec22f..d6fd821e3f5a 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -126,6 +126,7 @@ static const struct of_device_id blacklist[] __initconst = { { .compatible = "mediatek,mt8173", }, { .compatible = "mediatek,mt8176", }, { .compatible = "mediatek,mt8183", }, + { .compatible = "mediatek,mt8365", }, { .compatible = "mediatek,mt8516", }, { .compatible = "nvidia,tegra20", }, diff --git a/drivers/cpufreq/mediatek-cpufreq.c b/drivers/cpufreq/mediatek-cpufreq.c index f2e491b25b07..87019d5a9547 100644 --- a/drivers/cpufreq/mediatek-cpufreq.c +++ b/drivers/cpufreq/mediatek-cpufreq.c @@ -537,6 +537,7 @@ static const struct of_device_id mtk_cpufreq_machines[] __initconst = { { .compatible = "mediatek,mt8173", }, { .compatible = "mediatek,mt8176", }, { .compatible = "mediatek,mt8183", }, + { .compatible = "mediatek,mt8365", }, { .compatible = "mediatek,mt8516", }, { }