mfd: da9063: Add support for latest EA silicon revision
authorCarlos de Paula <me@carlosedp.com>
Mon, 30 Aug 2021 19:53:45 +0000 (16:53 -0300)
committerLee Jones <lee.jones@linaro.org>
Fri, 5 Nov 2021 14:40:05 +0000 (14:40 +0000)
This update adds new regmap to support the latest EA silicon
which will be selected based on the chip and variant
information read from the device.

Signed-off-by: Carlos de Paula <me@carlosedp.com>
Reviewed-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/da9063-i2c.c
include/linux/mfd/da9063/core.h

index 4b7f707b7952c012f749ee1bf71dd02fbacd91c9..343ed6e96d87e55102c1e8a0eb56b3ab1978a306 100644 (file)
@@ -391,6 +391,7 @@ static int da9063_i2c_probe(struct i2c_client *i2c,
                                &da9063_bb_da_volatile_table;
                        break;
                case PMIC_DA9063_DA:
+               case PMIC_DA9063_EA:
                        da9063_regmap_config.rd_table =
                                &da9063_da_readable_table;
                        da9063_regmap_config.wr_table =
@@ -416,6 +417,7 @@ static int da9063_i2c_probe(struct i2c_client *i2c,
                                &da9063l_bb_da_volatile_table;
                        break;
                case PMIC_DA9063_DA:
+               case PMIC_DA9063_EA:
                        da9063_regmap_config.rd_table =
                                &da9063l_da_readable_table;
                        da9063_regmap_config.wr_table =
index fa7a43f02f274ed1cfc90db2b1cabfc00f7cc36b..8db52324f416957804fbc22af4c61ca8a8889dba 100644 (file)
@@ -36,6 +36,7 @@ enum da9063_variant_codes {
        PMIC_DA9063_BB = 0x5,
        PMIC_DA9063_CA = 0x6,
        PMIC_DA9063_DA = 0x7,
+       PMIC_DA9063_EA = 0x8,
 };
 
 /* Interrupts */