* [PATCH v1 0/2] MediaTek Dimensity 1200 - Add SMI support
@ 2025-04-10 14:39 AngeloGioacchino Del Regno
2025-04-10 14:39 ` [PATCH v1 1/2] dt-bindings: memory: mtk-smi: Add support for MT6893 AngeloGioacchino Del Regno
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: AngeloGioacchino Del Regno @ 2025-04-10 14:39 UTC (permalink / raw)
To: yong.wu
Cc: krzk, robh, conor+dt, matthias.bgg, angelogioacchino.delregno,
linux-mediatek, linux-kernel, devicetree, linux-arm-kernel,
kernel
In preparation for adding basic support for the OnePlus Nord 2 5G
DN2103 smartphone, this series adds support for the Smart Multimedia
Interface and Local Arbiters of the MediaTek Dimensity 1200 (MT6893) SoC.
AngeloGioacchino Del Regno (2):
dt-bindings: memory: mtk-smi: Add support for MT6893
memory: mtk-smi: Add support for Dimensity 1200 MT6893 SMI
.../mediatek,smi-common.yaml | 1 +
.../memory-controllers/mediatek,smi-larb.yaml | 1 +
drivers/memory/mtk-smi.c | 52 +++++++++++++++++++
3 files changed, 54 insertions(+)
--
2.49.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v1 1/2] dt-bindings: memory: mtk-smi: Add support for MT6893
2025-04-10 14:39 [PATCH v1 0/2] MediaTek Dimensity 1200 - Add SMI support AngeloGioacchino Del Regno
@ 2025-04-10 14:39 ` AngeloGioacchino Del Regno
2025-04-11 17:25 ` Rob Herring (Arm)
2025-04-10 14:39 ` [PATCH v1 2/2] memory: mtk-smi: Add support for Dimensity 1200 MT6893 SMI AngeloGioacchino Del Regno
2025-04-15 6:20 ` [PATCH v1 0/2] MediaTek Dimensity 1200 - Add SMI support Krzysztof Kozlowski
2 siblings, 1 reply; 6+ messages in thread
From: AngeloGioacchino Del Regno @ 2025-04-10 14:39 UTC (permalink / raw)
To: yong.wu
Cc: krzk, robh, conor+dt, matthias.bgg, angelogioacchino.delregno,
linux-mediatek, linux-kernel, devicetree, linux-arm-kernel,
kernel
Add support for the Smart Multimedia Interface's Common and Local
Arbiter HW as found in the MediaTek Dimensity 1200 (MT6893) SoC.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
.../bindings/memory-controllers/mediatek,smi-common.yaml | 1 +
.../bindings/memory-controllers/mediatek,smi-larb.yaml | 1 +
2 files changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml
index 2f36ac23604c..0762e0ff66ef 100644
--- a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml
+++ b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml
@@ -33,6 +33,7 @@ properties:
- mediatek,mt2712-smi-common
- mediatek,mt6779-smi-common
- mediatek,mt6795-smi-common
+ - mediatek,mt6893-smi-common
- mediatek,mt8167-smi-common
- mediatek,mt8173-smi-common
- mediatek,mt8183-smi-common
diff --git a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml
index 2381660b324c..2e7fac4b5094 100644
--- a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml
+++ b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml
@@ -21,6 +21,7 @@ properties:
- mediatek,mt2712-smi-larb
- mediatek,mt6779-smi-larb
- mediatek,mt6795-smi-larb
+ - mediatek,mt6893-smi-larb
- mediatek,mt8167-smi-larb
- mediatek,mt8173-smi-larb
- mediatek,mt8183-smi-larb
--
2.49.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v1 2/2] memory: mtk-smi: Add support for Dimensity 1200 MT6893 SMI
2025-04-10 14:39 [PATCH v1 0/2] MediaTek Dimensity 1200 - Add SMI support AngeloGioacchino Del Regno
2025-04-10 14:39 ` [PATCH v1 1/2] dt-bindings: memory: mtk-smi: Add support for MT6893 AngeloGioacchino Del Regno
@ 2025-04-10 14:39 ` AngeloGioacchino Del Regno
2025-04-12 7:13 ` Yong Wu (吴勇)
2025-04-15 6:20 ` [PATCH v1 0/2] MediaTek Dimensity 1200 - Add SMI support Krzysztof Kozlowski
2 siblings, 1 reply; 6+ messages in thread
From: AngeloGioacchino Del Regno @ 2025-04-10 14:39 UTC (permalink / raw)
To: yong.wu
Cc: krzk, robh, conor+dt, matthias.bgg, angelogioacchino.delregno,
linux-mediatek, linux-kernel, devicetree, linux-arm-kernel,
kernel
Add the necessary platform data to enable support for the SMI
found on the MediaTek Dimensity 1200 (MT6893) SoC
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
drivers/memory/mtk-smi.c | 52 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
diff --git a/drivers/memory/mtk-smi.c b/drivers/memory/mtk-smi.c
index a8f5467d6b31..526ff6c3474f 100644
--- a/drivers/memory/mtk-smi.c
+++ b/drivers/memory/mtk-smi.c
@@ -283,6 +283,43 @@ static int mtk_smi_larb_config_port_gen2_general(struct device *dev)
return 0;
}
+static const u8 mtk_smi_larb_mt6893_ostd[][SMI_LARB_PORT_NR_MAX] = {
+ [0] = {0x2, 0x6, 0x2, 0x2, 0x2, 0x28, 0x18, 0x18, 0x1, 0x1, 0x1, 0x8,
+ 0x8, 0x1, 0x3f},
+ [1] = {0x2, 0x6, 0x2, 0x2, 0x2, 0x28, 0x18, 0x18, 0x1, 0x1, 0x1, 0x8,
+ 0x8, 0x1, 0x3f},
+ [2] = {0x5, 0x5, 0x5, 0x5, 0x1, 0x3f},
+ [3] = {0x5, 0x5, 0x5, 0x5, 0x1, 0x3f},
+ [4] = {0x28, 0x19, 0xb, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x4, 0x1},
+ [5] = {0x1, 0x1, 0x4, 0x1, 0x1, 0x1, 0x1, 0x16},
+ [6] = {},
+ [7] = {0x1, 0x4, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x4, 0x4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{0x9, 0x9, 0x5, 0x5, 0x1, 0x1},
+};
+
static const u8 mtk_smi_larb_mt8188_ostd[][SMI_LARB_PORT_NR_MAX] = {
[0] = {0x02, 0x18, 0x22, 0x22, 0x01, 0x02, 0x0a,},
[1] = {0x12, 0x02, 0x14, 0x14, 0x01, 0x18, 0x0a,},
@@ -429,6 +466,12 @@ static const struct mtk_smi_larb_gen mtk_smi_larb_mt6779 = {
/* DUMMY | IPU0 | IPU1 | CCU | MDLA */
};
+static const struct mtk_smi_larb_gen mtk_smi_larb_mt6893 = {
+ .config_port = mtk_smi_larb_config_port_gen2_general,
+ .flags_general = MTK_SMI_FLAG_THRT_UPDATE | MTK_SMI_FLAG_SW_FLAG,
+ .ostd = mtk_smi_larb_mt6893_ostd,
+};
+
static const struct mtk_smi_larb_gen mtk_smi_larb_mt8167 = {
/* mt8167 do not need the port in larb */
.config_port = mtk_smi_larb_config_port_mt8167,
@@ -474,6 +517,7 @@ static const struct of_device_id mtk_smi_larb_of_ids[] = {
{.compatible = "mediatek,mt2712-smi-larb", .data = &mtk_smi_larb_mt2712},
{.compatible = "mediatek,mt6779-smi-larb", .data = &mtk_smi_larb_mt6779},
{.compatible = "mediatek,mt6795-smi-larb", .data = &mtk_smi_larb_mt8173},
+ {.compatible = "mediatek,mt6893-smi-larb", .data = &mtk_smi_larb_mt6893},
{.compatible = "mediatek,mt8167-smi-larb", .data = &mtk_smi_larb_mt8167},
{.compatible = "mediatek,mt8173-smi-larb", .data = &mtk_smi_larb_mt8173},
{.compatible = "mediatek,mt8183-smi-larb", .data = &mtk_smi_larb_mt8183},
@@ -694,6 +738,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_mt6893 = {
+ .type = MTK_SMI_GEN2,
+ .has_gals = true,
+ .bus_sel = F_MMU1_LARB(1) | F_MMU1_LARB(2) | F_MMU1_LARB(4) |
+ F_MMU1_LARB(5) | F_MMU1_LARB(7),
+};
+
static const struct mtk_smi_common_plat mtk_smi_common_mt8183 = {
.type = MTK_SMI_GEN2,
.has_gals = true,
@@ -756,6 +807,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,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},
{.compatible = "mediatek,mt8183-smi-common", .data = &mtk_smi_common_mt8183},
--
2.49.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v1 1/2] dt-bindings: memory: mtk-smi: Add support for MT6893
2025-04-10 14:39 ` [PATCH v1 1/2] dt-bindings: memory: mtk-smi: Add support for MT6893 AngeloGioacchino Del Regno
@ 2025-04-11 17:25 ` Rob Herring (Arm)
0 siblings, 0 replies; 6+ messages in thread
From: Rob Herring (Arm) @ 2025-04-11 17:25 UTC (permalink / raw)
To: AngeloGioacchino Del Regno
Cc: linux-mediatek, conor+dt, devicetree, matthias.bgg, yong.wu,
kernel, linux-kernel, krzk, linux-arm-kernel
On Thu, 10 Apr 2025 16:39:57 +0200, AngeloGioacchino Del Regno wrote:
> Add support for the Smart Multimedia Interface's Common and Local
> Arbiter HW as found in the MediaTek Dimensity 1200 (MT6893) SoC.
>
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> ---
> .../bindings/memory-controllers/mediatek,smi-common.yaml | 1 +
> .../bindings/memory-controllers/mediatek,smi-larb.yaml | 1 +
> 2 files changed, 2 insertions(+)
>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v1 2/2] memory: mtk-smi: Add support for Dimensity 1200 MT6893 SMI
2025-04-10 14:39 ` [PATCH v1 2/2] memory: mtk-smi: Add support for Dimensity 1200 MT6893 SMI AngeloGioacchino Del Regno
@ 2025-04-12 7:13 ` Yong Wu (吴勇)
0 siblings, 0 replies; 6+ messages in thread
From: Yong Wu (吴勇) @ 2025-04-12 7:13 UTC (permalink / raw)
To: AngeloGioacchino Del Regno
Cc: linux-mediatek, linux-kernel, krzk, devicetree, kernel, conor+dt,
robh, linux-arm-kernel, matthias.bgg
On Thu, 2025-04-10 at 16:39 +0200, AngeloGioacchino Del Regno wrote:
>
> Add the necessary platform data to enable support for the SMI
> found on the MediaTek Dimensity 1200 (MT6893) SoC
>
> Signed-off-by: AngeloGioacchino Del Regno <
> angelogioacchino.delregno@collabora.com>
Reviewed-by: Yong Wu <yong.wu@mediatek.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v1 0/2] MediaTek Dimensity 1200 - Add SMI support
2025-04-10 14:39 [PATCH v1 0/2] MediaTek Dimensity 1200 - Add SMI support AngeloGioacchino Del Regno
2025-04-10 14:39 ` [PATCH v1 1/2] dt-bindings: memory: mtk-smi: Add support for MT6893 AngeloGioacchino Del Regno
2025-04-10 14:39 ` [PATCH v1 2/2] memory: mtk-smi: Add support for Dimensity 1200 MT6893 SMI AngeloGioacchino Del Regno
@ 2025-04-15 6:20 ` Krzysztof Kozlowski
2 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2025-04-15 6:20 UTC (permalink / raw)
To: yong.wu, AngeloGioacchino Del Regno
Cc: krzk, robh, conor+dt, matthias.bgg, linux-mediatek, linux-kernel,
devicetree, linux-arm-kernel, kernel
On Thu, 10 Apr 2025 16:39:56 +0200, AngeloGioacchino Del Regno wrote:
> In preparation for adding basic support for the OnePlus Nord 2 5G
> DN2103 smartphone, this series adds support for the Smart Multimedia
> Interface and Local Arbiters of the MediaTek Dimensity 1200 (MT6893) SoC.
>
> AngeloGioacchino Del Regno (2):
> dt-bindings: memory: mtk-smi: Add support for MT6893
> memory: mtk-smi: Add support for Dimensity 1200 MT6893 SMI
>
> [...]
Applied, thanks!
[1/2] dt-bindings: memory: mtk-smi: Add support for MT6893
https://git.kernel.org/krzk/linux-mem-ctrl/c/98a4109320f9b7007475a9d6706d3434cd8aafb4
[2/2] memory: mtk-smi: Add support for Dimensity 1200 MT6893 SMI
https://git.kernel.org/krzk/linux-mem-ctrl/c/bd4f5f6c84d074d9347b55731891729f136d35c8
Best regards,
--
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-04-15 6:20 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-10 14:39 [PATCH v1 0/2] MediaTek Dimensity 1200 - Add SMI support AngeloGioacchino Del Regno
2025-04-10 14:39 ` [PATCH v1 1/2] dt-bindings: memory: mtk-smi: Add support for MT6893 AngeloGioacchino Del Regno
2025-04-11 17:25 ` Rob Herring (Arm)
2025-04-10 14:39 ` [PATCH v1 2/2] memory: mtk-smi: Add support for Dimensity 1200 MT6893 SMI AngeloGioacchino Del Regno
2025-04-12 7:13 ` Yong Wu (吴勇)
2025-04-15 6:20 ` [PATCH v1 0/2] MediaTek Dimensity 1200 - Add SMI support Krzysztof Kozlowski
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®