linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add mmc-support for mt7986
@ 2022-10-08 16:56 Frank Wunderlich
  2022-10-08 16:56 ` [PATCH 1/2] dt-bindings: mmc: Add compatible for Mediatek MT7986 Frank Wunderlich
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Frank Wunderlich @ 2022-10-08 16:56 UTC (permalink / raw)
  To: linux-mediatek
  Cc: Frank Wunderlich, Chaotian Jing, Ulf Hansson, Rob Herring,
	Krzysztof Kozlowski, Matthias Brugger, Wenbin Mei, linux-mmc,
	devicetree, linux-arm-kernel, linux-kernel

From: Frank Wunderlich <frank-w@public-files.de>

This small series adds dt-binding and driver change for supporting
mmc-controller of mt7986.

Sam Shih (2):
  dt-bindings: mmc: Add compatible for Mediatek MT7986
  mmc: mediatek: add support for MT7986 SoC

 Documentation/devicetree/bindings/mmc/mtk-sd.yaml |  1 +
 drivers/mmc/host/mtk-sd.c                         | 14 ++++++++++++++
 2 files changed, 15 insertions(+)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2] dt-bindings: mmc: Add compatible for Mediatek MT7986
  2022-10-08 16:56 [PATCH 0/2] Add mmc-support for mt7986 Frank Wunderlich
@ 2022-10-08 16:56 ` Frank Wunderlich
  2022-10-10 13:01   ` Rob Herring
  2022-10-08 16:56 ` [PATCH 2/2] mmc: mediatek: add support for MT7986 SoC Frank Wunderlich
  2022-10-17 11:32 ` [PATCH 0/2] Add mmc-support for mt7986 Ulf Hansson
  2 siblings, 1 reply; 5+ messages in thread
From: Frank Wunderlich @ 2022-10-08 16:56 UTC (permalink / raw)
  To: linux-mediatek
  Cc: Frank Wunderlich, Chaotian Jing, Ulf Hansson, Rob Herring,
	Krzysztof Kozlowski, Matthias Brugger, Wenbin Mei, linux-mmc,
	devicetree, linux-arm-kernel, linux-kernel, Sam Shih

From: Sam Shih <sam.shih@mediatek.com>

This commit adds dt-binding documentation of mmc for Mediatek MT7986 SoC
Platform.

Signed-off-by: Sam Shih <sam.shih@mediatek.com>
Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
---
 Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml b/Documentation/devicetree/bindings/mmc/mtk-sd.yaml
index d8e1e2e9adf2..3cbf0208f1b4 100644
--- a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml
+++ b/Documentation/devicetree/bindings/mmc/mtk-sd.yaml
@@ -23,6 +23,7 @@ properties:
           - mediatek,mt6795-mmc
           - mediatek,mt7620-mmc
           - mediatek,mt7622-mmc
+          - mediatek,mt7986-mmc
           - mediatek,mt8135-mmc
           - mediatek,mt8173-mmc
           - mediatek,mt8183-mmc
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] mmc: mediatek: add support for MT7986 SoC
  2022-10-08 16:56 [PATCH 0/2] Add mmc-support for mt7986 Frank Wunderlich
  2022-10-08 16:56 ` [PATCH 1/2] dt-bindings: mmc: Add compatible for Mediatek MT7986 Frank Wunderlich
@ 2022-10-08 16:56 ` Frank Wunderlich
  2022-10-17 11:32 ` [PATCH 0/2] Add mmc-support for mt7986 Ulf Hansson
  2 siblings, 0 replies; 5+ messages in thread
From: Frank Wunderlich @ 2022-10-08 16:56 UTC (permalink / raw)
  To: linux-mediatek
  Cc: Frank Wunderlich, Chaotian Jing, Ulf Hansson, Rob Herring,
	Krzysztof Kozlowski, Matthias Brugger, Wenbin Mei, linux-mmc,
	devicetree, linux-arm-kernel, linux-kernel, Sam Shih

From: Sam Shih <sam.shih@mediatek.com>

Adding mt7986 own characteristics and of_device_id to have support
of MT7986 SoC.

Signed-off-by: Sam Shih <sam.shih@mediatek.com>
Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
---
 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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] dt-bindings: mmc: Add compatible for Mediatek MT7986
  2022-10-08 16:56 ` [PATCH 1/2] dt-bindings: mmc: Add compatible for Mediatek MT7986 Frank Wunderlich
@ 2022-10-10 13:01   ` Rob Herring
  0 siblings, 0 replies; 5+ messages in thread
From: Rob Herring @ 2022-10-10 13:01 UTC (permalink / raw)
  To: Frank Wunderlich
  Cc: devicetree, Sam Shih, Ulf Hansson, Krzysztof Kozlowski,
	Frank Wunderlich, linux-mmc, linux-kernel, linux-mediatek,
	linux-arm-kernel, Matthias Brugger, Wenbin Mei, Chaotian Jing,
	Rob Herring

On Sat, 08 Oct 2022 18:56:26 +0200, Frank Wunderlich wrote:
> From: Sam Shih <sam.shih@mediatek.com>
> 
> This commit adds dt-binding documentation of mmc for Mediatek MT7986 SoC
> Platform.
> 
> Signed-off-by: Sam Shih <sam.shih@mediatek.com>
> Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
> ---
>  Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 

Acked-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/2] Add mmc-support for mt7986
  2022-10-08 16:56 [PATCH 0/2] Add mmc-support for mt7986 Frank Wunderlich
  2022-10-08 16:56 ` [PATCH 1/2] dt-bindings: mmc: Add compatible for Mediatek MT7986 Frank Wunderlich
  2022-10-08 16:56 ` [PATCH 2/2] mmc: mediatek: add support for MT7986 SoC Frank Wunderlich
@ 2022-10-17 11:32 ` Ulf Hansson
  2 siblings, 0 replies; 5+ messages in thread
From: Ulf Hansson @ 2022-10-17 11:32 UTC (permalink / raw)
  To: Frank Wunderlich
  Cc: linux-mediatek, Frank Wunderlich, Chaotian Jing, Rob Herring,
	Krzysztof Kozlowski, Matthias Brugger, Wenbin Mei, linux-mmc,
	devicetree, linux-arm-kernel, linux-kernel

On Sat, 8 Oct 2022 at 18:56, Frank Wunderlich <linux@fw-web.de> wrote:
>
> From: Frank Wunderlich <frank-w@public-files.de>
>
> This small series adds dt-binding and driver change for supporting
> mmc-controller of mt7986.
>
> Sam Shih (2):
>   dt-bindings: mmc: Add compatible for Mediatek MT7986
>   mmc: mediatek: add support for MT7986 SoC
>
>  Documentation/devicetree/bindings/mmc/mtk-sd.yaml |  1 +
>  drivers/mmc/host/mtk-sd.c                         | 14 ++++++++++++++
>  2 files changed, 15 insertions(+)
>

Applied for next, thanks!

Kind regards
Uffe

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-10-17 11:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-08 16:56 [PATCH 0/2] Add mmc-support for mt7986 Frank Wunderlich
2022-10-08 16:56 ` [PATCH 1/2] dt-bindings: mmc: Add compatible for Mediatek MT7986 Frank Wunderlich
2022-10-10 13:01   ` Rob Herring
2022-10-08 16:56 ` [PATCH 2/2] mmc: mediatek: add support for MT7986 SoC Frank Wunderlich
2022-10-17 11:32 ` [PATCH 0/2] Add mmc-support for mt7986 Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).