Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5249705rwi; Sun, 23 Oct 2022 02:46:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4PHNuNoFff+TgYC2QCi1yv1+yQYRa+7KyWL6CNj5P5zK9IzNFLN2Rai8cA2Bmogh/la/2m X-Received: by 2002:a05:6a00:1a44:b0:52a:ecd5:bbef with SMTP id h4-20020a056a001a4400b0052aecd5bbefmr27804576pfv.28.1666518371978; Sun, 23 Oct 2022 02:46:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666518371; cv=none; d=google.com; s=arc-20160816; b=SFcDKeV+3qbbVJvhMgDIyV2qbyeuEYFUJmudvWrdEJk0LMYZBAVn6G0JSBX3qXsrCL Y7bLKkqbPSIiWQ3lELMt7Wcw4AACU/mwXqYssWZSr6Wgy99C3ay9n10bNmfZnpH0BP5y iIFfWAlAfEar2IcfAv1f44KhdqYNt88uIztULTWiqCcnY+ArrgQKJvXAVD+M2dZMJre+ PCfpfmvjBToYIjqgPa14BbG9gRKdFEydN9/XBx3zNUTlDZU+rDoCOghgX588UbLoPkoY CWt81NPFyWt58nPtCC7DsP1dDHQPrESCC25o4KkEDj00dcPrW1xyWgk94YZCh/ybAgs3 NOVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9YIiUZlTrjdPAMVHM7klpVqQezdSDroJaCTYC5nvEj0=; b=dRjUMssSA+rMqUusgeASTo9TmauyicsNeTS6FxGATrTkyOecHaTqdYOZaZ8NzKvcst 9khuXx6+6QnVglVOVgN7fKerz3/wnsq5pEXh57xmPW7mIyg/5TyLrzPCA6X9uzut6hB5 FE/xqoytjHu5AXYs5H0MAHUf67YdtOl/Gfh8MG3J6eAh+wwBk7mNoJi/xe++CnD+W2+9 4LlofPYhbLZkkQFdhtXXdH0MYZndfDPzDgR2mt5rWj0xIu/BRdpmN+CwzFLxF8lxsGDb 3tWUv8xK7dVnwjQeDerB7p0EbbP8bvajV4JXsgJvlFVMDWYg0W122hYZPr/PvdHSrBr2 r1CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=uJE6+VOs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x70-20020a638649000000b0045a048683dcsi28844018pgd.236.2022.10.23.02.45.55; Sun, 23 Oct 2022 02:46:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=uJE6+VOs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230167AbiJWJNf (ORCPT + 99 others); Sun, 23 Oct 2022 05:13:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230103AbiJWJNR (ORCPT ); Sun, 23 Oct 2022 05:13:17 -0400 Received: from mxout1.routing.net (mxout1.routing.net [IPv6:2a03:2900:1:a::a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE20472B7B; Sun, 23 Oct 2022 02:13:15 -0700 (PDT) Received: from mxbox2.masterlogin.de (unknown [192.168.10.89]) by mxout1.routing.net (Postfix) with ESMTP id 296B84016B; Sun, 23 Oct 2022 09:13:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1666516394; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9YIiUZlTrjdPAMVHM7klpVqQezdSDroJaCTYC5nvEj0=; b=uJE6+VOs3zNi+2fTxHrCF4dX/2FE4qQubL6eW1yW8EnoLb1QYQ56jyybztJklfzpRSQXYx /B4hHoqmSH8hw80J6IuChm+WxdSgzhjnIwC+4VIjhntxk4njS7J5g1+5xxpGAlEIg+SNkt X9krGF/cRyN2lVyDPQC0P9U3pL496Ck= Received: from frank-G5.. (fttx-pool-80.245.79.234.bambit.de [80.245.79.234]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id 4FBD7100671; Sun, 23 Oct 2022 09:13:13 +0000 (UTC) From: Frank Wunderlich To: linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Chaotian Jing , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Wenbin Mei , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sam Shih Subject: [PATCH v3 7/7] mmc: mediatek: add support for MT7986 SoC Date: Sun, 23 Oct 2022 11:12:47 +0200 Message-Id: <20221023091247.70586-8-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221023091247.70586-1-linux@fw-web.de> References: <20221023091247.70586-1-linux@fw-web.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mail-ID: a1159ceb-d9d5-4262-b7c0-4dd62399a1c6 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sam Shih Adding mt7986 own characteristics and of_device_id to have support of MT7986 SoC. Signed-off-by: Sam Shih Signed-off-by: Frank Wunderlich --- drivers/mmc/host/mtk-sd.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c index df941438aef5..3f7f3a1e0df8 100644 --- a/drivers/mmc/host/mtk-sd.c +++ b/drivers/mmc/host/mtk-sd.c @@ -552,6 +552,19 @@ static const struct mtk_mmc_compatible mt7622_compat = { .support_64g = false, }; +static const struct mtk_mmc_compatible mt7986_compat = { + .clk_div_bits = 12, + .recheck_sdio_irq = true, + .hs400_tune = false, + .pad_tune_reg = MSDC_PAD_TUNE0, + .async_fifo = true, + .data_tune = true, + .busy_check = true, + .stop_clk_fix = true, + .enhance_rx = true, + .support_64g = true, +}; + static const struct mtk_mmc_compatible mt8135_compat = { .clk_div_bits = 8, .recheck_sdio_irq = true, @@ -609,6 +622,7 @@ static const struct of_device_id msdc_of_ids[] = { { .compatible = "mediatek,mt6795-mmc", .data = &mt6795_compat}, { .compatible = "mediatek,mt7620-mmc", .data = &mt7620_compat}, { .compatible = "mediatek,mt7622-mmc", .data = &mt7622_compat}, + { .compatible = "mediatek,mt7986-mmc", .data = &mt7986_compat}, { .compatible = "mediatek,mt8135-mmc", .data = &mt8135_compat}, { .compatible = "mediatek,mt8173-mmc", .data = &mt8173_compat}, { .compatible = "mediatek,mt8183-mmc", .data = &mt8183_compat}, -- 2.34.1