From patchwork Tue Oct 25 07:42:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 10576 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp863806wru; Tue, 25 Oct 2022 00:45:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5tmQ9cUjKiyV1JWn92dAWuDhhfNwQvDhs6zOqZayZQffnepJGJIFrTHpPTXyBqfjbrli3G X-Received: by 2002:a17:90a:6845:b0:210:7ef5:ab99 with SMTP id e5-20020a17090a684500b002107ef5ab99mr34138345pjm.80.1666683924572; Tue, 25 Oct 2022 00:45:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666683924; cv=none; d=google.com; s=arc-20160816; b=DrSmHYFjrsVAJ6o+jKhhBCfpoyHpzYI0szViLpzEHY4FudOU3u6KiThoZ/j1Wqweap fParE5KaaR664AwC09wq38jBsTkDmDzIx0832pZBo68lUN9aQTtDMj0AKy5bw4+4vmrZ V8OYXvVj0r9VpTgS2dVRHOcuBgRx/BWSp+kO1ujsQ6wN1qE3GFUTDE7SjnhokYdSoVEb s3WEY9PH7B00KAAAZHSTgVLrfZ1feKEPBnnEuzUHWbpK5XF4r0vQkOSKMzh6CLrp11vm JZgEBnyBdShyf2JPJVZ9qtc5oDrIH4BUpmqS4gZN403YZqHoajV3r4nch/k9oaVj2ZBb 57Ag== 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=L/+jygS5AHzKEf6l6gikckjylSSPevFmyGZayQL4f44tHHWGK4aUWYvRGccAb1vx5m 7W/SHqGLovih144+U+V/A+kjTHwzzDQD8rlv9MO+VOwBrPWvpgzXzVIt46laBWKWjIRQ CtMoGLpBOgQQ+9pmABsiL7v20sB+hQDFnAQ5u26tMYWMvlPMPmJC/ptyY1V2hZDH+urL Yif0Skb84zczXDToW5Nc8erAmUZYJi/QIDzB92NmTmcvZZLjgJvhyQme7vRaRlc2bSWJ y+Zi6pI0CMZ9wYtUBoCjKBfSpFpfiDDFH/ZGTK9zQQi9mol9NTrVrr0TIF0TCKgE7U7U BaNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b="jjN/qTIW"; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p21-20020a17090a931500b002121890521csi10476786pjo.119.2022.10.25.00.45.11; Tue, 25 Oct 2022 00:45:24 -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="jjN/qTIW"; 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 S231969AbiJYHnS (ORCPT + 99 others); Tue, 25 Oct 2022 03:43:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231985AbiJYHmy (ORCPT ); Tue, 25 Oct 2022 03:42:54 -0400 Received: from mxout2.routing.net (mxout2.routing.net [IPv6:2a03:2900:1:a::b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8810215B302; Tue, 25 Oct 2022 00:42:49 -0700 (PDT) Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout2.routing.net (Postfix) with ESMTP id 368D96050E; Tue, 25 Oct 2022 07:42:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1666683768; 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=jjN/qTIWkHOJVJ7PLMaZt76lgdWzdRJfbGiWQBZdFB0eS8q6aObyaaf1zHwfzxl/f0YuWL rEjAcxTdKxCMrs9CDg8hMrwGBo5/uTuS1WcvjF+L8LmSXN1B1EzhrpcuwLjij4YUkM2cME 3YVnp8HK28SNNMifWjrjPeUDj+lUd5o= Received: from frank-G5.. (fttx-pool-217.61.152.57.bambit.de [217.61.152.57]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 3EF9B360310; Tue, 25 Oct 2022 07:42:47 +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 Subject: [PATCH v4 6/6] mmc: mediatek: add support for MT7986 SoC Date: Tue, 25 Oct 2022 09:42:38 +0200 Message-Id: <20221025074238.18136-7-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221025074238.18136-1-linux@fw-web.de> References: <20221025074238.18136-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 698909de-f190-41ca-b759-7c49a09373a3 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747644763165269415?= X-GMAIL-MSGID: =?utf-8?q?1747644763165269415?= 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 --- 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},