Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4017972rwi; Sat, 22 Oct 2022 03:59:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4BaN6aiSWcIdotn/b3Hn/VRYcDS4NLA2TcbxFByc9++otJ9sx1iWyp9+h0qA4KiV964aIJ X-Received: by 2002:a17:907:8a27:b0:78e:274e:9235 with SMTP id sc39-20020a1709078a2700b0078e274e9235mr19773684ejc.754.1666436352318; Sat, 22 Oct 2022 03:59:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666436352; cv=none; d=google.com; s=arc-20160816; b=Xv8hVvZMxL9CPjnW9aUSrDbdWtZeA61nSlyGZPn2On31JaYnN4/XSqsTpjRxHBj5N9 wmsaH1Ppc1cJ7ADt2ujDBVvUOZ3iqhRrjimGnyCBznrR8g+Qv8GqeU65eXfVQbdUC7S1 mlUZUf1PueNN8zOZk6g7d3tvodGvDvJYZPpXEoKmYfLyjPGB9EL+BnNnfh7sf5hxI0PA r9aDCgA5YKfMcnDhWsC/9Me/vMHRKqOoJYWi3381Zu1x+hC7SL2dkYyrl8fKmFufx+bV C674Wr7rtyI6ClKgKHSHOnrQBrlpbXNMhFsxl/Vrhecpm/6dMK07egscnyKB9FBLk9xf MgYg== 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=dc1SVN0Bg4h/qEBwmX+6pOc+lPLoCcfEOq7kRHnl/ajM5T4pdh/J0anWi1FXCK9x0c 6FjWfJkQ0Abnb7iqZWIBqVvXCuf2p75JHnJy5usIqvfG3jbCHNE8wBdxFGwLAC6jMjTH IRc6RK33B8VVRjlMQRdI3fBvLx9GQXFyiTHr3f7qy6eABqDIheBA1MIDCTz2wZfW2RjF NQ72Nw7+Ch9bZ1A938Sox5CubSVhTeoAP3X8Wqu2THb4yeIMBiF39lN10BtIdg8Tyskg s4AVfH3vg9KbtBlMsiF+q0tdFEOqoQtf4w0GSgmSIik4JcDveW5FAnH39SlWzOy/ORqO atzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=lHgZAK25; 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 cr17-20020a170906d55100b00791994dfb9esi15235566ejc.491.2022.10.22.03.58.46; Sat, 22 Oct 2022 03:59:12 -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=lHgZAK25; 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 S230305AbiJVKod (ORCPT + 99 others); Sat, 22 Oct 2022 06:44:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231161AbiJVKoP (ORCPT ); Sat, 22 Oct 2022 06:44:15 -0400 Received: from mxout1.routing.net (mxout1.routing.net [IPv6:2a03:2900:1:a::a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C260318AE6; Sat, 22 Oct 2022 03:01:50 -0700 (PDT) Received: from mxbox1.masterlogin.de (unknown [192.168.10.88]) by mxout1.routing.net (Postfix) with ESMTP id 633D23FE7B; Sat, 22 Oct 2022 09:05:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1666429538; 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=lHgZAK25MZU9KEAKj69t9BDdXuWpdeF4092Cc0t/isPenPxhZInA9DSsR6N1xogTdJe1q9 s+kpaGBNnPDIRN/MA1mSma3kdpCOKr1e9JXQL9B1RlRaE5Xq/G4lfyz/cV7OhXmUFzsQ8K d0i/pGO/stnONSn1LmzAiAcjbdTb2z4= Received: from frank-G5.. (fttx-pool-80.245.73.148.bambit.de [80.245.73.148]) by mxbox1.masterlogin.de (Postfix) with ESMTPSA id 98940405AF; Sat, 22 Oct 2022 09:05:37 +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 v2 2/5] mmc: mediatek: add support for MT7986 SoC Date: Sat, 22 Oct 2022 11:05:27 +0200 Message-Id: <20221022090530.16265-3-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221022090530.16265-1-linux@fw-web.de> References: <20221022090530.16265-1-linux@fw-web.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mail-ID: beee7ae5-5b66-4462-bddd-cc2fb99e2c29 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