[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1a4b2fbe-3584-48ad-9fce-e1c729862cb5@collabora.com>
Date: Mon, 22 Sep 2025 13:34:48 +0200
From: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
To: Christian Marangi <ansuelsmth@...il.com>,
Ryder Lee <ryder.lee@...iatek.com>, Jianjun Wang
<jianjun.wang@...iatek.com>, Bjorn Helgaas <bhelgaas@...gle.com>,
Lorenzo Pieralisi <lpieralisi@...nel.org>,
Krzysztof WilczyĆski <kwilczynski@...nel.org>,
Manivannan Sadhasivam <mani@...nel.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley
<conor+dt@...nel.org>, Matthias Brugger <matthias.bgg@...il.com>,
linux-pci@...r.kernel.org, linux-mediatek@...ts.infradead.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, upstream@...oha.com
Subject: Re: [PATCH 2/2] PCI: mediatek-gen3: add support for Airoha AN7583 SoC
Il 20/09/25 11:25, Christian Marangi ha scritto:
> Add support for Airoha AN7583 SoC that implement the same logic of
> Airoha EN7581 with the only difference that only 1 PCIe line is
> supported (for GEN3).
>
> A dedicated compatible is defined with the pdata struct with the 1 reset
> line.
>
> Signed-off-by: Christian Marangi <ansuelsmth@...il.com>
> ---
> drivers/pci/controller/pcie-mediatek-gen3.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/drivers/pci/controller/pcie-mediatek-gen3.c b/drivers/pci/controller/pcie-mediatek-gen3.c
> index 75ddb8bee168..db9985375be9 100644
> --- a/drivers/pci/controller/pcie-mediatek-gen3.c
> +++ b/drivers/pci/controller/pcie-mediatek-gen3.c
> @@ -1360,8 +1360,18 @@ static const struct mtk_gen3_pcie_pdata mtk_pcie_soc_en7581 = {
> .flags = SKIP_PCIE_RSTB,
> };
>
> +static const struct mtk_gen3_pcie_pdata mtk_pcie_soc_an7583 = {
> + .power_up = mtk_pcie_en7581_power_up,
> + .phy_resets = {
> + .id[0] = "phy-lane0",
> + .num_resets = 1,
> + },
> + .flags = SKIP_PCIE_RSTB,
> +};
> +
> static const struct of_device_id mtk_pcie_of_match[] = {
> { .compatible = "airoha,en7581-pcie", .data = &mtk_pcie_soc_en7581 },
> + { .compatible = "airoha,an7583-pcie-gen3", .data = &mtk_pcie_soc_an7583 },
Same comments as the dt-bindings review, "an" comes before "en", also rename to
airoha,an7583-pcie.
Cheers,
Angelo
> { .compatible = "mediatek,mt8192-pcie", .data = &mtk_pcie_soc_mt8192 },
> { .compatible = "mediatek,mt8196-pcie", .data = &mtk_pcie_soc_mt8196 },
> {},
Powered by blists - more mailing lists