diff options
| author | Julien Stephan <[email protected]> | 2026-07-09 14:58:09 +0200 |
|---|---|---|
| committer | David Lechner <[email protected]> | 2026-07-22 13:54:54 -0500 |
| commit | 0b4bfb0c97915b9af20ca2911b11b6d4a4bba420 (patch) | |
| tree | e731c1a53db13ca7200eb274f4bca4fe9bcc4653 | |
| parent | 76e2f6f221b68e22b36bbac1c2ef5e4986c9dc45 (diff) | |
power: domain: mediatek: use MT7622 naming instead of MT7629
Upstream DT bindings define "mediatek,mt7629-scpsys" to fall back to
"mediatek,mt7622-scpsys". Align the driver with this convention by
using MT7622 naming throughout.
This also allows the driver to use the upstream
dts/upstream/include/dt-bindings/power/mt7622-power.h header instead of
the local include/dt-bindings/power/mt7629-power.h, since both expose
equivalent power domain definitions.
Rename scp_domain_mt7629 to scp_domain_mt7622, remove the
SCPSYS_MT7629 enum, and switch all MT7629 power domain defines to their
MT7622 equivalents.
Also drop the explicit "mediatek,mt7629-scpsys" compatible entry and
rely on the DT fallback instead.
Suggested-by: David Lechner <[email protected]>
Signed-off-by: Julien Stephan <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: David Lechner <[email protected]>
| -rw-r--r-- | drivers/power/domain/mtk-power-domain.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/drivers/power/domain/mtk-power-domain.c b/drivers/power/domain/mtk-power-domain.c index 24dd540897d..dd45f63b763 100644 --- a/drivers/power/domain/mtk-power-domain.c +++ b/drivers/power/domain/mtk-power-domain.c @@ -16,8 +16,8 @@ #include <linux/err.h> #include <linux/iopoll.h> +#include <dt-bindings/power/mt7622-power.h> #include <dt-bindings/power/mt7623-power.h> -#include <dt-bindings/power/mt7629-power.h> #define SPM_EN (0xb16 << 16 | 0x1) #define SPM_VDE_PWR_CON 0x0210 @@ -64,7 +64,6 @@ enum scp_domain_type { SCPSYS_MT7622, SCPSYS_MT7623, - SCPSYS_MT7629, }; struct scp_domain; @@ -138,22 +137,22 @@ static struct scp_domain_data scp_domain_mt7623[] = { }, }; -static struct scp_domain_data scp_domain_mt7629[] = { - [MT7629_POWER_DOMAIN_ETHSYS] = { +static struct scp_domain_data scp_domain_mt7622[] = { + [MT7622_POWER_DOMAIN_ETHSYS] = { .sta_mask = PWR_STATUS_ETHSYS, .ctl_offs = SPM_ETHSYS_PWR_CON, .sram_pdn_bits = GENMASK(11, 8), .sram_pdn_ack_bits = GENMASK(15, 12), .bus_prot_mask = (BIT(3) | BIT(17)), }, - [MT7629_POWER_DOMAIN_HIF0] = { + [MT7622_POWER_DOMAIN_HIF0] = { .sta_mask = PWR_STATUS_HIF0, .ctl_offs = SPM_HIF0_PWR_CON, .sram_pdn_bits = GENMASK(11, 8), .sram_pdn_ack_bits = GENMASK(15, 12), .bus_prot_mask = GENMASK(25, 24), }, - [MT7629_POWER_DOMAIN_HIF1] = { + [MT7622_POWER_DOMAIN_HIF1] = { .sta_mask = PWR_STATUS_HIF1, .ctl_offs = SPM_HIF1_PWR_CON, .sram_pdn_bits = GENMASK(11, 8), @@ -323,13 +322,12 @@ static int mtk_power_domain_hook(struct udevice *dev) scpd->type = (enum scp_domain_type)dev_get_driver_data(dev); switch (scpd->type) { + case SCPSYS_MT7622: + scpd->data = scp_domain_mt7622; + break; case SCPSYS_MT7623: scpd->data = scp_domain_mt7623; break; - case SCPSYS_MT7622: - case SCPSYS_MT7629: - scpd->data = scp_domain_mt7629; - break; default: return -EINVAL; } @@ -385,10 +383,6 @@ static const struct udevice_id mtk_power_domain_ids[] = { .compatible = "mediatek,mt7623-scpsys", .data = SCPSYS_MT7623, }, - { - .compatible = "mediatek,mt7629-scpsys", - .data = SCPSYS_MT7629, - }, { /* sentinel */ } }; |
