Add a match for the MT8366 pwrap. It shares the MT8195 register map
for everything this driver uses; only the interrupt enable register
differs (INT_EN is at 0x450 and there is no INT1 block), and U-Boot
does not program the pwrap interrupts. Reuse the MT8195 data rather
than give the device tree an mt8195 fallback compatible that would be
wrong for an OS that does enable them.

Signed-off-by: David Lechner <[email protected]>
---
The Genio 360 EVK series (v6) drops the mediatek,mt8195-pwrap fallback
from the MT8366 devicetree and depends on this patch for the pwrap to
keep binding.
---
 drivers/power/pmic/mtk-pwrap.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/power/pmic/mtk-pwrap.c b/drivers/power/pmic/mtk-pwrap.c
index f23061de386..468af1fba04 100644
--- a/drivers/power/pmic/mtk-pwrap.c
+++ b/drivers/power/pmic/mtk-pwrap.c
@@ -887,6 +887,7 @@ static const struct pmic_wrapper_type pwrap_mt8365 = {
 static const struct udevice_id mtk_pwrap_ids[] = {
        { .compatible = "mediatek,mt8195-pwrap", .data = (ulong)&pwrap_mt8195 },
        { .compatible = "mediatek,mt8365-pwrap", .data = (ulong)&pwrap_mt8365 },
+       { .compatible = "mediatek,mt8366-pwrap", .data = (ulong)&pwrap_mt8195 },
        { }
 };
 

---
base-commit: bd2f5794b7e24c62042abb1921f9c2039b920e02
change-id: 20261005-mtk-pwrap-mt8366-4e6d7a896a14

Best regards,
--  
David Lechner <[email protected]>

Reply via email to