]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
PCI: mediatek-gen3: Add support for MediaTek MT8196 SoC
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 3 Jul 2025 12:08:47 +0000 (14:08 +0200)
committerManivannan Sadhasivam <mani@kernel.org>
Tue, 19 Aug 2025 14:35:57 +0000 (20:05 +0530)
Introduce support for the PCI-Express Gen3 controller found in the
MT8196 (and MT6991) SoC by adding a compatible string and platform
specific data.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://patch.msgid.link/20250703120847.121826-4-angelogioacchino.delregno@collabora.com
drivers/pci/controller/pcie-mediatek-gen3.c

index aa7bd22b144c62d86d7d78d848acdbd4772f6da2..75ddb8bee168f65fbf983a4896544487cc297ee3 100644 (file)
@@ -1340,6 +1340,15 @@ static const struct mtk_gen3_pcie_pdata mtk_pcie_soc_mt8192 = {
        },
 };
 
+static const struct mtk_gen3_pcie_pdata mtk_pcie_soc_mt8196 = {
+       .power_up = mtk_pcie_power_up,
+       .phy_resets = {
+               .id[0] = "phy",
+               .num_resets = 1,
+       },
+       .sys_clk_rdy_time_us = 10,
+};
+
 static const struct mtk_gen3_pcie_pdata mtk_pcie_soc_en7581 = {
        .power_up = mtk_pcie_en7581_power_up,
        .phy_resets = {
@@ -1354,6 +1363,7 @@ static const struct mtk_gen3_pcie_pdata mtk_pcie_soc_en7581 = {
 static const struct of_device_id mtk_pcie_of_match[] = {
        { .compatible = "airoha,en7581-pcie", .data = &mtk_pcie_soc_en7581 },
        { .compatible = "mediatek,mt8192-pcie", .data = &mtk_pcie_soc_mt8192 },
+       { .compatible = "mediatek,mt8196-pcie", .data = &mtk_pcie_soc_mt8196 },
        {},
 };
 MODULE_DEVICE_TABLE(of, mtk_pcie_of_match);