Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1855689img; Sat, 23 Mar 2019 14:20:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzkkMQguuh7aRziyZUysrdeDtv+ADXNVhmeD42u8QnywX0GVtWKUCqH1Au/1TKXYvXfND5M X-Received: by 2002:a17:902:1121:: with SMTP id d30mr17045219pla.104.1553376023879; Sat, 23 Mar 2019 14:20:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553376023; cv=none; d=google.com; s=arc-20160816; b=S1jLCdnj7N6xcmKx3WjSstKlbwbP+Iau3nSFvdnoLsTzAJiZ8p9AuvRqzWI8ILCJ8j tqJF3fMwUyfYqRFPx8+w4prq8ODCnmINIpehCaYy5VvmVy9l5QuvFMoMxfLukzumtmfG 4jzdyJdfP8Od9nYNmiZy4xoqzGntSAOzc7R0gmyt2Bpz5/6YYGaz2tvOB24naM/+WwaI kT2YE2U4dQ0LC9dV6KV1BgOFyKrkxGvn6OoRGY00f0OfCFvvNhIr7uPESzng+FtMM46M U8hdvImag7eDi4NjScmJOtVWv4xjIdz/KXm/DelMzOXugJ37dWw9euOh87g1kU3mw5tG DA1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AbhkTI13AmSY9XKV0JobMbHsJRDpOGhDj343gt4xJ3k=; b=AhVmCoU8HKM2dyhu/kwebN4PVO4/eOdRapagylP0E3UeAMIimQpqI/seyF/ZKxzRvf //4oMGQ0FhhRAk8dLEqJgNclWP3QHPDkhm9oedxxVuSnGXqScOGF8F/z81uKHDm1yLA2 fRpz3kG6fjPGYFaw/MoZ39yDBZ4+Bj6RDCt7m6fSw9FGsbzlqxxhGG7kBsBv/zOx6WFJ nZyci5UmkM/Lx+ANzmTQErK8Q0MQX0x09gQlIEBXeYlbGhF3SARP1Y+a6g818rJ2g3Py evrL58vMd72M+qU/Ggg0V1V4NR+r/zdJugt25uoZAGM1MX0FBGWIhDNYy4FtIMbn1R+B GjWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=OSSuiy0+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r16si9398391pfd.266.2019.03.23.14.20.08; Sat, 23 Mar 2019 14:20:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=OSSuiy0+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728564AbfCWVTE (ORCPT + 99 others); Sat, 23 Mar 2019 17:19:04 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:42636 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728470AbfCWVRG (ORCPT ); Sat, 23 Mar 2019 17:17:06 -0400 Received: by mail-wr1-f68.google.com with SMTP id g3so2489781wrx.9 for ; Sat, 23 Mar 2019 14:17:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=AbhkTI13AmSY9XKV0JobMbHsJRDpOGhDj343gt4xJ3k=; b=OSSuiy0+nlnD/R893s9W0y/CWu7AdqerwHBWlHHl9ZlybkoGvfqGAN7L56WPPha1MB MKaPDel06r9R3cRa8C477bVrlUanMhMvzKZhIt/raf8P1sZ7RVuoJFLiKWfNr9ejThFz QdRTRvAS8+QJG6f/EoJZJxcaLaudyE1YxQbRb9Mh7svXXJTRiBSIgA/hZ/bzWJBgl7Lu TtxW1WtMbum6aIhlnlNdOJdFt6LdRSIom125fdRYi8MqfNHSSqNmK/53EpARGjrVks66 Dw0oPwCtVWIPfYsiFJw2HH7Nnyn+25qJDCvSo7pPEgVaZzhGRV8rudg3ZcTAy7v/cYwZ OW6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=AbhkTI13AmSY9XKV0JobMbHsJRDpOGhDj343gt4xJ3k=; b=LGq38HZdB0bGUhbtNWc3xmAJlBELoo09c/DsCd2JTQAinBUSF+LiUbGwsxZK0742F2 x85XgoXVhbQ/KHFCliLVloCZYxFmDY88l1tJy9OY4M6Izj9Ha8xJgdbA35dBaaNlLCMR 5ShYqhbOThbTfICWn6AXic65+/ATTO0tpiZ/NkKBZnG3MeMDFSrcOs6QscOmURuCwmpo FQW9PXMm/UjqLu4tIVQTbCkkyOFKL01cdiwbEq2znAkbujkVWRs7v+iY5oJHvgAi6eN9 UqBWQOeliQ0C/9kEyK+kn6kGG4y12fs1rP+0uEGxLSiqhfZnVnb59dqfxfyXGOYcc8CH TRIA== X-Gm-Message-State: APjAAAX7T5VOY7dVYtRNqy4SSuNTq9xQbNKsM0oqxmvBnz9DQTf3IH9J 4lVN55VVJk1nrvMeZv6sL6hh1Q== X-Received: by 2002:a5d:4c88:: with SMTP id z8mr3724209wrs.291.1553375824363; Sat, 23 Mar 2019 14:17:04 -0700 (PDT) Received: from localhost.localdomain (cag06-8-78-203-165-84.fbx.proxad.net. [78.203.165.84]) by smtp.gmail.com with ESMTPSA id y66sm8050503wmd.37.2019.03.23.14.17.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Mar 2019 14:17:03 -0700 (PDT) From: Fabien Parent To: matthias.bgg@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com Cc: sean.wang@kernel.org, ryder.lee@mediatek.com, hsin-hsiung.wang@mediatek.com, wenzhen.yu@mediatek.com, chaotian.jing@mediatek.com, yong.mao@mediatek.com, jjian.zhou@mediatek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-mmc@vger.kernel.org, linux-gpio@vger.kernel.org, linux-serial@vger.kernel.org, linux-spi@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-clk@vger.kernel.org, stephane.leprovost@mediatek.com, Fabien Parent Subject: [PATCH 10/24] mmc: mtk-sd: add support for MT8516 Date: Sat, 23 Mar 2019 22:15:58 +0100 Message-Id: <20190323211612.860-11-fparent@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190323211612.860-1-fparent@baylibre.com> References: <20190323211612.860-1-fparent@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the MSDC configuration for the MT8516 SoC. Signed-off-by: Fabien Parent --- drivers/mmc/host/mtk-sd.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c index 573aa127d00b..51139275b1b2 100644 --- a/drivers/mmc/host/mtk-sd.c +++ b/drivers/mmc/host/mtk-sd.c @@ -507,6 +507,16 @@ static const struct mtk_mmc_compatible mt7622_compat = { .support_64g = false, }; +static const struct mtk_mmc_compatible mt8516_compat = { + .clk_div_bits = 12, + .hs400_tune = false, + .pad_tune_reg = MSDC_PAD_TUNE0, + .async_fifo = true, + .data_tune = true, + .busy_check = true, + .stop_clk_fix = true, +}; + static const struct of_device_id msdc_of_ids[] = { { .compatible = "mediatek,mt8135-mmc", .data = &mt8135_compat}, { .compatible = "mediatek,mt8173-mmc", .data = &mt8173_compat}, @@ -514,6 +524,7 @@ static const struct of_device_id msdc_of_ids[] = { { .compatible = "mediatek,mt2701-mmc", .data = &mt2701_compat}, { .compatible = "mediatek,mt2712-mmc", .data = &mt2712_compat}, { .compatible = "mediatek,mt7622-mmc", .data = &mt7622_compat}, + { .compatible = "mediatek,mt8516-mmc", .data = &mt8516_compat}, {} }; MODULE_DEVICE_TABLE(of, msdc_of_ids); -- 2.20.1