Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp8454075rwi; Tue, 25 Oct 2022 06:58:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM60NoR6Ep2+Rl8eqndclWGyW6wRrXyaqbRQb8fECua0AQbF/1HZlzgS375ApcaqeYYfGisy X-Received: by 2002:a05:6402:510c:b0:45d:50f:f65 with SMTP id m12-20020a056402510c00b0045d050f0f65mr34980668edd.313.1666706327028; Tue, 25 Oct 2022 06:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666706327; cv=none; d=google.com; s=arc-20160816; b=RWTZA9R0gewYvjKuMYNtq05F0POsBYOHd6EmJsPjuWZ7RZEjON8JeCOFUwKfqwTcjJ G62LfMypz/AhQzLl23FLsOKZ1grTwWg9gNWSplIwszLez7VU2/oLSlWy81ZVnv2KYEPy 8f8KX++loGR8+WS6TCb8Fo/LZ+6Bu/SvAKLdKuOgRfkzF0eZCscc6t/teaHcdzRW/AHH VtqbacI6+LN6dAUjgOmpR+4aizw1cG2ydjHp3pj5d9MptGEPco6/KFADaz6otsz1L5zg k1ylZWMgN5CUNbZaYvAxImIAAE/7yZQCAlY7uvGRQtDAVDHNVyFdZnoJEsZIPw82wYEF jU2A== 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=WAjUi/ga04HIkMa7Z+d3a+gEhyr0vQRbkNFGR/WcXSQ=; b=EgVKL4bpQBcf5Ovgekw/8ojeqo6iTBnUJ7Sm20xXFy35TDZ+c3sj6I3c/hMGtNtKoV +k6pOTC7Nr48zVmuG54WX1bpbUkIAsJS0umT5n0oSZlM6B2OpcqWzDbX2r7kJhaVWxLt cdqLF6mGrSwegOrwAT8fPcri5/xFQD4IpAyzprMWBeCZRnkj39Ts6VuLs30WB/CLbYw5 f7VPcBVRh35te/Oxg8/JyeH1d7m5KspV9A1KjbxErSn0nUgzF2xAqEqkkq4LJp9yNQZ1 aIhEZaIieaR2oAW1+c2YlqSC3HwAdGKI/9voQ3r+uQZzx4tfIALVeWl2O+SQRke12V1Z tEUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=a5RrdKXt; 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 m11-20020a50cc0b000000b0045d5e3c7f44si2607214edi.180.2022.10.25.06.58.22; Tue, 25 Oct 2022 06:58:47 -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=a5RrdKXt; 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 S232906AbiJYNag (ORCPT + 99 others); Tue, 25 Oct 2022 09:30:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232870AbiJYNaV (ORCPT ); Tue, 25 Oct 2022 09:30:21 -0400 Received: from mxout3.routing.net (mxout3.routing.net [IPv6:2a03:2900:1:a::8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19D3EBE1E; Tue, 25 Oct 2022 06:30:13 -0700 (PDT) Received: from mxbox1.masterlogin.de (unknown [192.168.10.88]) by mxout3.routing.net (Postfix) with ESMTP id E8EC66269F; Tue, 25 Oct 2022 13:30:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1666704605; 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=WAjUi/ga04HIkMa7Z+d3a+gEhyr0vQRbkNFGR/WcXSQ=; b=a5RrdKXte/35yjTwJvGKlVu5lgtfaA7v8j1tRHeFzSb/Chcec/eCRJ2ZqMfBHTT693Xgeb HrxtY11z0KvK+6S2M9U/M19WTdMha7FL5FB2m6y/nQhOUXwVae58Z90w3vslj9vZOkp5k9 Da+b9cEx1/aAIzTH1Ytotn9CmBWH/mk= Received: from frank-G5.. (fttx-pool-217.61.152.57.bambit.de [217.61.152.57]) by mxbox1.masterlogin.de (Postfix) with ESMTPSA id EAD5A40112; Tue, 25 Oct 2022 13:30:03 +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 , Sam Shih , AngeloGioacchino Del Regno Subject: [PATCH v5 6/6] mmc: mediatek: add support for MT7986 SoC Date: Tue, 25 Oct 2022 15:29:53 +0200 Message-Id: <20221025132953.81286-7-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221025132953.81286-1-linux@fw-web.de> References: <20221025132953.81286-1-linux@fw-web.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mail-ID: 481834d9-7b72-49f9-bee4-d48e2eac2acb 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,URIBL_BLOCKED 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 Reviewed-by: AngeloGioacchino Del Regno --- v5: - add reviewed-tag --- 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