]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
power: pmic: mtk-pwrap: drop PWRAP_SLV_CAP_DUALIO on mt6359
authorDavid Lechner <dlechner@baylibre.com>
Thu, 9 Apr 2026 20:30:36 +0000 (15:30 -0500)
committerDavid Lechner <dlechner@baylibre.com>
Wed, 29 Apr 2026 14:08:18 +0000 (09:08 -0500)
Drop the PWRAP_SLV_CAP_DUALIO flag from the mt6359 PMIC definition. The
mt6359p variant of the PMIC does support dual I/O.

Prior to this change, the driver would attempt to write to the
PWRAP_DEW_DIO_EN register, which was not defined, so would write
register 0 (DONE2).

Reviewed-by: Julien Stephan <jstephan@baylibre.com>
Reviewed-by: Macpaul Lin <macpaul.lin@mediatek.com>
Link: https://patch.msgid.link/20260409-mtk-pmic-fixes-v2-4-73e83aa6345b@baylibre.com
Signed-off-by: David Lechner <dlechner@baylibre.com>
drivers/power/pmic/mtk-pwrap.c

index 38ae44f0abffee64f318a737cc5483dc0da6b7e2..64c483b2f3b9659cb5a1c879a7228410401ebc2e 100644 (file)
@@ -647,7 +647,7 @@ static const struct pwrap_slv_type pmic_mt6357 = {
 
 static const struct pwrap_slv_type pmic_mt6359 = {
        .dew_regs = mt6359_regs,
-       .caps = PWRAP_SLV_CAP_DUALIO,
+       .caps = 0,
 };
 
 static const struct udevice_id mtk_pmic_ids[] = {