]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
power: regulator: add AXP323 support
authorAndre Przywara <andre.przywara@arm.com>
Mon, 23 Sep 2024 22:59:22 +0000 (23:59 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Sun, 27 Jul 2025 21:57:35 +0000 (22:57 +0100)
The X-Powers AXP323 is very close sibling to the AXP313A, only that it
adds support for dual-phasing the first two DC/DC converters.

We do not really care about this particular feature, so just add the new
compatible string and tie it to the existing AXP313A support code.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
drivers/power/pmic/axp.c
drivers/power/regulator/axp_regulator.c
include/axp_pmic.h

index c300fd2bbc204d2365afd4341259be9b7e59e119..1204ec00f8dae997dedd095aa429178749814318 100644 (file)
@@ -89,6 +89,7 @@ static const struct udevice_id axp_pmic_ids[] = {
        { .compatible = "x-powers,axp221", .data = AXP221_ID },
        { .compatible = "x-powers,axp223", .data = AXP223_ID },
        { .compatible = "x-powers,axp313a", .data = AXP313_ID },
+       { .compatible = "x-powers,axp323", .data = AXP323_ID },
        { .compatible = "x-powers,axp717", .data = AXP717_ID },
        { .compatible = "x-powers,axp803", .data = AXP803_ID },
        { .compatible = "x-powers,axp806", .data = AXP806_ID },
index 75cdbca30f621166b9d31791b4ab0c0642796e30..7794a4f5d92cb980f995ece3b52653906f8cd616 100644 (file)
@@ -318,6 +318,7 @@ static const struct axp_regulator_plat *const axp_regulators[] = {
        [AXP221_ID]     = axp22x_regulators,
        [AXP223_ID]     = axp22x_regulators,
        [AXP313_ID]     = axp313_regulators,
+       [AXP323_ID]     = axp313_regulators,
        [AXP717_ID]     = axp717_regulators,
        [AXP803_ID]     = axp803_regulators,
        [AXP806_ID]     = axp806_regulators,
index ae62ef0d76dd4f7473a4b5485831804a07088407..1806a7270a07c234c523705c95516ead6adbca1f 100644 (file)
@@ -33,6 +33,7 @@ enum {
        AXP221_ID,
        AXP223_ID,
        AXP313_ID,
+       AXP323_ID,
        AXP717_ID,
        AXP803_ID,
        AXP806_ID,