From: Roman Vivchar via B4 Relay <devnull+rva333.protonmail.com@kernel.org>
To: Yong Wu <yong.wu@mediatek.com>,
Krzysztof Kozlowski <krzk@kernel.org>,
Rob Herring <robh@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>
Cc: linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Roman Vivchar <rva333@protonmail.com>
Subject: [PATCH 3/3] memory: mtk-smi: add mt6797 SMI common support
Date: Wed, 02 Dec 2026 20:11:48 +0200 [thread overview]
Message-ID: <20261202-6797-smi-v1-3-993ac3c36b8e@protonmail.com> (raw)
In-Reply-To: <20261202-6797-smi-v1-0-993ac3c36b8e@protonmail.com>
From: Roman Vivchar <rva333@protonmail.com>
Add platform data and initialization settings for the mt6797 SMI common.
Signed-off-by: Roman Vivchar <rva333@protonmail.com>
---
drivers/memory/mtk-smi.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/drivers/memory/mtk-smi.c b/drivers/memory/mtk-smi.c
index fac6d8c64876..d748c59254fb 100644
--- a/drivers/memory/mtk-smi.c
+++ b/drivers/memory/mtk-smi.c
@@ -915,6 +915,14 @@ static const struct mtk_smi_reg_pair mtk_smi_common_mt6795_init[SMI_COMMON_INIT_
{SMI_READ_FIFO_TH, 0x191f},
};
+static const struct mtk_smi_reg_pair mtk_smi_common_mt6797_init[SMI_COMMON_INIT_REGS_NR] = {
+ {SMI_L1LEN, 0xb},
+ {SMI_READ_FIFO_TH, 0x747f},
+ {SMI_M4U_TH, 0xf7e19085},
+ {SMI_FIFO_TH1, 0x43214e8},
+ {SMI_DCM, 0x403},
+};
+
static const struct mtk_smi_reg_pair mtk_smi_common_mt8195_init[SMI_COMMON_INIT_REGS_NR] = {
{SMI_L1LEN, 0xb},
{SMI_M4U_TH, 0xe100e10},
@@ -945,6 +953,13 @@ static const struct mtk_smi_common_plat mtk_smi_common_mt6795 = {
.init = mtk_smi_common_mt6795_init,
};
+static const struct mtk_smi_common_plat mtk_smi_common_mt6797 = {
+ .type = MTK_SMI_GEN2,
+ .bus_sel = F_MMU1_LARB(1) | F_MMU1_LARB(2) | F_MMU1_LARB(3) |
+ F_MMU1_LARB(4) | F_MMU1_LARB(5) | F_MMU1_LARB(6),
+ .init = mtk_smi_common_mt6797_init,
+};
+
static const struct mtk_smi_common_plat mtk_smi_common_mt6893 = {
.type = MTK_SMI_GEN2,
.has_gals = true,
@@ -1030,6 +1045,7 @@ static const struct of_device_id mtk_smi_common_of_ids[] = {
{.compatible = "mediatek,mt2712-smi-common", .data = &mtk_smi_common_gen2},
{.compatible = "mediatek,mt6779-smi-common", .data = &mtk_smi_common_mt6779},
{.compatible = "mediatek,mt6795-smi-common", .data = &mtk_smi_common_mt6795},
+ {.compatible = "mediatek,mt6797-smi-common", .data = &mtk_smi_common_mt6797},
{.compatible = "mediatek,mt6893-smi-common", .data = &mtk_smi_common_mt6893},
{.compatible = "mediatek,mt8167-smi-common", .data = &mtk_smi_common_gen2},
{.compatible = "mediatek,mt8173-smi-common", .data = &mtk_smi_common_gen2},
--
2.56.1
next prev parent reply other threads:[~2026-12-02 18:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 18:11 [PATCH 0/3] memory: mtk-smi: mt6797 support Roman Vivchar via B4 Relay
2026-12-02 18:11 ` [PATCH 1/3] dt-bindings: memory-controllers: mediatek,smi-larb: add mt6797 Roman Vivchar via B4 Relay
2026-12-02 18:11 ` [PATCH 2/3] dt-bindings: memory-controllers: mediatek,smi-common: " Roman Vivchar via B4 Relay
2026-12-02 18:11 ` Roman Vivchar via B4 Relay [this message]
2026-12-02 18:29 ` [PATCH 0/3] memory: mtk-smi: mt6797 support Ben Grisdale
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261202-6797-smi-v1-3-993ac3c36b8e@protonmail.com \
--to=devnull+rva333.protonmail.com@kernel.org \
--cc=angelogioacchino.delregno@collabora.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=robh@kernel.org \
--cc=rva333@protonmail.com \
--cc=yong.wu@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®