generic/starfive: Add the PMIC compatible string 65/301565/2
authorHoegeun Kwon <hoegeun.kwon@samsung.com>
Mon, 20 Nov 2023 04:21:48 +0000 (13:21 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Mon, 20 Nov 2023 07:32:22 +0000 (16:32 +0900)
Add the PMIC compatible string "x-powers,axp15060", it is used in
mainline kernel.

Change-Id: Icec508aceb006d8e879fdb7f80dd9a573eb29448
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
platform/generic/starfive/jh7110.c

index dcd6306be5fc996b0f0a6cdf69df2c5bfce1aff5..6f87303d18980b9abc82d2b85913ad30b16be725 100644 (file)
@@ -134,7 +134,8 @@ static void pmic_ops(struct pmic *pmic, int type)
        if (ret)
                return;
 
-       if (!sbi_strcmp("stf,axp15060-regulator", pmic->compatible)) {
+       if (!sbi_strcmp("stf,axp15060-regulator", pmic->compatible) ||
+           !sbi_strcmp("x-powers,axp15060", pmic->compatible)) {
                ret = i2c_adapter_reg_read(pmic->adapter, pmic->dev_addr,
                                           AXP15060_POWER_REG, &val);
 
@@ -230,6 +231,7 @@ static int pm_reset_init(void *fdt, int nodeoff,
 
 static const struct fdt_match pm_reset_match[] = {
        { .compatible = "stf,axp15060-regulator", .data = (void *)true },
+       { .compatible = "x-powers,axp15060", .data = (void *)true },
        { },
 };