Re: [PATCH] pmdomain: mediatek: scpsys: add MT7629 support
From: Ulf Hansson
Date: Tue Nov 10 2026 - 06:02:45 EST
On Sat, Sep 26, 2026 at 11:59 AM Chuanhong Guo <gch981213@xxxxxxxxx> wrote:
>
> MT7629 currently uses the MT7622 domain table through the device tree
> fallback compatible. Attempting to power on the WB domain triggers a
> warning during boot, and powering off AUDSYS times out.
>
> Add an MT7629-specific match entry to register only ETHSYS, HIF0 and
> HIF1, matching the domains exposed by the vendor driver. These occupy
> the first three entries in the MT7622 domain table.
>
> Signed-off-by: Chuanhong Guo <gch981213@xxxxxxxxx>
Applied for next, thanks!
Kind regards
Uffe
> ---
> drivers/pmdomain/mediatek/mtk-scpsys.c | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/drivers/pmdomain/mediatek/mtk-scpsys.c b/drivers/pmdomain/mediatek/mtk-scpsys.c
> index efc8f276ffce..2b5bd8d61cb5 100644
> --- a/drivers/pmdomain/mediatek/mtk-scpsys.c
> +++ b/drivers/pmdomain/mediatek/mtk-scpsys.c
> @@ -1073,6 +1073,17 @@ static const struct scp_soc_data mt7623a_data = {
> .bus_prot_reg_update = true,
> };
>
> +static const struct scp_soc_data mt7629_data = {
> + /* Reuse the MT7622 entries from ETHSYS through HIF1. */
> + .domains = scp_domain_data_mt7622,
> + .num_domains = MT7622_POWER_DOMAIN_HIF1 + 1,
> + .regs = {
> + .pwr_sta_offs = SPM_PWR_STATUS,
> + .pwr_sta2nd_offs = SPM_PWR_STATUS_2ND,
> + },
> + .bus_prot_reg_update = true,
> +};
> +
> static const struct scp_soc_data mt8173_data = {
> .domains = scp_domain_data_mt8173,
> .num_domains = ARRAY_SIZE(scp_domain_data_mt8173),
> @@ -1105,6 +1116,9 @@ static const struct of_device_id of_scpsys_match_tbl[] = {
> }, {
> .compatible = "mediatek,mt7623a-scpsys",
> .data = &mt7623a_data,
> + }, {
> + .compatible = "mediatek,mt7629-scpsys",
> + .data = &mt7629_data,
> }, {
> .compatible = "mediatek,mt8173-scpsys",
> .data = &mt8173_data,
>
> ---
> base-commit: f5f84daefcd92d7a630066635ecea1433ed5eac7
> change-id: 20260926-b4-mt7629-scpsys-88d0cf37c6e2
>
> Best regards,
> --
> Chuanhong Guo <gch981213@xxxxxxxxx>
>