Skip to content

Commit

Permalink
regulator: fan53555: add support for fan53526 chipid 8 rev 1
Browse files Browse the repository at this point in the history
This specific version is used on sdm660 SoC family

Signed-off-by: Gianluca Boiano <morf3089@gmail.com>
  • Loading branch information
M0Rf30 committed Nov 9, 2024
1 parent 6c4df4d commit f3d1059
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions drivers/regulator/fan53555.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,11 @@ enum fan53555_vendor {

enum {
FAN53526_CHIP_ID_01 = 1,
FAN53526_CHIP_ID_08 = 8,
};

enum {
FAN53526_CHIP_REV_01 = 1,
FAN53526_CHIP_REV_08 = 8,
};

Expand Down Expand Up @@ -272,6 +274,19 @@ static int fan53526_voltages_setup_fairchild(struct fan53555_device_info *di)
return -EINVAL;
}
break;
case FAN53526_CHIP_ID_08:
switch (di->chip_rev) {
case FAN53526_CHIP_REV_01:
di->vsel_min = 600000;
di->vsel_step = 6250;
break;
default:
dev_err(di->dev,
"Chip ID %d with rev %d not supported!\n",
di->chip_id, di->chip_rev);
return -EINVAL;
}
break;
default:
dev_err(di->dev,
"Chip ID %d not supported!\n", di->chip_id);
Expand Down

0 comments on commit f3d1059

Please sign in to comment.