Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jisheng Zhang and committed by
Mark Brown
b60c2c4a f27b425d

+13
+13
drivers/regulator/sy8824x.c
··· 180 180 .vsel_count = 128, 181 181 }; 182 182 183 + static const struct sy8824_config sy20278_cfg = { 184 + .vol_reg = 0x00, 185 + .mode_reg = 0x01, 186 + .enable_reg = 0x01, 187 + .vsel_min = 762500, 188 + .vsel_step = 12500, 189 + .vsel_count = 64, 190 + }; 191 + 183 192 static const struct of_device_id sy8824_dt_ids[] = { 184 193 { 185 194 .compatible = "silergy,sy8824c", ··· 201 192 { 202 193 .compatible = "silergy,sy20276", 203 194 .data = &sy20276_cfg 195 + }, 196 + { 197 + .compatible = "silergy,sy20278", 198 + .data = &sy20278_cfg 204 199 }, 205 200 { } 206 201 };