Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2579047rwb; Sat, 8 Oct 2022 10:11:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5biwy2NPEP1061po59TqOjlfAsP7B0eVKYIdtkT+PF0frCmKX8XXtaGngmFKPv2WXUzy1n X-Received: by 2002:a05:6402:28ca:b0:43b:5235:f325 with SMTP id ef10-20020a05640228ca00b0043b5235f325mr9634002edb.320.1665249116539; Sat, 08 Oct 2022 10:11:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665249116; cv=none; d=google.com; s=arc-20160816; b=ssBTOZNozw/oCCYhtM0R3c3U3pLQKub78nydorfOe8MIJ63miMzmBG9S1y2OX+NlGB XLCHQO3OHFoiPuMWjBpKGevj4iBRd3qO4SbnLkuafr+YE5w9kQ3e50rjAm8vH+kZinKp kjbh/OA15oZPGTVNwCJFLiksQsLcYs/GrpZMSg7YIBIpVGv4sb+Pec+PlOCv6mNbxz8Y FKj11nGl2GvjgA/AxWHULDn7c7qvHYB4Tt9+3HUVWMYchgh0puiys3G/BKYcTKztDn/m 18zbda7U61K5s9fZF5Bow+KpT34nUTXR8Njqkofjx6mNEvc5Dkk9+HhT6xDZvKZgmORQ gamQ== 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=MMjig2u4RqXAuYkHD9vb/g/fgU52T75IOWjwniCT6bc/tGPq8bGQpwnYwirZUDaAcL iXgbUYWI2dqg8K3vOs/9NdD5bkGhnUrq++FBlUXtp6/kI2syIGcnsi6+txs9+dfAF4vX 5B6KZG+Voh2LDmCH6ydFWmEoFst7M9UX16ut7ZWk2fHd8RVzv6L5qkZ6tP0UVhafwZuy pyde+hwH/HF10kCt9EHUX9Fpn0GqFL4tMO+kejtCyLzv35HnvQ207AFl1+bIsttld/Nz UMVmbbROp55TzcAn0wEhms4wTpIoRGI7FoKHZpKkUoaAKyvhJ2n0EzxiD3kw/z2b+H07 6yHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=km4yddHk; 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 qk38-20020a1709077fa600b007878d99cb02si5544167ejc.750.2022.10.08.10.11.26; Sat, 08 Oct 2022 10:11:56 -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=km4yddHk; 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 S230195AbiJHQ4m (ORCPT + 99 others); Sat, 8 Oct 2022 12:56:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230143AbiJHQ4h (ORCPT ); Sat, 8 Oct 2022 12:56:37 -0400 Received: from mxout4.routing.net (mxout4.routing.net [IPv6:2a03:2900:1:a::9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 986804362E; Sat, 8 Oct 2022 09:56:36 -0700 (PDT) Received: from mxbox4.masterlogin.de (unknown [192.168.10.79]) by mxout4.routing.net (Postfix) with ESMTP id 156D310094F; Sat, 8 Oct 2022 16:56:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1665248195; 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=km4yddHkV4sqnpW12lvMpNkYt0xlfCd/XoPJkbX2q5TzkkJ15fP0GURXfYijVVwgWvcFqM J7lkGHlJzS9GlSneVrjbcFOb63GQGMrOLBkFUop/w/ijXHNC8YBaMnqZNRqqIgSZFbcXbx vzZ8mV1EmsEEeu0Zuqz5ZJ08ksUE5ag= Received: from frank-G5.. (fttx-pool-217.61.149.60.bambit.de [217.61.149.60]) by mxbox4.masterlogin.de (Postfix) with ESMTPSA id 5DE3E80098; Sat, 8 Oct 2022 16:56:34 +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 2/2] mmc: mediatek: add support for MT7986 SoC Date: Sat, 8 Oct 2022 18:56:27 +0200 Message-Id: <20221008165627.114782-3-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221008165627.114782-1-linux@fw-web.de> References: <20221008165627.114782-1-linux@fw-web.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mail-ID: 8ce3f27c-43c1-411d-b25c-a3173c96a672 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