1
0
Fork 0

regulator: sy8824x: add SY20278 support

The differences between SY8824C and SY20278 are different regs
for mode/enable.

Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Link: https://lore.kernel.org/r/20190827163830.2c94f29b@xhacker.debian
Signed-off-by: Mark Brown <broonie@kernel.org>
alistair/sunxi64-5.4-dsi
Jisheng Zhang 2019-08-27 08:49:45 +00:00 committed by Mark Brown
parent f27b425d13
commit b60c2c4aa5
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0
1 changed files with 13 additions and 0 deletions

View File

@ -180,6 +180,15 @@ static const struct sy8824_config sy20276_cfg = {
.vsel_count = 128,
};
static const struct sy8824_config sy20278_cfg = {
.vol_reg = 0x00,
.mode_reg = 0x01,
.enable_reg = 0x01,
.vsel_min = 762500,
.vsel_step = 12500,
.vsel_count = 64,
};
static const struct of_device_id sy8824_dt_ids[] = {
{
.compatible = "silergy,sy8824c",
@ -193,6 +202,10 @@ static const struct of_device_id sy8824_dt_ids[] = {
.compatible = "silergy,sy20276",
.data = &sy20276_cfg
},
{
.compatible = "silergy,sy20278",
.data = &sy20278_cfg
},
{ }
};
MODULE_DEVICE_TABLE(of, sy8824_dt_ids);