Skip to contentSkip to conversation

Add mmc-support for mt7986

PATCH Superseded Frank Wunderlich 3 participants 5 messages Oct 8, 2022 – Oct 17, 2022

Subsystems (4)

v1 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

cover Add mmc-support for mt7986

From: Frank Wunderlich <[email protected]>

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(+)
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/2 dt-bindings: mmc: Add compatible for Mediatek MT7986

From: Sam Shih <[email protected]>

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

---
 Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/mmc/mtk-sd.yaml +1 -0
index d8e1e2e9adf2..3cbf0208f1b4 100644
@@ -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
Signature · 1 line
2.34.1
#3 lore raw

PATCH 2/2 mmc: mediatek: add support for MT7986 SoC

In reply to Frank Wunderlich

From: Sam Shih <[email protected]>

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

---
 drivers/mmc/host/mtk-sd.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
drivers/mmc/host/mtk-sd.c +14 -0
index df941438aef5..3f7f3a1e0df8 100644
@@ -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},
Signature · 1 line
2.34.1
maintainer Acked-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] dt-bindings: mmc: Add compatible for Mediatek MT7986

In reply to Frank Wunderlich
Quoted 11 lines · Frank Wunderlich

From: Sam Shih <[email protected]>

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

---
 Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 1 +
 1 file changed, 1 insertion(+)
#4 lore raw
In reply to Frank Wunderlich
Quoted 6 lines · Frank Wunderlich

From: Frank Wunderlich <[email protected]>

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

Quoted 8 lines

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